|
1 | 1 | --- |
| 2 | +import { Icon } from "astro-icon/components"; |
2 | 3 | import ActionButton from "./ActionButton.astro"; |
3 | | -import FooterSection from "./Footer/FooterSection.astro"; |
4 | 4 | import Logo from "./Logo.astro"; |
5 | | -
|
6 | | -interface Props { |
7 | | - class?: string; |
8 | | -} |
9 | | -const props = Astro.props; |
10 | 5 | --- |
11 | 6 |
|
12 | | -<footer |
13 | | - class:list={["mt-auto mb-0 w-full bg-black text-gray-200", props.class]} |
14 | | -> |
15 | | - <div class="relative bottom-0 mx-auto px-8 py-12"> |
16 | | - <div |
17 | | - class="grid gap-x-16 gap-y-8 md:grid-cols-2 md:grid-rows-2 lg:grid-cols-3 lg:grid-rows-1" |
18 | | - > |
19 | | - <div style={{ gridRow: "1 / -1" }}> |
20 | | - <h1 class="my-4 text-xl">ソフトウェア開発コミュニティ</h1> |
21 | | - <Logo class="w-36" variant="light" /> |
22 | | - <ActionButton to="/join/" variant="dark" class="mx-auto mt-6 md:mx-0"> |
23 | | - 参加する |
24 | | - </ActionButton> |
| 7 | +<footer class="bg-base-content text-base-200 p-18"> |
| 8 | + <div class="footer footer-vertical sm:footer-horizontal"> |
| 9 | + <aside> |
| 10 | + <Logo class="w-72" variant="light" /> |
| 11 | + <h1 class="my-4 text-xl">ソフトウェア開発コミュニティ</h1> |
| 12 | + <ActionButton to="/join/" variant="dark" class="mx-auto mt-1 md:mx-0"> |
| 13 | + 参加する |
| 14 | + </ActionButton> |
| 15 | + </aside> |
| 16 | + <nav> |
| 17 | + <h6 class="footer-title">活動</h6> |
| 18 | + <a href="/projects/" class="link link-uncolor link-hover"> |
| 19 | + プロジェクト |
| 20 | + </a> |
| 21 | + <a |
| 22 | + href="https://learn.utcode.net/" |
| 23 | + class="link link-uncolor link-hover" |
| 24 | + target="_blank" |
| 25 | + rel="noreferrer" |
| 26 | + > |
| 27 | + ut.code(); Learn |
| 28 | + </a> |
| 29 | + <a href="/activities/learn/" class="link link-uncolor link-hover"> |
| 30 | + ut.code(); で学習する |
| 31 | + </a> |
| 32 | + <a href="/activities/share/" class="link link-uncolor link-hover"> |
| 33 | + ut.code(); で交流する |
| 34 | + </a> |
| 35 | + <a href="/activities/develop/" class="link link-uncolor link-hover"> |
| 36 | + ut.code(); で開発する |
| 37 | + </a> |
| 38 | + <a href="/donation/" class="link link-uncolor link-hover"> |
| 39 | + ご寄付・ご協賛のお願い |
| 40 | + </a> |
| 41 | + </nav> |
| 42 | + <nav> |
| 43 | + <h6 class="footer-title">ソーシャルリンク</h6> |
| 44 | + <div class="grid grid-flow-col gap-4"> |
| 45 | + <a href="https://github.com/ut-code" target="_blank"> |
| 46 | + <Icon name="flowbite:github-solid" class="text-5xl" /> |
| 47 | + </a> |
| 48 | + <a href="https://x.com/utokyo_code" target="_blank"> |
| 49 | + <Icon name="flowbite:x-solid" class="text-5xl" /> |
| 50 | + </a> |
25 | 51 | </div> |
26 | | - <FooterSection |
27 | | - title="活動" |
28 | | - links={[ |
29 | | - { title: "プロジェクト", to: "/projects/" }, |
30 | | - { title: "ご寄付・ご協賛のお願い", to: "/donation/" }, |
31 | | - { title: "ut.code(); で学習する", to: "/activities/learn/" }, |
32 | | - { title: "ut.code(); で交流する", to: "/activities/share/" }, |
33 | | - { title: "ut.code(); で開発する", to: "/activities/develop/" }, |
34 | | - ]} |
35 | | - /> |
36 | | - <FooterSection |
37 | | - title="リンク" |
38 | | - links={[ |
39 | | - { title: "ut.code(); Learn", to: "https://learn.utcode.net/" }, |
40 | | - { title: "GitHub", to: "https://github.com/ut-code" }, |
41 | | - { title: "X", to: "https://x.com/utokyo_code" }, |
42 | | - ]} |
43 | | - /> |
44 | | - </div> |
45 | | - <p class="mt-12 text-center text-sm text-gray-400"> |
46 | | - © {new Date().getFullYear()} ut.code(); |
47 | | - </p> |
| 52 | + </nav> |
48 | 53 | </div> |
| 54 | + <aside class="mt-12 w-full text-center text-sm text-gray-400"> |
| 55 | + © {new Date().getFullYear()} ut.code(); |
| 56 | + </aside> |
49 | 57 | </footer> |
| 58 | +<style> |
| 59 | + @media not (prefers-reduced-motion) { |
| 60 | + .link { |
| 61 | + background: linear-gradient(currentColor 0 0) bottom left/ |
| 62 | + var(--underline-width, 0%) 0.1em no-repeat; |
| 63 | + text-decoration: none; |
| 64 | + transition: background-size 0.1s linear; |
| 65 | + } |
| 66 | + .link:hover { |
| 67 | + --underline-width: 100%; |
| 68 | + @starting-style { |
| 69 | + --underline-width: 0%; |
| 70 | + } |
| 71 | + } |
| 72 | + } |
| 73 | +</style> |
0 commit comments