Skip to content

Commit 8df8519

Browse files
committed
improve footer
1 parent 9fa5cb6 commit 8df8519

File tree

5 files changed

+35
-24
lines changed

5 files changed

+35
-24
lines changed

src/components/common/Footer.astro

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,38 @@ import { Icon } from "astro-icon/components";
55
---
66

77
<footer class="bg-base-content text-base-200 p-18">
8-
<div class="footer footer-vertical sm:footer-horizontal">
8+
<div
9+
id="footer-first-section"
10+
class="footer footer-vertical sm:footer-horizontal"
11+
>
912
<aside>
1013
<Logo class="w-72" variant="light" />
11-
<h1 class="text-md my-4">
14+
<h2 class="footer-title text-md my-4">
1215
東京大学のソフトウェアエンジニアリングコミュニティ
13-
</h1>
16+
</h2>
1417
<ActionButton to="/join/" variant="dark" class="mx-auto mt-1 md:mx-0">
1518
参加する
1619
</ActionButton>
1720
</aside>
1821
<nav>
19-
<h6 class="footer-title">活動</h6>
20-
<a href="/projects/" class="link link-uncolor link-hover">
21-
プロジェクト一覧
22-
</a>
23-
<a href="/activities/learn/" class="link link-uncolor link-hover">
24-
学習・教育
25-
</a>
26-
<a href="/activities/share/" class="link link-uncolor link-hover">
27-
交流
28-
</a>
29-
<a href="/activities/develop/" class="link link-uncolor link-hover">
30-
開発
31-
</a>
22+
<h3 class="footer-title">活動</h3>
23+
<a href="/projects/">プロジェクト</a>
24+
<a href="/activities/learn/">学習・教育</a>
25+
<a href="/activities/share/">交流</a>
26+
<a href="/activities/develop/">開発</a>
3227
</nav>
3328
<nav>
34-
<h6 class="footer-title">ソーシャルリンク</h6>
29+
<h3 class="footer-title">サイトマップ</h3>
30+
<a href="/articles/">記事</a>
31+
<a href="/members/">メンバー</a>
32+
<a href="/join/">参加</a>
33+
<a href="/about/">団体概要</a>
34+
</nav>
35+
<nav>
36+
<h3 class="footer-title">お問い合わせ</h3>
37+
<a href="/contact/">お問い合わせ</a>
38+
<a href="/donation/">ご寄付・ご協賛</a>
39+
<h3 class="footer-title mt-6">ソーシャルリンク</h3>
3540
<div class="grid grid-flow-col gap-4">
3641
<a href="https://github.com/ut-code" target="_blank">
3742
<Icon name="flowbite:github-solid" class="text-5xl" />
@@ -42,19 +47,25 @@ import { Icon } from "astro-icon/components";
4247
</div>
4348
</nav>
4449
</div>
45-
<aside class="mt-12 w-full text-center text-sm text-gray-400">
50+
51+
<aside class="mt-18 w-full text-center text-sm text-gray-400">
4652
&copy; {new Date().getFullYear()} ut.code();
4753
</aside>
4854
</footer>
55+
4956
<style>
57+
@media (prefers-reduced-motion) {
58+
a:hover {
59+
text-decoration: underline;
60+
}
61+
}
5062
@media not (prefers-reduced-motion) {
51-
.link {
63+
a {
5264
background: linear-gradient(currentColor 0 0) bottom left/
5365
var(--underline-width, 0%) 0.1em no-repeat;
54-
text-decoration: none;
5566
transition: background-size 0.1s linear;
5667
}
57-
.link:hover {
68+
a:hover {
5869
--underline-width: 100%;
5970
@starting-style {
6071
--underline-width: 0%;

src/components/common/Header.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
import Banner from "+/components/Header/Banner.astro";
3-
import NavBar from "+/components/Header/NavBar.astro";
42
import { Focus } from "+/schema.ts";
53
import banner from "+contents/banner.ts";
4+
import Banner from "./Header/Banner.astro";
5+
import NavBar from "./Header/NavBar.astro";
66
77
const links = [
88
{ title: "プロジェクト", href: "/projects", focus: Focus.projects },

src/pages/about/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ import { Focus } from "+/schema";
6969
<p>
7070
活動例:
7171
<ul>
72-
<li>学習: ut.code(); Learn、全ゼミ・自主ゼミ</li>
72+
<li>学習・教育: ut.code(); Learn、全ゼミ・自主ゼミ</li>
7373
<li>交流: 五月祭・駒場祭、合宿</li>
7474
<li>開発: プロジェクト、ハッカソン</li>
7575
</ul>

0 commit comments

Comments
 (0)