Spaces:
Sleeping
Sleeping
Upload 13 files
Browse files- public/index.css +77 -86
- public/index.html +44 -51
public/index.css
CHANGED
@@ -30,31 +30,6 @@ h2 {
|
|
30 |
}
|
31 |
}
|
32 |
|
33 |
-
#eyeButton {
|
34 |
-
background: none;
|
35 |
-
border: none;
|
36 |
-
position: relative;
|
37 |
-
cursor: pointer;
|
38 |
-
overflow: hidden; /* Clip the shadow outside the button */
|
39 |
-
border-radius: 50%; /* Make it round, adjust as needed */
|
40 |
-
width: 32px; /* Set your eye image width */;
|
41 |
-
height: 32px;/* Set your eye image height */;
|
42 |
-
animation: pulse 2s infinite; /* Adjust the duration as needed */
|
43 |
-
}
|
44 |
-
#exitButton {
|
45 |
-
background: none;
|
46 |
-
border: none;
|
47 |
-
position: relative;
|
48 |
-
cursor: pointer;
|
49 |
-
overflow: hidden; /* Clip the shadow outside the button */
|
50 |
-
border-radius: 50%; /* Make it round, adjust as needed */
|
51 |
-
width: 32px; /* Set your eye image width */;
|
52 |
-
height: 32px;/* Set your eye image height */;
|
53 |
-
}
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
#backgroundVideo {
|
59 |
top: 0;
|
60 |
left: 0;
|
@@ -66,14 +41,13 @@ h2 {
|
|
66 |
#placeholder {
|
67 |
position: relative;
|
68 |
left: 0;
|
69 |
-
width:
|
70 |
-
height:
|
71 |
background-position: center;
|
72 |
background-repeat: no-repeat;
|
73 |
background-size: cover;
|
74 |
-
background-color: black;
|
75 |
transition: background-image 0.5s ease-in-out;
|
76 |
-
|
77 |
}
|
78 |
|
79 |
div #logo_container::before {
|
@@ -96,7 +70,7 @@ div #logo_container::before {
|
|
96 |
opacity: 0;
|
97 |
width: 80%;
|
98 |
transition: opacity 1s ease-in-out;
|
99 |
-
margin-top:
|
100 |
|
101 |
}
|
102 |
|
@@ -105,13 +79,35 @@ div #logo_container::before {
|
|
105 |
|
106 |
}
|
107 |
|
|
|
|
|
108 |
.fade-out {
|
109 |
opacity: 0.09;
|
110 |
-
transition: opacity
|
111 |
}
|
112 |
|
113 |
-
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
#playPauseBtn {
|
117 |
background-color: #b4b4b4fa;
|
@@ -152,6 +148,35 @@ div #logo_container::before {
|
|
152 |
}
|
153 |
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
@keyframes ripple {
|
156 |
0% {
|
157 |
transform: scale(0);
|
@@ -176,59 +201,6 @@ div #logo_container::before {
|
|
176 |
}
|
177 |
}
|
178 |
|
179 |
-
#playPauseBtn:not(:hover) {
|
180 |
-
animation: floatUpDown 5s ease-in-out infinite;
|
181 |
-
}
|
182 |
-
|
183 |
-
#playPauseBtn{
|
184 |
-
visibility: hidden;
|
185 |
-
width: 120px;
|
186 |
-
background-color: #555;
|
187 |
-
color: #fff;
|
188 |
-
text-align: center;
|
189 |
-
border-radius: 6px;
|
190 |
-
padding: 5px 0;
|
191 |
-
position: absolute;
|
192 |
-
z-index: 1;
|
193 |
-
bottom: 125%;
|
194 |
-
left: 50%;
|
195 |
-
margin-left: -60px;
|
196 |
-
opacity: 0;
|
197 |
-
transition: opacity 0.3s;
|
198 |
-
}
|
199 |
-
|
200 |
-
#playPauseBtn:hover {
|
201 |
-
visibility: visible;
|
202 |
-
opacity: 1;
|
203 |
-
}
|
204 |
-
|
205 |
-
#playPauseBtn:after {
|
206 |
-
content: "";
|
207 |
-
position: absolute;
|
208 |
-
top: 100%;
|
209 |
-
left: 50%;
|
210 |
-
margin-left: -5px;
|
211 |
-
border-width: 5px;
|
212 |
-
border-style: solid;
|
213 |
-
border-color: #555 transparent transparent transparent transparent;
|
214 |
-
}
|
215 |
-
|
216 |
-
/* Style the scrollbar */
|
217 |
-
::-webkit-scrollbar {
|
218 |
-
width: 5px; /* Adjust the width as needed */
|
219 |
-
height: 12px; /* Adjust the height as needed */
|
220 |
-
}
|
221 |
-
|
222 |
-
::-webkit-scrollbar-track {
|
223 |
-
background: transparent; /* Set the background color of the scrollbar track */
|
224 |
-
border-radius: 10px; /* Adjust the border radius as needed */
|
225 |
-
}
|
226 |
-
|
227 |
-
::-webkit-scrollbar-thumb {
|
228 |
-
background: #888888; /* Set the background color of the scrollbar thumb */
|
229 |
-
border-radius: 12px; /* Adjust the border radius as needed */
|
230 |
-
}
|
231 |
-
|
232 |
/* Responsive styles */
|
233 |
@media (max-width: 768px) {
|
234 |
#playPauseBtn {
|
@@ -254,3 +226,22 @@ div #logo_container::before {
|
|
254 |
}
|
255 |
}
|
256 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
#backgroundVideo {
|
34 |
top: 0;
|
35 |
left: 0;
|
|
|
41 |
#placeholder {
|
42 |
position: relative;
|
43 |
left: 0;
|
44 |
+
width: auto;
|
45 |
+
height: 100dvh;
|
46 |
background-position: center;
|
47 |
background-repeat: no-repeat;
|
48 |
background-size: cover;
|
49 |
+
background-color: black;
|
50 |
transition: background-image 0.5s ease-in-out;
|
|
|
51 |
}
|
52 |
|
53 |
div #logo_container::before {
|
|
|
70 |
opacity: 0;
|
71 |
width: 80%;
|
72 |
transition: opacity 1s ease-in-out;
|
73 |
+
margin-top: 10px;
|
74 |
|
75 |
}
|
76 |
|
|
|
79 |
|
80 |
}
|
81 |
|
82 |
+
|
83 |
+
|
84 |
.fade-out {
|
85 |
opacity: 0.09;
|
86 |
+
transition: opacity 3s ease-in-out;
|
87 |
}
|
88 |
|
89 |
+
|
90 |
+
#eyeButton {
|
91 |
+
background: none;
|
92 |
+
border: none;
|
93 |
+
position: relative;
|
94 |
+
cursor: pointer;
|
95 |
+
overflow: hidden; /* Clip the shadow outside the button */
|
96 |
+
border-radius: 50%; /* Make it round, adjust as needed */
|
97 |
+
width: 32px; /* Set your eye image width */;
|
98 |
+
height: 32px;/* Set your eye image height */;
|
99 |
+
animation: pulse 2s infinite; /* Adjust the duration as needed */
|
100 |
+
}
|
101 |
+
#exitButton {
|
102 |
+
background: none;
|
103 |
+
border: none;
|
104 |
+
position: relative;
|
105 |
+
cursor: pointer;
|
106 |
+
overflow: hidden; /* Clip the shadow outside the button */
|
107 |
+
border-radius: 50%; /* Make it round, adjust as needed */
|
108 |
+
width: 32px; /* Set your eye image width */;
|
109 |
+
height: 32px;/* Set your eye image height */;
|
110 |
+
}
|
111 |
|
112 |
#playPauseBtn {
|
113 |
background-color: #b4b4b4fa;
|
|
|
148 |
}
|
149 |
|
150 |
|
151 |
+
#playPauseBtn {
|
152 |
+
background-color: #ff2424;
|
153 |
+
opacity: 35;
|
154 |
+
border-radius: 50%;
|
155 |
+
width: 50px;
|
156 |
+
animation: floatUpDown 5s ease-in-out infinite;
|
157 |
+
}
|
158 |
+
|
159 |
+
/* Tooltip */
|
160 |
+
#playPauseBtn .tooltip-text {
|
161 |
+
visibility: hidden;
|
162 |
+
width: 120px;
|
163 |
+
background-color: #ff0000;
|
164 |
+
transition: opacity 0.3s;
|
165 |
+
}
|
166 |
+
|
167 |
+
#playPauseBtn:hover .tooltip-text {
|
168 |
+
visibility: visible;
|
169 |
+
opacity: 1;
|
170 |
+
}
|
171 |
+
|
172 |
+
#playPauseBtn .tooltip-text::after {
|
173 |
+
content: "";
|
174 |
+
position: absolute;
|
175 |
+
top: 100%;
|
176 |
+
height: 20px;
|
177 |
+
}
|
178 |
+
|
179 |
+
|
180 |
@keyframes ripple {
|
181 |
0% {
|
182 |
transform: scale(0);
|
|
|
201 |
}
|
202 |
}
|
203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
/* Responsive styles */
|
205 |
@media (max-width: 768px) {
|
206 |
#playPauseBtn {
|
|
|
226 |
}
|
227 |
}
|
228 |
|
229 |
+
|
230 |
+
|
231 |
+
|
232 |
+
/* Style the scrollbar */
|
233 |
+
::-webkit-scrollbar {
|
234 |
+
width: 5px; /* Adjust the width as needed */
|
235 |
+
height: 12px; /* Adjust the height as needed */
|
236 |
+
}
|
237 |
+
|
238 |
+
::-webkit-scrollbar-track {
|
239 |
+
background: transparent; /* Set the background color of the scrollbar track */
|
240 |
+
border-radius: 10px; /* Adjust the border radius as needed */
|
241 |
+
}
|
242 |
+
|
243 |
+
::-webkit-scrollbar-thumb {
|
244 |
+
background: #888888; /* Set the background color of the scrollbar thumb */
|
245 |
+
border-radius: 12px; /* Adjust the border radius as needed */
|
246 |
+
}
|
247 |
+
|
public/index.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8" />
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
6 |
-
<title>
|
7 |
<meta name="twitter:image" content="https://i.imgur.com/JcRLYji.jpeg" />
|
8 |
<meta property="og:image" content="https://i.imgur.com/JcRLYji.jpeg" />
|
9 |
<link rel="stylesheet" href="index.css" />
|
@@ -16,6 +16,7 @@
|
|
16 |
<audio id="audioPlayer" src="only.mp3" autoplay></audio>
|
17 |
|
18 |
<script src="/mpegts.js"></script>
|
|
|
19 |
</head>
|
20 |
<body>
|
21 |
<div
|
@@ -28,19 +29,17 @@
|
|
28 |
<h1 class="display-flex text-4xl font-black text-grey-300">ФЙLЧ</h1>
|
29 |
<h2 class="cursive text-6xl font-bold text-red-500">Human</h2>
|
30 |
|
31 |
-
<a
|
32 |
-
id="eyeButton"
|
33 |
-
class="flex grid place-content-end mr-25"
|
34 |
-
>
|
35 |
<img src="eye.png" alt="Eye Icon" height="30px" width="auto" />
|
36 |
</a>
|
37 |
</div>
|
38 |
<div>
|
39 |
<a href="https://vgony.tech" class="exit-simulation-button">
|
40 |
-
<img id="exitButton" src="exit.svg" alt="Exit button"
|
41 |
-
</a>
|
|
|
42 |
<div x-data="app()" x-init="init()" class="container mx-auto z-10">
|
43 |
-
<div class="flex grid place-content-center justify-center w-full p-
|
44 |
<video
|
45 |
id="videoElement"
|
46 |
class="aspect-video mx-auto w-auto border-4 border-6 border-slate-900/30 rounded-full"
|
@@ -87,54 +86,52 @@
|
|
87 |
<img
|
88 |
src="headphones.svg"
|
89 |
alt="Pause Button"
|
90 |
-
width="
|
91 |
-
height="
|
92 |
/>
|
93 |
</button>
|
94 |
</div>
|
95 |
</div>
|
96 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
<div
|
98 |
id="placeholder"
|
99 |
class="w-screen h-screen"
|
100 |
style="
|
101 |
-
background-image: url('https://
|
102 |
"
|
103 |
class="relative inset-0 z-0"
|
104 |
></div>
|
105 |
<div
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
class="
|
112 |
-
|
113 |
-
|
114 |
-
muted
|
115 |
-
loop
|
116 |
-
></video>
|
117 |
-
</div>
|
118 |
|
119 |
<script>
|
120 |
const eyeButton = document.getElementById("eyeButton");
|
121 |
const videoWrapper = document.getElementById("videoElement");
|
122 |
-
// Get the audio element and play/pause button
|
123 |
-
// Get the audio element and play/pause button
|
124 |
const audioPlayer = document.getElementById("audioPlayer");
|
125 |
const playPauseBtn = document.getElementById("playPauseBtn");
|
126 |
-
|
127 |
-
// Array of audio file paths
|
128 |
const audioFiles = [
|
129 |
"only.mp3",
|
130 |
"risenfall.mp3",
|
131 |
-
|
132 |
// Add more audio file paths here
|
133 |
];
|
134 |
-
|
135 |
-
videoWrapper.classList.toggle("fade-in");
|
136 |
-
});
|
137 |
-
|
138 |
// Shuffle the audio files array
|
139 |
function shuffleArray(array) {
|
140 |
for (let i = array.length - 1; i > 0; i--) {
|
@@ -144,17 +141,19 @@
|
|
144 |
return array;
|
145 |
}
|
146 |
|
|
|
|
|
|
|
|
|
147 |
// Play the next audio file in the shuffled array
|
148 |
function playNextAudio() {
|
149 |
-
const currentIndex = audioFiles.findIndex(
|
150 |
-
(file) => file === audioPlayer.src
|
151 |
-
);
|
152 |
const nextIndex = (currentIndex + 1) % audioFiles.length;
|
153 |
audioPlayer.src = audioFiles[nextIndex];
|
154 |
audioPlayer.play();
|
155 |
}
|
156 |
-
|
157 |
-
//
|
158 |
playPauseBtn.addEventListener("click", () => {
|
159 |
if (audioPlayer.paused) {
|
160 |
audioPlayer.play();
|
@@ -164,30 +163,24 @@
|
|
164 |
playPauseBtn.querySelector("img").src = "headphones.svg";
|
165 |
}
|
166 |
});
|
167 |
-
|
168 |
-
//
|
169 |
shuffleArray(audioFiles);
|
170 |
audioPlayer.src = audioFiles[0];
|
171 |
audioPlayer.play();
|
172 |
-
|
173 |
-
// Automatically play the next audio file after the current one finishes
|
174 |
audioPlayer.addEventListener("ended", playNextAudio);
|
175 |
-
|
|
|
176 |
document.addEventListener("DOMContentLoaded", function () {
|
177 |
setTimeout(function () {
|
178 |
showVideo();
|
179 |
-
},
|
180 |
});
|
181 |
-
|
182 |
function showVideo() {
|
183 |
var videoElement = document.getElementById("videoElement");
|
184 |
videoElement.classList.add("fade-in");
|
185 |
}
|
186 |
-
|
187 |
-
function fadeBackgroundImage() {
|
188 |
-
var backgroundElement = document.getElementById("backgroundImage");
|
189 |
-
backgroundElement.classList.add("fade-out");
|
190 |
-
}
|
191 |
</script>
|
192 |
<script>
|
193 |
// disable analytics (we don't use VideoJS yet anyway)
|
@@ -243,7 +236,7 @@
|
|
243 |
},
|
244 |
comedy: {
|
245 |
id: "comedy",
|
246 |
-
label: "#
|
247 |
audience: 0,
|
248 |
online: false,
|
249 |
visible: true,
|
@@ -254,7 +247,7 @@
|
|
254 |
},
|
255 |
documentary: {
|
256 |
id: "documentary",
|
257 |
-
label: "#
|
258 |
audience: 0,
|
259 |
online: false,
|
260 |
visible: true,
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8" />
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
6 |
+
<title>V Corp</title>
|
7 |
<meta name="twitter:image" content="https://i.imgur.com/JcRLYji.jpeg" />
|
8 |
<meta property="og:image" content="https://i.imgur.com/JcRLYji.jpeg" />
|
9 |
<link rel="stylesheet" href="index.css" />
|
|
|
16 |
<audio id="audioPlayer" src="only.mp3" autoplay></audio>
|
17 |
|
18 |
<script src="/mpegts.js"></script>
|
19 |
+
|
20 |
</head>
|
21 |
<body>
|
22 |
<div
|
|
|
29 |
<h1 class="display-flex text-4xl font-black text-grey-300">ФЙLЧ</h1>
|
30 |
<h2 class="cursive text-6xl font-bold text-red-500">Human</h2>
|
31 |
|
32 |
+
<a id="eyeButton" class="flex grid place-content-end mr-25">
|
|
|
|
|
|
|
33 |
<img src="eye.png" alt="Eye Icon" height="30px" width="auto" />
|
34 |
</a>
|
35 |
</div>
|
36 |
<div>
|
37 |
<a href="https://vgony.tech" class="exit-simulation-button">
|
38 |
+
<img id="exitButton" src="exit.svg" alt="Exit button" />
|
39 |
+
</a>
|
40 |
+
</div>
|
41 |
<div x-data="app()" x-init="init()" class="container mx-auto z-10">
|
42 |
+
<div class="flex grid place-content-center justify-center w-full p-1">
|
43 |
<video
|
44 |
id="videoElement"
|
45 |
class="aspect-video mx-auto w-auto border-4 border-6 border-slate-900/30 rounded-full"
|
|
|
86 |
<img
|
87 |
src="headphones.svg"
|
88 |
alt="Pause Button"
|
89 |
+
width="32"
|
90 |
+
height="32"
|
91 |
/>
|
92 |
</button>
|
93 |
</div>
|
94 |
</div>
|
95 |
</div>
|
96 |
+
<div id="placeholder" class="w-auto h-vh relative inset-0 z-0"
|
97 |
+
style="
|
98 |
+
background-image: url('https://media1.giphy.com/media/n1KtF7TCeMM3hit7OI/giphy.gif');
|
99 |
+
background-position: center;
|
100 |
+
background-repeat: no-repeat;
|
101 |
+
background-size: cover;
|
102 |
+
background-color: black;
|
103 |
+
transition: background-image 0.5s ease-in-out;
|
104 |
+
"></div>
|
105 |
<div
|
106 |
id="placeholder"
|
107 |
class="w-screen h-screen"
|
108 |
style="
|
109 |
+
background-image: url('https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExdGZzdHJlYTVtNTN1aXFxNWhuY3F5M3VyNjE3aDRpbmt3Z3V1bjd0ayZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/W4xRd0FiK5EY6Q71DC/giphy.gif');
|
110 |
"
|
111 |
class="relative inset-0 z-0"
|
112 |
></div>
|
113 |
<div
|
114 |
+
id="placeholder"
|
115 |
+
class="w-screen h-screen"
|
116 |
+
style="
|
117 |
+
background-image: url('https://media0.giphy.com/media/YHrQQb71BWx2k21w2N/giphy.gif?cid=ecf05e47dipv8twiw8rsrrrpcbygndgu6buzuri4mvr4hw83&ep=v1_gifs_related&rid=giphy.gif&ct=g');
|
118 |
+
"
|
119 |
+
class="relative inset-0 z-0"
|
120 |
+
></div>
|
121 |
+
|
|
|
|
|
|
|
|
|
122 |
|
123 |
<script>
|
124 |
const eyeButton = document.getElementById("eyeButton");
|
125 |
const videoWrapper = document.getElementById("videoElement");
|
|
|
|
|
126 |
const audioPlayer = document.getElementById("audioPlayer");
|
127 |
const playPauseBtn = document.getElementById("playPauseBtn");
|
128 |
+
|
|
|
129 |
const audioFiles = [
|
130 |
"only.mp3",
|
131 |
"risenfall.mp3",
|
|
|
132 |
// Add more audio file paths here
|
133 |
];
|
134 |
+
|
|
|
|
|
|
|
135 |
// Shuffle the audio files array
|
136 |
function shuffleArray(array) {
|
137 |
for (let i = array.length - 1; i > 0; i--) {
|
|
|
141 |
return array;
|
142 |
}
|
143 |
|
144 |
+
eyeButton.addEventListener("click", () => {
|
145 |
+
videoWrapper.classList.toggle("fade-in");
|
146 |
+
});
|
147 |
+
|
148 |
// Play the next audio file in the shuffled array
|
149 |
function playNextAudio() {
|
150 |
+
const currentIndex = audioFiles.findIndex((file) => file === audioPlayer.src);
|
|
|
|
|
151 |
const nextIndex = (currentIndex + 1) % audioFiles.length;
|
152 |
audioPlayer.src = audioFiles[nextIndex];
|
153 |
audioPlayer.play();
|
154 |
}
|
155 |
+
|
156 |
+
// Handle clicking the play/pause button
|
157 |
playPauseBtn.addEventListener("click", () => {
|
158 |
if (audioPlayer.paused) {
|
159 |
audioPlayer.play();
|
|
|
163 |
playPauseBtn.querySelector("img").src = "headphones.svg";
|
164 |
}
|
165 |
});
|
166 |
+
|
167 |
+
// Setup audio player
|
168 |
shuffleArray(audioFiles);
|
169 |
audioPlayer.src = audioFiles[0];
|
170 |
audioPlayer.play();
|
|
|
|
|
171 |
audioPlayer.addEventListener("ended", playNextAudio);
|
172 |
+
|
173 |
+
// Display the video once loaded
|
174 |
document.addEventListener("DOMContentLoaded", function () {
|
175 |
setTimeout(function () {
|
176 |
showVideo();
|
177 |
+
}, 1000);
|
178 |
});
|
179 |
+
|
180 |
function showVideo() {
|
181 |
var videoElement = document.getElementById("videoElement");
|
182 |
videoElement.classList.add("fade-in");
|
183 |
}
|
|
|
|
|
|
|
|
|
|
|
184 |
</script>
|
185 |
<script>
|
186 |
// disable analytics (we don't use VideoJS yet anyway)
|
|
|
236 |
},
|
237 |
comedy: {
|
238 |
id: "comedy",
|
239 |
+
label: "#Entertainment",
|
240 |
audience: 0,
|
241 |
online: false,
|
242 |
visible: true,
|
|
|
247 |
},
|
248 |
documentary: {
|
249 |
id: "documentary",
|
250 |
+
label: "#News",
|
251 |
audience: 0,
|
252 |
online: false,
|
253 |
visible: true,
|