Skip to content

Commit 1c1f293

Browse files
committed
seo: apply some best practices
1 parent f4fb9ff commit 1c1f293

5 files changed

Lines changed: 14 additions & 7 deletions

File tree

public/_headers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/*
2-
Cache-Control: max-age=300, stale-while-revalidate=604800
2+
Cache-Control: max-age=3600, stale-while-revalidate=604800

src/components/Footer.astro

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,16 @@ const props = Astro.props;
1717
class="grid gap-x-16 gap-y-8 md:grid-cols-2 md:grid-rows-2 lg:grid-cols-3 lg:grid-rows-1"
1818
>
1919
<div style={{ gridRow: "1 / -1" }}>
20+
<h1 class="my-4 text-xl">ソフトウェア開発コミュニティ</h1>
2021
<Logo class="w-36" variant="light" />
21-
<p class="mt-4 text-sm">
22-
東京大学のソフトウェアエンジニアリングコミュニティ
23-
</p>
2422
<ActionButton to="/join/" variant="dark" class="mx-auto mt-6 md:mx-0">
2523
参加する
2624
</ActionButton>
2725
</div>
2826
<FooterSection
2927
title="活動"
3028
links={[
31-
{ title: "プロジェクト", to: "/projects" },
29+
{ title: "プロジェクト", to: "/projects/" },
3230
{ title: "ご寄付・ご協賛のお願い", to: "/donation/" },
3331
{ title: "ut.code(); で学習する", to: "/activities/learn/" },
3432
{ title: "ut.code(); で交流する", to: "/activities/share/" },

src/components/Footer/FooterSection.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { title, links } = Astro.props;
99
---
1010

1111
<div>
12-
<h4 class="text-lg">{title}</h4>
12+
<h2 class="text-lg">{title}</h2>
1313
<ul class="mt-4 space-y-2">
1414
{
1515
links.map((link) => (

src/components/Header.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ const { focus } = Astro.props;
5252
)
5353
}
5454
<div class="flex h-16 bg-gray-50/70 backdrop-blur-lg">
55-
<a href="/" class="flex items-center px-4" data-astro-prefetch="viewport">
55+
<a
56+
href="/"
57+
aria-label="Go to top page"
58+
class="flex items-center px-4"
59+
data-astro-prefetch="viewport"
60+
>
5661
<Logo class="w-36 sm:ml-8" variant="default" />
5762
</a>
5863
<div aria-hidden class="flex-1"></div>

src/pages/members.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ const members = await getMembers();
1818
<Picture
1919
loading="eager"
2020
alt=""
21+
formats={["avif", "webp"]}
22+
width="1920"
23+
height="1080"
24+
quality="mid"
2125
src={Header}
2226
class="fixed top-0 -z-100 h-[100lvh] bg-neutral-400 object-cover"
2327
style="object-position: 75% 20%;"

0 commit comments

Comments
 (0)