2023-07-09 20:09:50 +02:00
|
|
|
<template>
|
|
|
|
<div>
|
2023-11-13 13:10:30 +01:00
|
|
|
<h2 class="mb-12 text-2xl lg:text-3xl text-center font-bold font-title">{{ $t('_landing._sponsors.title') }}</h2>
|
2023-10-29 14:49:34 +01:00
|
|
|
<div class="mx-auto max-w-screen-lg gap-8 grid items-center lg:grid-cols-5 md:grid-cols-4 sm:grid-cols-3 grid-cols-2">
|
|
|
|
<!-- スポンサーはscriptタグから追加してください -->
|
|
|
|
<GNuxtLink
|
|
|
|
v-for="sponsor in sponsors"
|
|
|
|
:to="sponsor.to"
|
|
|
|
target="_blank"
|
|
|
|
class="block aspect-square bg-white overflow-clip"
|
|
|
|
:class="[
|
|
|
|
{ 'rounded-full': !sponsor.noRounded }
|
|
|
|
]"
|
|
|
|
>
|
2024-03-10 11:05:10 +01:00
|
|
|
<img
|
|
|
|
:src="sponsor.img"
|
|
|
|
class="w-full h-full object-contain"
|
|
|
|
:class="[
|
2024-03-29 14:29:16 +01:00
|
|
|
{ 'p-5': sponsor.margin === undefined || sponsor.margin === true || sponsor.margin === 'true' },
|
2024-03-10 11:05:10 +01:00
|
|
|
]"
|
2024-03-29 14:29:16 +01:00
|
|
|
:style="(typeof sponsor.margin === 'string' && sponsor.margin !== 'true' ? sponsor.margin : undefined)"
|
2024-03-10 11:05:10 +01:00
|
|
|
/>
|
2023-09-23 12:07:45 +02:00
|
|
|
</GNuxtLink>
|
2023-07-09 20:09:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2023-10-29 14:49:34 +01:00
|
|
|
type Sponsor = {
|
|
|
|
/** 画像URL */
|
|
|
|
img: string;
|
|
|
|
/** イメージにマージンを設けない場合はこちら */
|
2024-03-29 14:29:16 +01:00
|
|
|
margin?: boolean | string;
|
2023-10-29 14:49:34 +01:00
|
|
|
/** イメージを角丸にしない場合はこちら */
|
|
|
|
noRounded?: boolean;
|
|
|
|
/** 外部ページURL */
|
|
|
|
to?: string;
|
|
|
|
};
|
2023-07-09 20:09:50 +02:00
|
|
|
|
2023-10-29 14:49:34 +01:00
|
|
|
const sponsors: Sponsor[] = [
|
|
|
|
{
|
|
|
|
img: '/img/sponsors/mask.svg',
|
|
|
|
to: 'https://mask.io/',
|
|
|
|
},
|
|
|
|
{
|
2024-03-11 13:27:17 +01:00
|
|
|
img: '/img/sponsors/rss3.png',
|
2023-10-29 14:49:34 +01:00
|
|
|
to: 'https://rss3.io/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
img: '/img/sponsors/skeb.svg',
|
|
|
|
to: 'https://skeb.jp/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
img: '/img/sponsors/dcadvirth.png',
|
2024-03-29 14:29:16 +01:00
|
|
|
margin: false,
|
2023-10-29 14:49:34 +01:00
|
|
|
noRounded: true,
|
|
|
|
to: 'https://www.dotchain.ltd/advirth',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
img: '/img/sponsors/xserver.png',
|
2024-03-29 14:29:16 +01:00
|
|
|
margin: false,
|
2023-10-29 14:49:34 +01:00
|
|
|
to: 'https://www.xserver.ne.jp/',
|
2024-03-29 14:29:16 +01:00
|
|
|
},
|
2023-10-29 14:49:34 +01:00
|
|
|
];
|
2023-07-09 20:09:50 +02:00
|
|
|
</script>
|