Design a Chrome Extension New Tab page with the following MVP features: Background image,Core Widgets: Clock & Date: Live clock updating every second., Weather Widget: Mock weather data with modern icons., Search Bar: Integrated with Google search, supports Enter key., Quick Bookmarks: Display 6 frequently used bookmarks with emoji icons., Daily Pet Quote: Show rotating pet-related quotes every 30 seconds., Settings Panel: Toggle individual widgets on/off. The widget should have Glassmorphism effect. You can use this css snippet: .glass3d { --filter-glass3d: blur(32px) brightness(0.85) saturate(2.5); --color-glass3d: hsl(189 80% 10% / 0.2); --noise-glass3d: url("https://www.transparenttextures.com/patterns/egg-shell.png"); position: relative; z-index: 4; box-shadow: 0 0 0.75px hsl(205 20% 10% / 0.2), 0.7px 0.8px 1.2px -0.4px hsl(205 20% 10% / 0.1), 1.3px 1.5px 2.2px -0.8px hsl(205 20% 10% / 0.1), 2.3px 2.6px 3.9px -1.2px hsl(205 20% 10% / 0.1), 3.9px 4.4px 6.6px -1.7px hsl(205 20% 10% / 0.1), 6.5px 7.2px 10.9px -2.1px hsl(205 20% 10% / 0.1), 8px 9px 14px -2.5px hsl(205 20% 10% / 0.2); } .glass3d::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; z-index: 3; -webkit-backdrop-filter: var(--filter-glass3d); backdrop-filter: var(--filter-glass3d); background-color: var(--color-glass3d); background-image: var(--noise-glass3d); background-size: 100px; background-repeat: repeat; } .glass3d::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; z-index: 5; box-shadow: inset 2px 2px 1px -3px hsl(205 20% 90% / 0.8), inset 4px 4px 2px -6px hsl(205 20% 90% / 0.3), inset 1.5px 1.5px 1.5px -0.75px hsl(205 20% 90% / 0.15), inset 1.5px 1.5px 0.25px hsl(205 20% 90% / 0.03), inset 0 0 0.25px 0.5px hsl(205 20% 90% / 0.03); } .glass3d > * { position: relative; z-index: 6; } - Initial Deployment
Browse files- README.md +7 -5
- index.html +402 -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: petslive
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 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,402 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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indcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
body {
|
| 11 |
+
background-image: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8MXx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80');
|
| 12 |
+
background-size: cover;
|
| 13 |
+
background-position: center;
|
| 14 |
+
background-attachment: fixed;
|
| 15 |
+
font-family: 'Inter', sans-serif;
|
| 16 |
+
min-height: 100vh;
|
| 17 |
+
margin: 0;
|
| 18 |
+
padding: 0;
|
| 19 |
+
color: white;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.glass3d {
|
| 23 |
+
--filter-glass3d: blur(32px) brightness(0.85) saturate(2.5);
|
| 24 |
+
--color-glass3d: hsl(189 80% 10% / 0.2);
|
| 25 |
+
--noise-glass3d: url("https://www.transparenttextures.com/patterns/egg-shell.png");
|
| 26 |
+
position: relative;
|
| 27 |
+
z-index: 4;
|
| 28 |
+
box-shadow:
|
| 29 |
+
0 0 0.75px hsl(205 20% 10% / 0.2),
|
| 30 |
+
0.7px 0.8px 1.2px -0.4px hsl(205 20% 10% / 0.1),
|
| 31 |
+
1.3px 1.5px 2.2px -0.8px hsl(205 20% 10% / 0.1),
|
| 32 |
+
2.3px 2.6px 3.9px -1.2px hsl(205 20% 10% / 0.1),
|
| 33 |
+
3.9px 4.4px 6.6px -1.7px hsl(205 20% 10% / 0.1),
|
| 34 |
+
6.5px 7.2px 10.9px -2.1px hsl(205 20% 10% / 0.1),
|
| 35 |
+
8px 9px 14px -2.5px hsl(205 20% 10% / 0.2);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.glass3d::before {
|
| 39 |
+
content: "";
|
| 40 |
+
position: absolute;
|
| 41 |
+
inset: 0;
|
| 42 |
+
pointer-events: none;
|
| 43 |
+
border-radius: inherit;
|
| 44 |
+
overflow: hidden;
|
| 45 |
+
z-index: 3;
|
| 46 |
+
-webkit-backdrop-filter: var(--filter-glass3d);
|
| 47 |
+
backdrop-filter: var(--filter-glass3d);
|
| 48 |
+
background-color: var(--color-glass3d);
|
| 49 |
+
background-image: var(--noise-glass3d);
|
| 50 |
+
background-size: 100px;
|
| 51 |
+
background-repeat: repeat;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.glass3d::after {
|
| 55 |
+
content: "";
|
| 56 |
+
position: absolute;
|
| 57 |
+
inset: 0;
|
| 58 |
+
pointer-events: none;
|
| 59 |
+
border-radius: inherit;
|
| 60 |
+
overflow: hidden;
|
| 61 |
+
z-index: 5;
|
| 62 |
+
box-shadow:
|
| 63 |
+
inset 2px 2px 1px -3px hsl(205 20% 90% / 0.8),
|
| 64 |
+
inset 4px 4px 2px -6px hsl(205 20% 90% / 0.3),
|
| 65 |
+
inset 1.5px 1.5px 1.5px -0.75px hsl(205 20% 90% / 0.15),
|
| 66 |
+
inset 1.5px 1.5px 0.25px hsl(205 20% 90% / 0.03),
|
| 67 |
+
inset 0 0 0.25px 0.5px hsl(205 20% 90% / 0.03);
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.glass3d > * {
|
| 71 |
+
position: relative;
|
| 72 |
+
z-index: 6;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
.widget {
|
| 76 |
+
transition: all 0.3s ease;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.widget.hidden {
|
| 80 |
+
opacity: 0;
|
| 81 |
+
transform: scale(0.9);
|
| 82 |
+
pointer-events: none;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.settings-panel {
|
| 86 |
+
transition: all 0.3s ease;
|
| 87 |
+
transform: translateY(100%);
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
.settings-panel.open {
|
| 91 |
+
transform: translateY(0);
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.quote-transition {
|
| 95 |
+
transition: opacity 0.5s ease;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.search-bar {
|
| 99 |
+
transition: all 0.3s ease;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.search-bar:focus-within {
|
| 103 |
+
transform: scale(1.02);
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
@keyframes float {
|
| 107 |
+
0% { transform: translateY(0px); }
|
| 108 |
+
50% { transform: translateY(-10px); }
|
| 109 |
+
100% { transform: translateY(0px); }
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
.floating {
|
| 113 |
+
animation: float 6s ease-in-out infinite;
|
| 114 |
+
}
|
| 115 |
+
</style>
|
| 116 |
+
</head>
|
| 117 |
+
<body class="flex flex-col items-center justify-center p-4">
|
| 118 |
+
<!-- Main Content -->
|
| 119 |
+
<div class="w-full max-w-4xl mx-auto flex flex-col items-center gap-6">
|
| 120 |
+
<!-- Clock & Date Widget -->
|
| 121 |
+
<div id="clock-widget" class="glass3d widget rounded-2xl p-6 w-full max-w-md text-center">
|
| 122 |
+
<div class="text-6xl font-bold tracking-tighter" id="clock">00:00:00</div>
|
| 123 |
+
<div class="text-xl mt-2 font-medium" id="date">Monday, January 1, 2023</div>
|
| 124 |
+
</div>
|
| 125 |
+
|
| 126 |
+
<!-- Search Bar -->
|
| 127 |
+
<div id="search-widget" class="glass3d widget rounded-full p-1 w-full max-w-xl search-bar">
|
| 128 |
+
<form action="https://www.google.com/search" method="get" target="_blank" class="flex items-center">
|
| 129 |
+
<input type="text" name="q" placeholder="Search with Google..."
|
| 130 |
+
class="w-full bg-transparent border-none outline-none text-white placeholder-white/70 px-6 py-3 text-lg">
|
| 131 |
+
<button type="submit" class="p-3 rounded-full hover:bg-white/10 transition-colors">
|
| 132 |
+
<i class="fas fa-search text-white/80"></i>
|
| 133 |
+
</button>
|
| 134 |
+
</form>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<!-- Weather Widget -->
|
| 138 |
+
<div id="weather-widget" class="glass3d widget rounded-2xl p-6 w-full max-w-sm">
|
| 139 |
+
<div class="flex items-center justify-between">
|
| 140 |
+
<div class="flex items-center">
|
| 141 |
+
<div class="text-5xl mr-4" id="weather-icon">🌤️</div>
|
| 142 |
+
<div>
|
| 143 |
+
<div class="text-3xl font-bold" id="weather-temp">24°C</div>
|
| 144 |
+
<div class="text-lg" id="weather-location">San Francisco</div>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
<div class="text-right">
|
| 148 |
+
<div class="text-sm opacity-80" id="weather-desc">Partly Cloudy</div>
|
| 149 |
+
<div class="text-sm opacity-80" id="weather-range">H:26° L:18°</div>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<!-- Quick Bookmarks -->
|
| 155 |
+
<div id="bookmarks-widget" class="glass3d widget rounded-2xl p-6 w-full">
|
| 156 |
+
<h2 class="text-xl font-semibold mb-4 text-center">Quick Links</h2>
|
| 157 |
+
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-4">
|
| 158 |
+
<a href="https://mail.google.com" target="_blank" class="flex flex-col items-center p-3 rounded-xl hover:bg-white/10 transition-colors">
|
| 159 |
+
<div class="text-3xl mb-2">📧</div>
|
| 160 |
+
<div class="text-sm text-center">Gmail</div>
|
| 161 |
+
</a>
|
| 162 |
+
<a href="https://calendar.google.com" target="_blank" class="flex flex-col items-center p-3 rounded-xl hover:bg-white/10 transition-colors">
|
| 163 |
+
<div class="text-3xl mb-2">📅</div>
|
| 164 |
+
<div class="text-sm text-center">Calendar</div>
|
| 165 |
+
</a>
|
| 166 |
+
<a href="https://youtube.com" target="_blank" class="flex flex-col items-center p-3 rounded-xl hover:bg-white/10 transition-colors">
|
| 167 |
+
<div class="text-3xl mb-2">📺</div>
|
| 168 |
+
<div class="text-sm text-center">YouTube</div>
|
| 169 |
+
</a>
|
| 170 |
+
<a href="https://github.com" target="_blank" class="flex flex-col items-center p-3 rounded-xl hover:bg-white/10 transition-colors">
|
| 171 |
+
<div class="text-3xl mb-2">💻</div>
|
| 172 |
+
<div class="text-sm text-center">GitHub</div>
|
| 173 |
+
</a>
|
| 174 |
+
<a href="https://twitter.com" target="_blank" class="flex flex-col items-center p-3 rounded-xl hover:bg-white/10 transition-colors">
|
| 175 |
+
<div class="text-3xl mb-2">🐦</div>
|
| 176 |
+
<div class="text-sm text-center">Twitter</div>
|
| 177 |
+
</a>
|
| 178 |
+
<a href="https://reddit.com" target="_blank" class="flex flex-col items-center p-3 rounded-xl hover:bg-white/10 transition-colors">
|
| 179 |
+
<div class="text-3xl mb-2">🦊</div>
|
| 180 |
+
<div class="text-sm text-center">Reddit</div>
|
| 181 |
+
</a>
|
| 182 |
+
</div>
|
| 183 |
+
</div>
|
| 184 |
+
|
| 185 |
+
<!-- Pet Quote Widget -->
|
| 186 |
+
<div id="quote-widget" class="glass3d widget rounded-2xl p-6 w-full max-w-2xl text-center">
|
| 187 |
+
<div class="text-4xl mb-4">🐾</div>
|
| 188 |
+
<div class="quote-transition">
|
| 189 |
+
<p class="text-xl italic" id="pet-quote">"Dogs do speak, but only to those who know how to listen."</p>
|
| 190 |
+
<p class="mt-2 opacity-80" id="pet-author">- Orhan Pamuk</p>
|
| 191 |
+
</div>
|
| 192 |
+
</div>
|
| 193 |
+
</div>
|
| 194 |
+
|
| 195 |
+
<!-- Settings Button -->
|
| 196 |
+
<button id="settings-button" class="fixed bottom-6 right-6 glass3d rounded-full p-4 hover:bg-white/10 transition-colors">
|
| 197 |
+
<i class="fas fa-cog text-xl"></i>
|
| 198 |
+
</button>
|
| 199 |
+
|
| 200 |
+
<!-- Settings Panel -->
|
| 201 |
+
<div id="settings-panel" class="fixed inset-0 bg-black/50 flex items-end settings-panel z-50">
|
| 202 |
+
<div class="glass3d w-full rounded-t-3xl p-6 max-h-[80vh] overflow-y-auto">
|
| 203 |
+
<div class="flex justify-between items-center mb-6">
|
| 204 |
+
<h2 class="text-2xl font-bold">Widget Settings</h2>
|
| 205 |
+
<button id="close-settings" class="p-2 rounded-full hover:bg-white/10">
|
| 206 |
+
<i class="fas fa-times"></i>
|
| 207 |
+
</button>
|
| 208 |
+
</div>
|
| 209 |
+
|
| 210 |
+
<div class="space-y-4">
|
| 211 |
+
<div class="flex items-center justify-between p-3 rounded-lg bg-white/5">
|
| 212 |
+
<div>
|
| 213 |
+
<h3 class="font-medium">Clock & Date</h3>
|
| 214 |
+
<p class="text-sm opacity-80">Display time and date</p>
|
| 215 |
+
</div>
|
| 216 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 217 |
+
<input type="checkbox" class="sr-only peer" checked data-widget="clock-widget">
|
| 218 |
+
<div class="w-11 h-6 bg-gray-700 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
|
| 219 |
+
</label>
|
| 220 |
+
</div>
|
| 221 |
+
|
| 222 |
+
<div class="flex items-center justify-between p-3 rounded-lg bg-white/5">
|
| 223 |
+
<div>
|
| 224 |
+
<h3 class="font-medium">Search Bar</h3>
|
| 225 |
+
<p class="text-sm opacity-80">Google search integration</p>
|
| 226 |
+
</div>
|
| 227 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 228 |
+
<input type="checkbox" class="sr-only peer" checked data-widget="search-widget">
|
| 229 |
+
<div class="w-11 h-6 bg-gray-700 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
|
| 230 |
+
</label>
|
| 231 |
+
</div>
|
| 232 |
+
|
| 233 |
+
<div class="flex items-center justify-between p-3 rounded-lg bg-white/5">
|
| 234 |
+
<div>
|
| 235 |
+
<h3 class="font-medium">Weather</h3>
|
| 236 |
+
<p class="text-sm opacity-80">Current weather conditions</p>
|
| 237 |
+
</div>
|
| 238 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 239 |
+
<input type="checkbox" class="sr-only peer" checked data-widget="weather-widget">
|
| 240 |
+
<div class="w-11 h-6 bg-gray-700 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
|
| 241 |
+
</label>
|
| 242 |
+
</div>
|
| 243 |
+
|
| 244 |
+
<div class="flex items-center justify-between p-3 rounded-lg bg-white/5">
|
| 245 |
+
<div>
|
| 246 |
+
<h3 class="font-medium">Quick Bookmarks</h3>
|
| 247 |
+
<p class="text-sm opacity-80">Frequently visited sites</p>
|
| 248 |
+
</div>
|
| 249 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 250 |
+
<input type="checkbox" class="sr-only peer" checked data-widget="bookmarks-widget">
|
| 251 |
+
<div class="w-11 h-6 bg-gray-700 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
|
| 252 |
+
</label>
|
| 253 |
+
</div>
|
| 254 |
+
|
| 255 |
+
<div class="flex items-center justify-between p-3 rounded-lg bg-white/5">
|
| 256 |
+
<div>
|
| 257 |
+
<h3 class="font-medium">Pet Quotes</h3>
|
| 258 |
+
<p class="text-sm opacity-80">Daily inspirational pet quotes</p>
|
| 259 |
+
</div>
|
| 260 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 261 |
+
<input type="checkbox" class="sr-only peer" checked data-widget="quote-widget">
|
| 262 |
+
<div class="w-11 h-6 bg-gray-700 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-500"></div>
|
| 263 |
+
</label>
|
| 264 |
+
</div>
|
| 265 |
+
</div>
|
| 266 |
+
|
| 267 |
+
<div class="mt-8 pt-4 border-t border-white/10">
|
| 268 |
+
<h3 class="font-medium mb-3">Background Image</h3>
|
| 269 |
+
<div class="grid grid-cols-3 gap-3">
|
| 270 |
+
<button class="aspect-video bg-cover bg-center rounded-lg overflow-hidden relative"
|
| 271 |
+
style="background-image: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8MXx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60')">
|
| 272 |
+
<div class="absolute inset-0 bg-black/30 flex items-center justify-center">
|
| 273 |
+
<i class="fas fa-check text-white"></i>
|
| 274 |
+
</div>
|
| 275 |
+
</button>
|
| 276 |
+
<button class="aspect-video bg-cover bg-center rounded-lg overflow-hidden"
|
| 277 |
+
style="background-image: url('https://images.unsplash.com/photo-1530281700549-e82e7bf110d6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8Mnx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60')"></button>
|
| 278 |
+
<button class="aspect-video bg-cover bg-center rounded-lg overflow-hidden"
|
| 279 |
+
style="background-image: url('https://images.unsplash.com/photo-1586671267731-da2cf3ceeb80?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8NHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60')"></button>
|
| 280 |
+
</div>
|
| 281 |
+
</div>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
|
| 285 |
+
<!-- Floating Pet Icon -->
|
| 286 |
+
<div class="fixed bottom-6 left-6 text-4xl floating">🐕</div>
|
| 287 |
+
|
| 288 |
+
<script>
|
| 289 |
+
// Clock functionality
|
| 290 |
+
function updateClock() {
|
| 291 |
+
const now = new Date();
|
| 292 |
+
const time = now.toLocaleTimeString();
|
| 293 |
+
const date = now.toLocaleDateString('en-US', {
|
| 294 |
+
weekday: 'long',
|
| 295 |
+
year: 'numeric',
|
| 296 |
+
month: 'long',
|
| 297 |
+
day: 'numeric'
|
| 298 |
+
});
|
| 299 |
+
|
| 300 |
+
document.getElementById('clock').textContent = time;
|
| 301 |
+
document.getElementById('date').textContent = date;
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
setInterval(updateClock, 1000);
|
| 305 |
+
updateClock();
|
| 306 |
+
|
| 307 |
+
// Weather data (mock)
|
| 308 |
+
const weatherData = {
|
| 309 |
+
temp: '24°C',
|
| 310 |
+
location: 'San Francisco',
|
| 311 |
+
desc: 'Partly Cloudy',
|
| 312 |
+
range: 'H:26° L:18°',
|
| 313 |
+
icon: '🌤️'
|
| 314 |
+
};
|
| 315 |
+
|
| 316 |
+
// Pet quotes
|
| 317 |
+
const petQuotes = [
|
| 318 |
+
{ quote: "Dogs do speak, but only to those who know how to listen.", author: "Orhan Pamuk" },
|
| 319 |
+
{ quote: "The better I get to know men, the more I find myself loving dogs.", author: "Charles de Gaulle" },
|
| 320 |
+
{ quote: "Cats are connoisseurs of comfort.", author: "James Herriot" },
|
| 321 |
+
{ quote: "Until one has loved an animal, a part of one's soul remains unawakened.", author: "Anatole France" },
|
| 322 |
+
{ quote: "Animals are such agreeable friends—they ask no questions; they pass no criticisms.", author: "George Eliot" },
|
| 323 |
+
{ quote: "Pets are humanizing. They remind us we have an obligation and responsibility to preserve and nurture and care for all life.", author: "James Cromwell" }
|
| 324 |
+
];
|
| 325 |
+
|
| 326 |
+
let currentQuoteIndex = 0;
|
| 327 |
+
|
| 328 |
+
function rotateQuote() {
|
| 329 |
+
const quoteElement = document.getElementById('pet-quote');
|
| 330 |
+
const authorElement = document.getElementById('pet-author');
|
| 331 |
+
|
| 332 |
+
// Fade out
|
| 333 |
+
quoteElement.style.opacity = '0';
|
| 334 |
+
authorElement.style.opacity = '0';
|
| 335 |
+
|
| 336 |
+
setTimeout(() => {
|
| 337 |
+
currentQuoteIndex = (currentQuoteIndex + 1) % petQuotes.length;
|
| 338 |
+
const quote = petQuotes[currentQuoteIndex];
|
| 339 |
+
|
| 340 |
+
quoteElement.textContent = `"${quote.quote}"`;
|
| 341 |
+
authorElement.textContent = `- ${quote.author}`;
|
| 342 |
+
|
| 343 |
+
// Fade in
|
| 344 |
+
quoteElement.style.opacity = '1';
|
| 345 |
+
authorElement.style.opacity = '0.8';
|
| 346 |
+
}, 500);
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
+
setInterval(rotateQuote, 30000);
|
| 350 |
+
|
| 351 |
+
// Settings functionality
|
| 352 |
+
const settingsButton = document.getElementById('settings-button');
|
| 353 |
+
const settingsPanel = document.getElementById('settings-panel');
|
| 354 |
+
const closeSettings = document.getElementById('close-settings');
|
| 355 |
+
|
| 356 |
+
settingsButton.addEventListener('click', () => {
|
| 357 |
+
settingsPanel.classList.add('open');
|
| 358 |
+
});
|
| 359 |
+
|
| 360 |
+
closeSettings.addEventListener('click', () => {
|
| 361 |
+
settingsPanel.classList.remove('open');
|
| 362 |
+
});
|
| 363 |
+
|
| 364 |
+
// Toggle widgets
|
| 365 |
+
const toggleSwitches = document.querySelectorAll('input[type="checkbox"][data-widget]');
|
| 366 |
+
|
| 367 |
+
toggleSwitches.forEach(switchEl => {
|
| 368 |
+
switchEl.addEventListener('change', (e) => {
|
| 369 |
+
const widgetId = e.target.getAttribute('data-widget');
|
| 370 |
+
const widget = document.getElementById(widgetId);
|
| 371 |
+
|
| 372 |
+
if (e.target.checked) {
|
| 373 |
+
widget.classList.remove('hidden');
|
| 374 |
+
} else {
|
| 375 |
+
widget.classList.add('hidden');
|
| 376 |
+
}
|
| 377 |
+
});
|
| 378 |
+
});
|
| 379 |
+
|
| 380 |
+
// Background selection (simplified)
|
| 381 |
+
const bgButtons = document.querySelectorAll('#settings-panel button[style*="background-image"]');
|
| 382 |
+
bgButtons.forEach((btn, index) => {
|
| 383 |
+
btn.addEventListener('click', () => {
|
| 384 |
+
// Remove active state from all buttons
|
| 385 |
+
bgButtons.forEach(b => b.innerHTML = '');
|
| 386 |
+
|
| 387 |
+
// Add active state to clicked button
|
| 388 |
+
if (index === 0) {
|
| 389 |
+
btn.innerHTML = '<div class="absolute inset-0 bg-black/30 flex items-center justify-center"><i class="fas fa-check text-white"></i></div>';
|
| 390 |
+
document.body.style.backgroundImage = 'url("https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8MXx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80")';
|
| 391 |
+
} else if (index === 1) {
|
| 392 |
+
btn.innerHTML = '<div class="absolute inset-0 bg-black/30 flex items-center justify-center"><i class="fas fa-check text-white"></i></div>';
|
| 393 |
+
document.body.style.backgroundImage = 'url("https://images.unsplash.com/photo-1530281700549-e82e7bf110d6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8Mnx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80")';
|
| 394 |
+
} else {
|
| 395 |
+
btn.innerHTML = '<div class="absolute inset-0 bg-black/30 flex items-center justify-center"><i class="fas fa-check text-white"></i></div>';
|
| 396 |
+
document.body.style.backgroundImage = 'url("https://images.unsplash.com/photo-1586671267731-da2cf3ceeb80?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8NHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80")';
|
| 397 |
+
}
|
| 398 |
+
});
|
| 399 |
+
});
|
| 400 |
+
</script>
|
| 401 |
+
<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=tamnvcc/petslive" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 402 |
+
</html>
|