summaryrefslogtreecommitdiff
path: root/src/components/ScotsounCdGallery.astro
blob: 6f6c7940103e2a5cfb9e20b703310cf0d4526813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
import { getAllScotsoun } from '$data/scotsoun';
import type Locale from '$types/Locale';

interface Props {
  locale: Locale;
}

const { locale } = Astro.props;

const scotsoun = await getAllScotsoun();
---

<ul class="link-gallery link-gallery--scotsoun">
  {
    scotsoun.map((scotsounItem) => (
      <li>
        <a
          class="link link-gallery__container"
          href={`/${locale}/furthsettins/scotsoun/${scotsounItem.scotsounId}`}
        >
          <div class="link-gallery__image">
            <img src={`/images/scotsoun/sscd${scotsounItem.scotsounId}.jpg`} />
          </div>
          <p class="link-gallery__title">{scotsounItem.title}</p>
        </a>
      </li>
    ))
  }
</ul>