Skip to content

Commit 55aed65

Browse files
committed
(v0.3.2-alpha) New Section!
Modified the CSS to allow the creation of new sections! THe HERO section takes up the initial 100% of the screen. The next sections do NOT affect it :yay: lol
1 parent 654011d commit 55aed65

File tree

4 files changed

+97
-7
lines changed

4 files changed

+97
-7
lines changed

src/routes/landing.jsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,31 @@ function Landing() {
4141
</div>
4242
</section>
4343
</section>
44+
<section className="content">
45+
<div className={"divider"}/>
46+
<div className={"glow"}/>
47+
48+
<h1> Deciphering</h1>
49+
<h2>CIPHER's Mystery</h2>
50+
<div className={"small-divider"}/>
51+
<p>Explanation here.. COMING SOONNN</p>
52+
53+
<p></p>
54+
<p></p>
55+
<p></p>
56+
<p></p>
57+
<p></p>
58+
<p></p>
59+
<p></p>
60+
<p></p>
61+
<p></p>
62+
<p></p>
63+
<p></p>
64+
<p></p>
65+
<p></p>
66+
<p></p>
67+
68+
</section>
4469
</>
4570
)
4671
}

src/styles/App.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
.viewport {
3-
height: 100vh;
4-
width: 100vw;
3+
height: 100%;
4+
width: 100%;
55

66
display: flex;
77
flex-direction: column;

src/styles/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ body {
88
background-color: var(--clr-dark-a0);
99
color: var(--clr-primary-a80);
1010
margin: 0;
11+
12+
height: 100%;
1113
}
1214

1315
.header-font {

src/styles/routes/landing.css

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,26 @@
33
/*margin-top: 3.5rem;*/
44

55
width: 100%;
6-
height: 100%;
6+
min-height: 100vh;
77

88
display: flex;
99
flex-direction: column;
1010
}
1111

1212
.landing .hero {
1313
margin-top: 6rem;
14-
14+
height: calc(100vh - 6rem);
1515
width: 100%;
16-
height: calc(100% - 5.2rem);
16+
17+
flex: 1;
18+
flex-shrink: 0;
1719

1820
display: flex;
1921
align-items: center;
2022
flex-direction: column;
23+
24+
justify-content: flex-start;
25+
min-height: 0;
2126
}
2227

2328
.landing .hero h1 {
@@ -79,7 +84,9 @@
7984
/*backdrop-filter: brightness(1.6);*/
8085
background-color: color-mix(in srgb, var(--clr-surface-a0) 50%, black);
8186

82-
height: 100%;
87+
flex-grow: 1;
88+
flex-shrink: 0;
89+
8390
width: 65%;
8491

8592
border-radius: 1.25rem 1.25rem 0 0;
@@ -145,11 +152,67 @@
145152
display: flex;
146153

147154
width: 100%;
148-
height: 100%;
155+
flex-grow: 1;
156+
overflow: hidden;
149157

150158
margin-top: 1rem;
151159
}
152160

153161
.landing .hero .terminal .body p {
154162
margin-left: 1.5rem;
163+
}
164+
165+
166+
167+
.content {
168+
width: 100%;
169+
170+
display: flex;
171+
flex-direction: column;
172+
align-items: center;
173+
174+
background-color: var(--clr-dark-a0);
175+
}
176+
177+
.content .divider {
178+
height: 2px;
179+
width: 100%;
180+
181+
background-color: var(--clr-surface-a10);
182+
}
183+
.content .glow {
184+
height: 8rem;
185+
width: 100%;
186+
187+
/*background-image: linear-gradient(color-mix(in srgb, var(--clr-primary-a20) 20%, transparent), var(--clr-dark-a0));*/
188+
}
189+
190+
.content h1 {
191+
font-family: "Cook Widetype", cursive;
192+
letter-spacing: 0.25rem;
193+
194+
font-size: 3.25rem;
195+
font-weight: 800;
196+
margin: 0 0 0.5rem 0;
197+
198+
text-align: center;
199+
}
200+
201+
.content h2 {
202+
font-family: "Cook Widetype", cursive;
203+
letter-spacing: 0.25rem;
204+
205+
font-size: 2rem;
206+
font-weight: 800;
207+
margin: 0 0 1.5rem 0;
208+
209+
text-align: center;
210+
}
211+
212+
.content .small-divider {
213+
height: 2px;
214+
width: 65%;
215+
216+
background-color: var(--clr-surface-a10);
217+
margin: 0 0 5rem 0;
155218
}

0 commit comments

Comments
 (0)