blewis101 commited on
Commit
d97154f
·
verified ·
1 Parent(s): 5f3f430

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +217 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Dark Forest Menu View
3
- emoji: 📈
4
- colorFrom: gray
5
- colorTo: indigo
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: dark-forest-menu-view
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: red
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,217 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>The Dark Forest</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=Bungee+Shade&family=National+Park&display=swap" rel="stylesheet">
11
+ <style>
12
+ body {
13
+ overflow: hidden;
14
+ font-family: 'Bungee Shade', cursive;
15
+ }
16
+
17
+ .background-container {
18
+ position: relative;
19
+ width: 100vw;
20
+ height: 100vh;
21
+ overflow: hidden;
22
+ }
23
+
24
+ .background-image {
25
+ position: absolute;
26
+ width: 100%;
27
+ height: 100%;
28
+ background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b'); /* Direct image URL */
29
+ background-size: cover;
30
+ background-position: center;
31
+ z-index: 1; /* Add this to establish stacking context */
32
+ }
33
+
34
+ .background-overlay {
35
+ position: absolute;
36
+ width: 100%;
37
+ height: 100%;
38
+ background: linear-gradient(to bottom,
39
+ rgba(0,0,0,0) 0%,
40
+ rgba(0,0,0,0.7) 100%,
41
+ rgba(0,0,0,1) 100%);
42
+ z-index: 2; /* Higher than background image */
43
+ }
44
+
45
+ .title-container {
46
+ position: absolute;
47
+ top: 15% !important; /* Lower position for better spacing */
48
+ left: 50%;
49
+ transform: translateX(-50%);
50
+ text-align: center;
51
+ z-index: 20;
52
+ width: 100%;
53
+ pointer-events: none;
54
+ }
55
+
56
+ .menu-container {
57
+ position: absolute;
58
+ top: 50%;
59
+ left: 50%;
60
+ transform: translate(-50%, -50%);
61
+ width: 400px;
62
+ background-color: rgba(20, 20, 20, 0.8);
63
+ border: 2px solid #4a0000;
64
+ border-radius: 10px;
65
+ padding: 30px;
66
+ box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
67
+ z-index: 15;
68
+ margin-top: 30px;
69
+ }
70
+
71
+ .game-title {
72
+ color: #ff0000;
73
+ font-size: 4rem;
74
+ text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
75
+ letter-spacing: 2px;
76
+ white-space: nowrap;
77
+ }
78
+
79
+ .menu-button {
80
+ display: block;
81
+ width: 100%;
82
+ padding: 15px;
83
+ margin-bottom: 15px;
84
+ background-color: #1a1a1a;
85
+ color: #d1d1d1;
86
+ border: 1px solid #4a0000;
87
+ border-radius: 5px;
88
+ font-family: 'National Park', sans-serif;
89
+ font-size: 1.2rem;
90
+ text-align: center;
91
+ cursor: pointer;
92
+ transition: all 0.3s ease;
93
+ }
94
+
95
+ .menu-button:hover {
96
+ background-color: #4a0000;
97
+ color: white;
98
+ transform: translateY(-3px);
99
+ box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
100
+ }
101
+
102
+ .menu-button:active {
103
+ transform: translateY(0);
104
+ }
105
+
106
+ .flicker {
107
+ animation: flicker 5s infinite alternate;
108
+ }
109
+
110
+ @keyframes flicker {
111
+ 0%, 18%, 22%, 25%, 53%, 57%, 100% {
112
+ text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
113
+ }
114
+ 20%, 24%, 55% {
115
+ text-shadow: 0 0 2px rgba(255, 0, 0, 0.2);
116
+ }
117
+ }
118
+
119
+ /* Add this new rule */
120
+ @media (max-width: 768px) {
121
+ .game-title {
122
+ font-size: 3rem !important;
123
+ white-space: normal;
124
+ }
125
+
126
+ .particles {
127
+ position: absolute;
128
+ width: 100%;
129
+ height: 100%;
130
+ pointer-events: none;
131
+ }
132
+
133
+ .particle {
134
+ position: absolute;
135
+ background-color: rgba(255, 0, 0, 0.5);
136
+ border-radius: 50%;
137
+ pointer-events: none;
138
+ }
139
+ </style>
140
+ </head>
141
+ <body>
142
+ <div class="background-container">
143
+ <div class="background-image"></div>
144
+ <div class="background-overlay"></div>
145
+ <div class="particles" id="particles"></div>
146
+
147
+ <div class="title-container">
148
+ <h1 class="game-title flicker">THE DARK FOREST</h1>
149
+ </div>
150
+
151
+ <div class="menu-container">
152
+ <button class="menu-button">CONTINUE GAME</button>
153
+ <button class="menu-button">NEW GAME</button>
154
+ <button class="menu-button">SETTINGS</button>
155
+ <button class="menu-button">THE LOST WEBSITE</button>
156
+ </div>
157
+ </div>
158
+
159
+ <script>
160
+ // Create floating particles for atmosphere
161
+ document.addEventListener('DOMContentLoaded', function() {
162
+ const particlesContainer = document.getElementById('particles');
163
+ const particleCount = 30;
164
+
165
+ for (let i = 0; i < particleCount; i++) {
166
+ const particle = document.createElement('div');
167
+ particle.classList.add('particle');
168
+
169
+ // Random size between 1px and 3px
170
+ const size = Math.random() * 2 + 1;
171
+ particle.style.width = `${size}px`;
172
+ particle.style.height = `${size}px`;
173
+
174
+ // Random position
175
+ particle.style.left = `${Math.random() * 100}%`;
176
+ particle.style.top = `${Math.random() * 100}%`;
177
+
178
+ // Random animation
179
+ const duration = Math.random() * 20 + 10;
180
+ const delay = Math.random() * 5;
181
+ particle.style.animation = `float ${duration}s ease-in-out ${delay}s infinite`;
182
+
183
+ particlesContainer.appendChild(particle);
184
+ }
185
+
186
+ // Add floating animation
187
+ const style = document.createElement('style');
188
+ style.innerHTML = `
189
+ @keyframes float {
190
+ 0% {
191
+ transform: translate(0, 0);
192
+ opacity: 0;
193
+ }
194
+ 50% {
195
+ opacity: 0.8;
196
+ }
197
+ 100% {
198
+ transform: translate(${Math.random() * 100 - 50}px, ${Math.random() * 100 - 50}px);
199
+ opacity: 0;
200
+ }
201
+ }
202
+ `;
203
+ document.head.appendChild(style);
204
+
205
+ // Add button hover effects
206
+ const buttons = document.querySelectorAll('.menu-button');
207
+ buttons.forEach(button => {
208
+ button.addEventListener('mouseenter', () => {
209
+ const audio = new Audio('https://assets.mixkit.co/sfx/preview/mixkit-select-click-1109.mp3');
210
+ audio.volume = 0.2;
211
+ audio.play();
212
+ });
213
+ });
214
+ });
215
+ </script>
216
+ <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=blewis101/dark-forest-menu-view" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
217
+ </html>