Skip to content

Commit

Permalink
feat: FooterのStyle反映
Browse files Browse the repository at this point in the history
  • Loading branch information
mii288 committed Aug 15, 2024
1 parent e081ad1 commit 0b36b13
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions src/useCases/Home/components/Footer/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
import { Image } from 'astro:assets'
import logo from './assets/logo.svg'
import logo from './assets/logo.svg?raw'
import OfficialLink from '@/useCases/Home/components/OfficialLink/OfficialLink.astro'
import { Svg } from '@/useCases/Svg'
const photos = [
{ image: await import('./assets/bus.jpg').then((m) => m.default) },
Expand All @@ -15,10 +16,10 @@ const creditLinks = [
] as const
---

<div>
<section>
<h2>Oystersの活動に興味がある方へ</h2>
<p>
<div class="bg-footer-bg px-safe pb-safe">
<section class="p-4 pt-0">
<h2 class="py-8 text-center font-bold">Oystersの活動に興味がある方へ</h2>
<p class="text-center">
有意義な交流が出来るように、エンジニアリングや個人開発にモチベーションがある人をご招待しています<br
/>
興味がある方はメンバーの誰か、または <a
Expand All @@ -28,43 +29,52 @@ const creditLinks = [
> へご連絡下さい
</p>
</section>
<footer>
<ul>
<footer class="pb-4">
<ul class="flex justify-center gap-2 py-4">
{
(['github', 'hatena', 'connpass'] as const).map((type) => (
<li>
<OfficialLink type={type} />
<OfficialLink type={type} size={44} />
</li>
))
}
</ul>

<ul>
<ul class="flex justify-center gap-4 px-4 py-2">
{
photos.map((photo) => (
<li>
photos.map((photo, index) => (
<li
class:list={[
'block',
{ 'max-sm:hidden': index === photos.length - 1 }
]}
>
<Image
src={photo.image}
width={298}
height={149}
alt=""
densities={[1, 2]}
class="rounded-lg"
/>
</li>
))
}
</ul>
<p>
<Image src={logo} alt="" width={106} height={26} densities={[1, 2]} />
<p class="flex flex-col items-center gap-4 text-sm">
<Svg
src={logo}
aria-hidden="true"
class="mx-auto h-[26] w-[106] fill-heading py-6"
/>
<small>© 2019-2023 Oysters</small>
</p>
<p>
<p class="mt-[-4px] pb-4 text-center text-sm">
<small
>Icons created by
{
creditLinks
.map((credit) => (
<a href={credit.href} target="_blank" rel="noreferrer">
<a href={credit.href} class="text-gray-800" rel="noreferrer">
{credit.title}
</a>
))
Expand Down

1 comment on commit 0b36b13

@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.