Skip to content

Commit 8db1820

Browse files
committed
the DAMN CSS
1 parent fd34ced commit 8db1820

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

src/routes/home.tsx

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ const Home: Component<
3232
position: relative;
3333
z-index: 1;
3434
max-width: 600px;
35+
display: flex;
36+
flex-direction: column;
37+
align-items: center;
3538
}
3639
3740
.hero-text h2 {
@@ -63,23 +66,29 @@ const Home: Component<
6366
font-weight: normal;
6467
}
6568
69+
.btn-wrap {
70+
background: linear-gradient(45deg, var(--accent0), var(--accent1));
71+
width: max-content;
72+
border-radius: 99px;
73+
}
74+
6675
.more-btn,
6776
.more-btn:visited {
6877
display: inline-block;
69-
background: var(--surface1);
70-
border-image: linear-gradient(45deg, var(--accent0), var(--accent1)) 1;
78+
background: linear-gradient(45deg, var(--surface1), var(--surface1));
7179
color: var(--accent0);
7280
padding: 10px 20px;
73-
border-radius: 20px;
81+
border-radius: 99px;
7482
font-weight: bold;
7583
text-decoration: none;
76-
transition: background-color 0.3s, color 0.3s;
84+
transition: background 0.3s, color 0.3s;
7785
cursor: pointer;
86+
margin: 2px;
7887
}
7988
8089
.more-btn:hover {
8190
background: linear-gradient(45deg, var(--accent0), var(--accent1));
82-
transition: background-color 0.3s, color 0.3s;
91+
transition: background 0.3s, color 0.3s;
8392
color: #fff;
8493
}
8594
@@ -98,7 +107,16 @@ const Home: Component<
98107
gap: 30px;
99108
}
100109
101-
@media (max-width: 768px) {
110+
@media (orientation: portrait) {
111+
112+
.hero-text h1 {
113+
font-size: 4em;
114+
}
115+
116+
.hero-text p {
117+
font-size: 1.4em;
118+
}
119+
102120
.benefits-container {
103121
padding: 0 15px;
104122
}
@@ -112,15 +130,7 @@ const Home: Component<
112130
}
113131
}
114132
115-
@media (min-width: 1200px) {
116-
/* .hero-text h1 {
117-
font-size: 4em;
118-
}
119-
120-
.hero-text p {
121-
font-size: 1.4em;
122-
} */
123-
133+
@media (orientation: landscape) {
124134
.benefit-title {
125135
font-size: 1.75em;
126136
}
@@ -147,9 +157,11 @@ const Home: Component<
147157
<h2>Introducing</h2>
148158
<h1>QuickSign</h1>
149159
<p>a local development certificate signer for iOS devices.</p>
160+
<div class="btn-wrap">
150161
<a href="https://x.com/QuickSigniOS" class="more-btn" download>
151162
eta son™
152163
</a>
164+
</div>
153165
</div>
154166
</section>
155167

0 commit comments

Comments
 (0)