Skip to content

Commit d871b16

Browse files
committed
Update astro paper to 4.15.9
1 parent c42dcd7 commit d871b16

File tree

4 files changed

+102
-58
lines changed

4 files changed

+102
-58
lines changed

package-lock.json

Lines changed: 16 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
"@astrojs/check": "^0.9.3",
1919
"@astrojs/rss": "^4.0.7",
2020
"@resvg/resvg-js": "^2.6.2",
21-
"astro": "^4.15.4",
21+
"astro": "^4.15.9",
2222
"cross-env": "^7.0.3",
2323
"fuse.js": "^7.0.0",
2424
"github-slugger": "^2.0.0",
2525
"remark-collapse": "^0.1.2",
2626
"remark-toc": "^9.0.0",
2727
"satori": "^0.10.11",
2828
"tailwindcss": "^3.4.1",
29-
"typescript": "^5.4.5"
29+
"typescript": "^5.6.2"
3030
},
3131
"devDependencies": {
3232
"@astrojs/react": "^3.6.2",

src/layouts/Layout.astro

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,31 @@ const socialImageURL = new URL(
134134
<slot />
135135
</body>
136136
</html>
137+
<style is:global>
138+
:root {
139+
--accent: 136, 58, 234;
140+
--accent-light: 224, 204, 250;
141+
--accent-dark: 49, 10, 101;
142+
--accent-gradient: linear-gradient(
143+
45deg,
144+
rgb(var(--accent)),
145+
rgb(var(--accent-light)) 30%,
146+
white 60%
147+
);
148+
}
149+
html {
150+
font-family: system-ui, sans-serif;
151+
background: #13151a;
152+
}
153+
code {
154+
font-family:
155+
Menlo,
156+
Monaco,
157+
Lucida Console,
158+
Liberation Mono,
159+
DejaVu Sans Mono,
160+
Bitstream Vera Sans Mono,
161+
Courier New,
162+
monospace;
163+
}
164+
</style>

src/pages/index.astro

Lines changed: 56 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -147,39 +147,60 @@ const socialCount = SOCIALS.filter(social => social.active).length;
147147
</Layout>
148148

149149
<style>
150-
/* ===== Hero Section ===== */
151-
#hero {
152-
@apply pb-6 pt-8;
153-
}
154-
#hero h1 {
155-
@apply my-4 inline-block text-3xl font-bold sm:my-8 sm:text-5xl;
156-
}
157-
#hero .rss-link {
158-
@apply mb-6;
159-
}
160-
#hero .rss-icon {
161-
@apply mb-2 h-6 w-6 scale-110 fill-skin-accent sm:mb-3 sm:scale-125;
162-
}
163-
#hero p {
164-
@apply my-2;
165-
}
166-
.social-wrapper {
167-
@apply mt-4 flex flex-col sm:flex-row sm:items-center;
168-
}
169-
.social-links {
170-
@apply mb-1 mr-2 whitespace-nowrap sm:mb-0;
171-
}
172-
173-
/* ===== Featured & Recent Posts Sections ===== */
174-
#featured,
175-
#recent-posts {
176-
@apply pb-6 pt-12;
177-
}
178-
#featured h2,
179-
#recent-posts h2 {
180-
@apply text-2xl font-semibold tracking-wide;
181-
}
182-
.all-posts-btn-wrapper {
183-
@apply my-8 text-center;
184-
}
150+
main {
151+
margin: auto;
152+
padding: 1rem;
153+
width: 800px;
154+
max-width: calc(100% - 2rem);
155+
color: white;
156+
font-size: 20px;
157+
line-height: 1.6;
158+
}
159+
.astro-a {
160+
position: absolute;
161+
top: -32px;
162+
left: 50%;
163+
transform: translatex(-50%);
164+
width: 220px;
165+
height: auto;
166+
z-index: -1;
167+
}
168+
h1 {
169+
font-size: 4rem;
170+
font-weight: 700;
171+
line-height: 1;
172+
text-align: center;
173+
margin-bottom: 1em;
174+
}
175+
.text-gradient {
176+
background-image: var(--accent-gradient);
177+
-webkit-background-clip: text;
178+
-webkit-text-fill-color: transparent;
179+
background-size: 400%;
180+
background-position: 0%;
181+
}
182+
.instructions {
183+
margin-bottom: 2rem;
184+
border: 1px solid rgba(var(--accent-light), 25%);
185+
background: linear-gradient(rgba(var(--accent-dark), 66%), rgba(var(--accent-dark), 33%));
186+
padding: 1.5rem;
187+
border-radius: 8px;
188+
}
189+
.instructions code {
190+
font-size: 0.8em;
191+
font-weight: bold;
192+
background: rgba(var(--accent-light), 12%);
193+
color: rgb(var(--accent-light));
194+
border-radius: 4px;
195+
padding: 0.3em 0.4em;
196+
}
197+
.instructions strong {
198+
color: rgb(var(--accent-light));
199+
}
200+
.link-card-grid {
201+
display: grid;
202+
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
203+
gap: 2rem;
204+
padding: 0;
205+
}
185206
</style>

0 commit comments

Comments
 (0)