Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions src/components/ArrowUpRightIcon.astro

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { SITE_TITLE } from "../consts";
import LedgerLabel from "./LedgerLabel.astro";
---

<header class="flex flex-col pb-4">
<a class="inline-block text-lg font-medium no-underline" href="/">
<header class="flex flex-col">
<a class="text-lg font-medium no-underline" href="/">
{SITE_TITLE}
</a>
<LedgerLabel as="span">Frontend Engineer</LedgerLabel>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LedgerLabel.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface Props {
class?: string;
}

const { as: Tag = "span", href, class: className } = Astro.props;
const { as: Tag = "span", href, class: className } = Astro.props as Props;
const classes =
"text-ledger-muted font-sans text-sm font-medium uppercase tracking-wide leading-6";
const classList = [classes, className];
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { title, description, pubDate, href, featured = false } = Astro.props;
<span class="font-medium">{title}</span>
{
featured && (
<span class="text-gray-1000 border-ledger-line rounded-full border px-2 py-0.5 font-mono text-[10px] tracking-[0.18em] uppercase">
<span class="text-gray-1000 border-ledger-line rounded-full border px-1.5 py-0.5 font-mono text-[9px] tracking-[0.18em] uppercase sm:px-2 sm:text-[10px]">
Featured
</span>
)
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import Header from "../components/Header.astro";
class="bg-page-bg pointer-events-none fixed top-0 left-0 z-50 h-14 w-full backdrop-blur-xl [-webkit-mask-image:linear-gradient(to_bottom,black,transparent)]"
>
</div>
<div class="mx-auto w-full max-w-[980px] px-6 py-16 sm:py-20">
<div class="mx-auto w-full max-w-4xl px-6 py-16 sm:py-20">
<Header />
<main class="mt-10 space-y-6">
<main class="mt-14 space-y-6">
<slot />
</main>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const { title, description, pubDate, updatedDate } = Astro.props;

<BaseLayout>
<div class="space-y-6">
<section class="grid grid-cols-[140px_1fr] gap-6">
<LedgerLabel as="div">Meta</LedgerLabel>
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<LedgerLabel as="div" class="hidden sm:block">Meta</LedgerLabel>
<div class="space-y-2">
<h1 class="text-gray-1200 text-2xl font-medium">{title}</h1>
<div class="text-gray-1100 font-mono text-sm">
Expand All @@ -33,8 +33,8 @@ const { title, description, pubDate, updatedDate } = Astro.props;
}
</div>
</section>
<section class="grid grid-cols-[140px_1fr] gap-6">
<LedgerLabel as="div">Content</LedgerLabel>
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<LedgerLabel as="div" class="hidden sm:block">Content</LedgerLabel>
<article class="prose dark:prose-invert">
<slot />
</article>
Expand Down
8 changes: 4 additions & 4 deletions src/layouts/Talk.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const { title, description, pubDate, updatedDate, event, slides, recording } =

<BaseLayout>
<div class="space-y-6">
<section class="grid grid-cols-[140px_1fr] gap-6">
<LedgerLabel as="div">Meta</LedgerLabel>
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<LedgerLabel as="div" class="hidden sm:block">Meta</LedgerLabel>
<div class="space-y-2">
<h1 class="text-gray-1200 text-2xl font-medium">{title}</h1>
<div class="text-gray-1100 font-mono text-sm">
Expand Down Expand Up @@ -61,8 +61,8 @@ const { title, description, pubDate, updatedDate, event, slides, recording } =
}
</div>
</section>
<section class="grid grid-cols-[140px_1fr] gap-6">
<LedgerLabel as="div">Content</LedgerLabel>
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<LedgerLabel as="div" class="hidden sm:block">Content</LedgerLabel>
<article class="prose dark:prose-invert">
<slot />
</article>
Expand Down
9 changes: 4 additions & 5 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import BaseLayout from "../layouts/BaseLayout.astro";
import SectionHeading from "../components/SectionHeading.astro";
import PostCard from "../components/PostCard.astro";
import SubtleLink from "../components/SubtleLink.astro";
import ArrowUpRightIcon from "../components/ArrowUpRightIcon.astro";
import "../styles/base.css";
---

Expand All @@ -20,7 +19,7 @@ import "../styles/base.css";
</head>
<BaseLayout>
<!-- About Section -->
<section class="grid grid-cols-[140px_1fr] gap-6">
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<SectionHeading title="About" />
<p class="text-gray-1100 leading-7">
I'm Gui, a Frontend Engineer focused on crafting polished and user-first
Expand All @@ -39,7 +38,7 @@ import "../styles/base.css";
</section>

<!-- Currently Section -->
<section class="grid grid-cols-[140px_1fr] gap-6">
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<SectionHeading title="Currently" />
<div class="text-gray-1100 space-y-4 leading-7">
<p>
Expand All @@ -64,7 +63,7 @@ import "../styles/base.css";
</section>

<!-- Writing Section -->
<section class="grid grid-cols-[140px_1fr] gap-6">
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<SectionHeading title="Writing" href="/writing" />
<ul>
{
Expand All @@ -82,7 +81,7 @@ import "../styles/base.css";
</section>

<!-- Talks Section -->
<section class="grid grid-cols-[140px_1fr] gap-6">
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<SectionHeading title="Talks" href="/talks" />
<ul>
{
Expand Down
2 changes: 1 addition & 1 deletion src/pages/talks.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SITE_DESCRIPTION, talksSortedByPubDate } from "../consts";
<BaseHead title="Talks" description={SITE_DESCRIPTION} />
</head>
<BaseLayout>
<section class="grid grid-cols-[140px_1fr] gap-6">
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<SectionHeading title="Talks" />
<ul class="space-y-3">
{
Expand Down
2 changes: 1 addition & 1 deletion src/pages/writing.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SITE_DESCRIPTION, postsSortedByPubDate } from "../consts";
<BaseHead title="Writing" description={SITE_DESCRIPTION} />
</head>
<BaseLayout>
<section class="grid grid-cols-[140px_1fr] gap-6">
<section class="grid grid-cols-1 gap-6 sm:grid-cols-[140px_1fr]">
<SectionHeading title="Writing" />
<ul class="space-y-3">
{
Expand Down