Skip to content

Commit

Permalink
feat: フッター追加
Browse files Browse the repository at this point in the history
  • Loading branch information
mii288 committed Aug 13, 2024
1 parent 3f86e02 commit 7345abc
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 0 deletions.
76 changes: 76 additions & 0 deletions src/components/Footer/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
import { Image } from 'astro:assets'
import logo from './assets/logo.svg'
import OfficialLink from '@/components/OfficialLink/OfficialLink.astro'
const photos = [
{ image: await import('./assets/bus.jpg').then((m) => m.default) },
{ image: await import('./assets/izakaya.jpg').then((m) => m.default) },
{ image: await import('./assets/live.jpg').then((m) => m.default) }
] as const
const creditLinks = [
{ title: 'Freepik', href: 'https://www.freepik.com' },
{ title: 'Icons8', href: 'https://icons8.com' }
] as const
---

<div>
<section>
<h2>Oystersの活動に興味がある方へ</h2>
<p>
有意義な交流が出来るように、エンジニアリングや個人開発にモチベーションがある人をご招待しています<br
/>
興味がある方はメンバーの誰か、または <a
href="https://x.com/pinkumohikan"
target="_blank"
rel="noreferrer">@pinkumohikan</a
> へご連絡下さい
</p>
</section>
<footer>
<ul>
{
(['github', 'hatena', 'connpass'] as const).map((type) => (
<li>
<OfficialLink type={type} />
</li>
))
}
</ul>

<ul>
{
photos.map((photo) => (
<li>
<Image
src={photo.image}
width={298}
height={149}
alt=""
densities={[1, 2]}
/>
</li>
))
}
</ul>
<p>
<Image src={logo} alt="" width={106} height={26} densities={[1, 2]} />
<small>© 2019-2023 Oysters</small>
</p>
<p>
<small
>Icons created by
{
creditLinks
.map((credit) => (
<a href={credit.href} target="_blank" rel="noreferrer">
{credit.title}
</a>
))
.reduce((prev, current) => [prev, ' & ', current])
}</small
>
</p>
</footer>
</div>
Binary file added src/components/Footer/assets/bus.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/Footer/assets/izakaya.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/Footer/assets/live.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/components/Footer/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import Activities from '@/components/Activities/Activities.astro'
import Footer from '@/components/Footer/Footer.astro'
import Header from '@/components/Header/Header.astro'
import Hero from '@/components/Hero/Hero.astro'
import Highlights from '@/components/Highlights/Highlights.astro'
Expand Down Expand Up @@ -35,5 +36,6 @@ const subTitle = '若手ものづくり集団 Oysters'
<Activities />
<Members />
<Highlights />
<Footer />
</body>
</html>

1 comment on commit 7345abc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.