Skip to content
Open

Main #265

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"version": "0.2.0",
"configurations": [

{
"type": "node",
"request": "launch",
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"soren",
"stopwords"
],
"markdown.extension.toc.levels": "2..2"
"markdown.extension.toc.levels": "2..2",
"djlint.showInstallError": false
}
76 changes: 76 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Daily Quotes</title>
<style>
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
color: #333;
text-align: center;
margin-top: 100px;
}
h1 {
font-size: 2rem;
margin-bottom: 30px;
}
#quote {
font-size: 1.4rem;
background: white;
display: inline-block;
padding: 20px;
border-radius: 15px;
box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
width: 60%;
}
button {
margin-top: 25px;
padding: 10px 25px;
border: none;
border-radius: 10px;
background-color: #6a11cb;
color: white;
cursor: pointer;
font-size: 1rem;
transition: 0.3s;
}
button:hover {
background-color: #2575fc;
}
</style>
</head>
<body>
<h1 style="color: pink; text-align: center;">Reshma’s Quotable ❤️</h1>
<h1>✨ Random Quote Generator ✨</h1>

<p id="quote">Loading...</p><br>
<button onclick="getQuote()">💫 Get New Quote</button>

<script>
const quotes = [
"Believe you can and you're halfway there.",
"You are stronger than you think.",
"Do something today that your future self will thank you for.",
"It always seems impossible until it’s done.",
"Stay positive, work hard, make it happen.",
"Every moment is a fresh beginning.",
"Dream it. Wish it. Do it.",
"Little things make big days.",
"Push yourself, because no one else is going to do it for you.",
"Be kind to yourself. You’re doing the best you can."
];

function getQuote() {
const randomIndex = Math.floor(Math.random() * quotes.length);
document.getElementById("quote").textContent = quotes[randomIndex];
}

// show one quote at start
getQuote();
</script>
</body>
</html>


6 changes: 6 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": 2,
"builds": [
{ "src": "index.html", "use": "@vercel/static" }
]
}