Skip to content

Commit 195f371

Browse files
authored
Merge pull request #5 from SOORAJTS2001/feat/easter-eggs
feat: Add Makefile and remove the font on mobile page
2 parents 311aa66 + 839924d commit 195f371

File tree

3 files changed

+40
-7
lines changed

3 files changed

+40
-7
lines changed

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# --- CONFIG ---
2+
VENV = .venv
3+
PYTHON = python3
4+
POETRY = $(VENV)/bin/poetry
5+
6+
# --- TARGETS ---
7+
8+
.PHONY: all setup run clean
9+
10+
all: run
11+
12+
# Ensure venv exists
13+
$(VENV)/bin/activate:
14+
@echo "👉 Creating virtual environment..."
15+
@$(PYTHON) -m venv $(VENV)
16+
17+
# Install Poetry inside venv if missing
18+
$(POETRY): $(VENV)/bin/activate
19+
@echo "👉 Ensuring Poetry is installed..."
20+
@. $(VENV)/bin/activate && \
21+
(if ! command -v poetry >/dev/null 2>&1; then \
22+
curl -sSL https://install.python-poetry.org | $(PYTHON) -; \
23+
fi)
24+
25+
setup: $(POETRY)
26+
@echo "👉 Installing dependencies..."
27+
@. $(VENV)/bin/activate && poetry install --no-root
28+
29+
run: setup
30+
@echo "👉 Running uvicorn server..."
31+
@. $(VENV)/bin/activate && python app.py
32+
33+
clean:
34+
@echo "🧹 Cleaning up..."
35+
@rm -rf $(VENV)

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def lifespan(app: FastAPI):
6060
f"[bold cyan]1.[/bold cyan] Connect to the same Wi-Fi network",
6161
f"[bold cyan]2.[/bold cyan] Scan the QR code",
6262
f"[bold cyan] [/bold cyan] Or [yellow]{mobile_page_url}[/yellow]",
63-
f"[bold cyan]3.[/bold cyan] Go to the scroll area and enjoy!",
63+
f"[bold cyan]3.[/bold cyan] That's it, Now do your Misclick!",
6464
]
6565
),
6666
title="Steps",

mobile_page/index.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Misclick - Wrong Tool, for a reason</title>
7-
<link href="https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap" rel="stylesheet">
87

98

109
<!-- Bootstrap CSS -->
@@ -25,7 +24,7 @@
2524
justify-content: center;
2625
align-items: center;
2726
/* Background image */
28-
background-image: url("resource/static/brick_wall.png");
27+
background-image: url("resource/static/brick_wall.png");
2928
background-size: cover; /* Fill the whole screen */
3029
background-position: center; /* Keep it centered */
3130
background-repeat: no-repeat; /* Prevent tiling */
@@ -79,12 +78,11 @@
7978
<label for="copiedText" class="form-label fw-bold">
8079
</label>
8180
<textarea id="copiedText"
82-
rows="1"
83-
placeholder="Your copied text will appear here..."
81+
rows="7"
8482
readonly
8583
style="background: transparent; border: none; outline: none; resize: none; width: 100%;
86-
color: white; font-size: 2rem; font-family: 'Permanent Marker', cursive;">
87-
</textarea>
84+
color: white; font-size: 0.9rem; line-height: 1.4; overflow-y: auto;">
85+
</textarea>
8886
</div>
8987
</div>
9088

0 commit comments

Comments
 (0)