Skip to content

Commit e7d1a81

Browse files
committed
rabbit hole update
1 parent 108289d commit e7d1a81

File tree

3 files changed

+74
-7
lines changed

3 files changed

+74
-7
lines changed

src/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Place any global data in this file.
22
// You can import this data from anywhere in your site by using the `import` keyword.
33

4-
export const SITE_TITLE = 'Jon Miller';
4+
export const SITE_TITLE = 'jmill';
55
export const SITE_DESCRIPTION = 'editor | engineer | bicyclist';

src/pages/index.astro

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
1818
<source src="/videos/reflections.mp4" type="video/mp4" />
1919
</video>
2020
</div>
21-
<button>
22-
23-
</button>
21+
<div class="button-container">
22+
<a href="/about" class="enter-btn">Enter the Rabbit Hole</a>
23+
</div>
2424
<p>
2525

2626
</p>
@@ -42,16 +42,47 @@ main {
4242

4343
.video_container {
4444
position: absolute;
45-
top: 50%;
45+
top: 35%;
4646
left: 50%;
4747
transform: translate(-50%, -50%);
4848
z-index: 2;
4949
}
5050

5151
video {
5252
transform: rotate(270deg);
53-
max-width: 100%;
54-
max-height: 100vh;
53+
width: 80vw;
54+
height: auto;
55+
max-width: 100vw;
56+
max-height: 80vh;
57+
}
58+
59+
.button-container {
60+
display: flex;
61+
justify-content: center;
62+
margin-top: 40vh;
63+
z-index: 3;
64+
}
65+
66+
.enter-btn {
67+
position: relative;
68+
z-index: 3;
69+
padding: 10px 20px;
70+
font-size: 16px;
71+
color: #eaeaea; /* off white */
72+
background-color: transparent;
73+
border: 2px solid #bbb; /* subtle gray outline */
74+
border-radius: 5px;
75+
cursor: pointer;
76+
text-align: center;
77+
transition: background 0.2s, color 0.2s, border 0.2s;
78+
opacity: 0.7;
79+
}
80+
81+
.enter-btn:hover {
82+
background-color: #f5f5f5;
83+
color: #222;
84+
border: 2px solid #888;
85+
opacity: 1;
5586
}
5687

5788
</style>

src/pages/rabbit-hole.astro

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
3+
---
4+
<body>
5+
<div class="wrapper">
6+
<!-- Primary Layout -->
7+
<!-- DOT GRID -->
8+
<div class="instructions">
9+
<h1>hjmg</h1>
10+
<p>Click the a shape, then drag to any second shape. Repeat</p>
11+
</div>
12+
<div class="game-container">
13+
<div class="game">
14+
<div class="dot-grid">
15+
<!-- Dots will be generated here -->
16+
</div>
17+
<div class="shape-container">
18+
<!-- Shapes will be generated here -->
19+
</div>
20+
</div>
21+
</div>
22+
<! -- Text Layer -->
23+
<div class="text-layer">
24+
<h1>Iterate to navigate</h1>
25+
</div>
26+
<p class="story">
27+
<span class="highlight">Rabbit Hole</span> is a game about exploring the unknown, where each choice leads you deeper into a maze of possibilities.
28+
<br>
29+
<span class="highlight">Click</span> on a shape to start your journey, and <span class="highlight">drag</span> to connect with another shape.
30+
<br>
31+
Each connection opens new paths, leading you further into the rabbit hole.
32+
<!-- Text will generate here with JavaScript -->
33+
</p>
34+
</div>
35+
</div>
36+
</body>

0 commit comments

Comments
 (0)