Skip to content

Commit 29a124f

Browse files
committed
darna-mana-hai added
1 parent be7a393 commit 29a124f

File tree

7 files changed

+74
-0
lines changed

7 files changed

+74
-0
lines changed

darna-mana-hai/.arch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x

darna-mana-hai/.version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v1.0.0

darna-mana-hai/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM nginx:stable-alpine3.20
2+
LABEL maintainer="Tech Thinker <https://techthinker.js.org>"
3+
COPY app /usr/share/nginx/html

darna-mana-hai/app/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
<title>Don't Look at this!</title>
6+
<link rel="stylesheet" href="style.css">
7+
</head>
8+
<body>
9+
<div>
10+
Don't Look at this!
11+
</div>
12+
<script src="main.js"></script>
13+
</body>
14+
</html>

darna-mana-hai/app/main.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function update(e){
2+
var x = e.clientX || e.touches[0].clientX
3+
var y = e.clientY || e.touches[0].clientY
4+
5+
document.documentElement.style.setProperty('--cursorX', x + 'px')
6+
document.documentElement.style.setProperty('--cursorY', y + 'px')
7+
}
8+
9+
document.addEventListener('mousemove',update)
10+
document.addEventListener('touchmove',update)

darna-mana-hai/app/style.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* Flashlight Overlay */
2+
:root {
3+
cursor: none;
4+
--cursorX: 50vw;
5+
--cursorY: 50vh;
6+
}
7+
:root:before {
8+
content: '';
9+
display: block;
10+
width: 100%;
11+
height: 100%;
12+
position: fixed;
13+
pointer-events: none;
14+
background: radial-gradient(
15+
circle 10vmax at var(--cursorX) var(--cursorY),
16+
rgba(0,0,0,0) 0%,
17+
rgba(0,0,0,.5) 80%,
18+
rgba(0,0,0,.95) 100%
19+
)
20+
}
21+
22+
body{
23+
margin: 0;
24+
padding: 0;
25+
}
26+
27+
body div{
28+
width: 100%;
29+
height: 100vh;
30+
border: none;
31+
display: flex;
32+
justify-content: center;
33+
text-align: center;
34+
vertical-align: middle;
35+
align-items: center;
36+
font-size: 120px;
37+
color: #050505;
38+
}

darna-mana-hai/docker-compose.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: "3.8"
2+
services:
3+
darna-mana-hai:
4+
build:
5+
context: .
6+
ports:
7+
- 8099:80

0 commit comments

Comments
 (0)