mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 08:53:49 +01:00
enhance(Sponsor): ロゴの余白を微調整できるように
This commit is contained in:
parent
2f110d879b
commit
9d777c67cf
@ -16,8 +16,9 @@
|
||||
:src="sponsor.img"
|
||||
class="w-full h-full object-contain"
|
||||
:class="[
|
||||
{ 'p-5': !sponsor.noMargin }
|
||||
{ 'p-5': sponsor.margin === undefined || sponsor.margin === true || sponsor.margin === 'true' },
|
||||
]"
|
||||
:style="(typeof sponsor.margin === 'string' && sponsor.margin !== 'true' ? sponsor.margin : undefined)"
|
||||
/>
|
||||
</GNuxtLink>
|
||||
</div>
|
||||
@ -29,7 +30,7 @@ type Sponsor = {
|
||||
/** 画像URL */
|
||||
img: string;
|
||||
/** イメージにマージンを設けない場合はこちら */
|
||||
noMargin?: boolean;
|
||||
margin?: boolean | string;
|
||||
/** イメージを角丸にしない場合はこちら */
|
||||
noRounded?: boolean;
|
||||
/** 外部ページURL */
|
||||
@ -51,14 +52,14 @@ const sponsors: Sponsor[] = [
|
||||
},
|
||||
{
|
||||
img: '/img/sponsors/dcadvirth.png',
|
||||
noMargin: true,
|
||||
margin: false,
|
||||
noRounded: true,
|
||||
to: 'https://www.dotchain.ltd/advirth',
|
||||
},
|
||||
{
|
||||
img: '/img/sponsors/xserver.png',
|
||||
noMargin: true,
|
||||
margin: false,
|
||||
to: 'https://www.xserver.ne.jp/',
|
||||
}
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user