Add 2 files
Browse files- README.md +7 -5
- index.html +236 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: inkspire
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,236 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>InkSpire - Quote Generator</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Cormorant+Upright:wght@400;500;600;700&display=swap" rel="stylesheet">
|
| 11 |
+
<style>
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Inter', sans-serif;
|
| 14 |
+
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
| 15 |
+
min-height: 100vh;
|
| 16 |
+
color: #e2e8f0;
|
| 17 |
+
transition: background 0.5s ease;
|
| 18 |
+
}
|
| 19 |
+
.quote-container {
|
| 20 |
+
transition: all 0.5s ease;
|
| 21 |
+
background: rgba(26, 32, 44, 0.8);
|
| 22 |
+
backdrop-filter: blur(10px);
|
| 23 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 24 |
+
}
|
| 25 |
+
.fade-in {
|
| 26 |
+
animation: fadeIn 0.8s;
|
| 27 |
+
}
|
| 28 |
+
@keyframes fadeIn {
|
| 29 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 30 |
+
to { opacity: 1; transform: translateY(0); }
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
/* Loading animation */
|
| 34 |
+
.loader {
|
| 35 |
+
display: flex;
|
| 36 |
+
justify-content: center;
|
| 37 |
+
align-items: center;
|
| 38 |
+
height: 120px;
|
| 39 |
+
}
|
| 40 |
+
.loader-dot {
|
| 41 |
+
width: 12px;
|
| 42 |
+
height: 12px;
|
| 43 |
+
margin: 0 5px;
|
| 44 |
+
border-radius: 50%;
|
| 45 |
+
background-color: #3b82f6;
|
| 46 |
+
animation: bounce 1.5s infinite ease-in-out;
|
| 47 |
+
}
|
| 48 |
+
.loader-dot:nth-child(1) {
|
| 49 |
+
animation-delay: 0s;
|
| 50 |
+
}
|
| 51 |
+
.loader-dot:nth-child(2) {
|
| 52 |
+
animation-delay: 0.2s;
|
| 53 |
+
}
|
| 54 |
+
.loader-dot:nth-child(3) {
|
| 55 |
+
animation-delay: 0.4s;
|
| 56 |
+
}
|
| 57 |
+
@keyframes bounce {
|
| 58 |
+
0%, 100% {
|
| 59 |
+
transform: translateY(0);
|
| 60 |
+
background-color: #3b82f6;
|
| 61 |
+
}
|
| 62 |
+
50% {
|
| 63 |
+
transform: translateY(-20px);
|
| 64 |
+
background-color: #60a5fa;
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* Neon glow effect */
|
| 69 |
+
.neon-text {
|
| 70 |
+
text-shadow: 0 0 5px rgba(59, 130, 246, 0.5),
|
| 71 |
+
0 0 10px rgba(59, 130, 246, 0.3);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
/* Button hover effect */
|
| 75 |
+
.vibrant-btn {
|
| 76 |
+
background: linear-gradient(45deg, #1d4ed8, #3b82f6);
|
| 77 |
+
background-size: 200% 200%;
|
| 78 |
+
animation: gradient 3s ease infinite;
|
| 79 |
+
}
|
| 80 |
+
@keyframes gradient {
|
| 81 |
+
0% { background-position: 0% 50%; }
|
| 82 |
+
50% { background-position: 100% 50%; }
|
| 83 |
+
100% { background-position: 0% 50%; }
|
| 84 |
+
}
|
| 85 |
+
.vibrant-btn:hover {
|
| 86 |
+
transform: translateY(-2px);
|
| 87 |
+
box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
/* Cormorant Upright font for quotes and title */
|
| 91 |
+
.cormorant-font {
|
| 92 |
+
font-family: 'Cormorant Upright', serif;
|
| 93 |
+
}
|
| 94 |
+
</style>
|
| 95 |
+
</head>
|
| 96 |
+
<body class="flex items-center justify-center p-4">
|
| 97 |
+
<div class="max-w-3xl w-full">
|
| 98 |
+
<div class="quote-container rounded-xl shadow-2xl p-8 md:p-12">
|
| 99 |
+
<div class="text-center mb-8">
|
| 100 |
+
<h1 class="text-4xl font-semibold text-blue-300 neon-text mb-2 cormorant-font">InkSpire</h1>
|
| 101 |
+
<div class="w-20 h-1 bg-gradient-to-r from-blue-500 to-blue-400 mx-auto rounded-full"></div>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
<div id="quote-content" class="fade-in min-h-[180px] flex flex-col justify-center">
|
| 105 |
+
<p id="quote-text" class="text-2xl md:text-3xl font-light text-gray-100 leading-relaxed mb-6 cormorant-font">
|
| 106 |
+
"The greatest glory in living lies not in never falling, but in rising every time we fall."
|
| 107 |
+
</p>
|
| 108 |
+
<p id="quote-author" class="text-lg text-blue-300 font-medium italic cormorant-font">
|
| 109 |
+
— Nelson Mandela
|
| 110 |
+
</p>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<div id="loading-state" class="hidden loader">
|
| 114 |
+
<div class="loader-dot"></div>
|
| 115 |
+
<div class="loader-dot"></div>
|
| 116 |
+
<div class="loader-dot"></div>
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
<div class="mt-12 text-center">
|
| 120 |
+
<button id="new-quote-btn" class="vibrant-btn px-8 py-3 text-white rounded-full font-medium transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50">
|
| 121 |
+
Generate New Quote
|
| 122 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 inline ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 123 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
|
| 124 |
+
</svg>
|
| 125 |
+
</button>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
|
| 129 |
+
<div class="text-center mt-8 text-gray-400 text-sm">
|
| 130 |
+
<p>Click the button to get inspired</p>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
|
| 134 |
+
<script>
|
| 135 |
+
const quotes = [
|
| 136 |
+
{
|
| 137 |
+
text: "The way to get started is to quit talking and begin doing.",
|
| 138 |
+
author: "Walt Disney"
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
text: "Your time is limited, so don't waste it living someone else's life.",
|
| 142 |
+
author: "Steve Jobs"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
text: "If life were predictable it would cease to be life, and be without flavor.",
|
| 146 |
+
author: "Eleanor Roosevelt"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
text: "Life is what happens when you're busy making other plans.",
|
| 150 |
+
author: "John Lennon"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
text: "Spread love everywhere you go. Let no one ever come to you without leaving happier.",
|
| 154 |
+
author: "Mother Teresa"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
text: "When you reach the end of your rope, tie a knot in it and hang on.",
|
| 158 |
+
author: "Franklin D. Roosevelt"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
text: "Always remember that you are absolutely unique. Just like everyone else.",
|
| 162 |
+
author: "Margaret Mead"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
text: "Don't judge each day by the harvest you reap but by the seeds that you plant.",
|
| 166 |
+
author: "Robert Louis Stevenson"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
text: "The future belongs to those who believe in the beauty of their dreams.",
|
| 170 |
+
author: "Eleanor Roosevelt"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
text: "Tell me and I forget. Teach me and I remember. Involve me and I learn.",
|
| 174 |
+
author: "Benjamin Franklin"
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
text: "The only limit to our realization of tomorrow is our doubts of today.",
|
| 178 |
+
author: "Franklin D. Roosevelt"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
text: "It is during our darkest moments that we must focus to see the light.",
|
| 182 |
+
author: "Aristotle"
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
text: "Do not go where the path may lead, go instead where there is no path and leave a trail.",
|
| 186 |
+
author: "Ralph Waldo Emerson"
|
| 187 |
+
}
|
| 188 |
+
];
|
| 189 |
+
|
| 190 |
+
const quoteText = document.getElementById('quote-text');
|
| 191 |
+
const quoteAuthor = document.getElementById('quote-author');
|
| 192 |
+
const newQuoteBtn = document.getElementById('new-quote-btn');
|
| 193 |
+
const quoteContent = document.getElementById('quote-content');
|
| 194 |
+
const loadingState = document.getElementById('loading-state');
|
| 195 |
+
|
| 196 |
+
function getRandomQuote() {
|
| 197 |
+
// Show loading animation
|
| 198 |
+
quoteContent.classList.add('hidden');
|
| 199 |
+
loadingState.classList.remove('hidden');
|
| 200 |
+
|
| 201 |
+
// Disable button during transition
|
| 202 |
+
newQuoteBtn.disabled = true;
|
| 203 |
+
|
| 204 |
+
// Get random quote after a delay (so users can see the loading animation)
|
| 205 |
+
setTimeout(() => {
|
| 206 |
+
const randomIndex = Math.floor(Math.random() * quotes.length);
|
| 207 |
+
const randomQuote = quotes[randomIndex];
|
| 208 |
+
|
| 209 |
+
// Hide loading and show new quote
|
| 210 |
+
loadingState.classList.add('hidden');
|
| 211 |
+
quoteContent.classList.remove('hidden');
|
| 212 |
+
|
| 213 |
+
// Apply the new quote with animation
|
| 214 |
+
quoteText.textContent = randomQuote.text;
|
| 215 |
+
quoteAuthor.textContent = `— ${randomQuote.author}`;
|
| 216 |
+
|
| 217 |
+
// Re-add fade-in class for animation
|
| 218 |
+
quoteContent.classList.remove('fade-in');
|
| 219 |
+
void quoteContent.offsetWidth; // Trigger reflow
|
| 220 |
+
quoteContent.classList.add('fade-in');
|
| 221 |
+
|
| 222 |
+
// Re-enable button
|
| 223 |
+
newQuoteBtn.disabled = false;
|
| 224 |
+
}, 1500); // 1.5 second delay to see the loading animation
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
// Initial random quote on load with slight delay
|
| 228 |
+
setTimeout(() => {
|
| 229 |
+
getRandomQuote();
|
| 230 |
+
}, 500);
|
| 231 |
+
|
| 232 |
+
// New quote on button click
|
| 233 |
+
newQuoteBtn.addEventListener('click', getRandomQuote);
|
| 234 |
+
</script>
|
| 235 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=jrman28/inkspire" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 236 |
+
</html>
|