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"
|
:src="sponsor.img"
|
||||||
class="w-full h-full object-contain"
|
class="w-full h-full object-contain"
|
||||||
:class="[
|
: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>
|
</GNuxtLink>
|
||||||
</div>
|
</div>
|
||||||
@ -29,7 +30,7 @@ type Sponsor = {
|
|||||||
/** 画像URL */
|
/** 画像URL */
|
||||||
img: string;
|
img: string;
|
||||||
/** イメージにマージンを設けない場合はこちら */
|
/** イメージにマージンを設けない場合はこちら */
|
||||||
noMargin?: boolean;
|
margin?: boolean | string;
|
||||||
/** イメージを角丸にしない場合はこちら */
|
/** イメージを角丸にしない場合はこちら */
|
||||||
noRounded?: boolean;
|
noRounded?: boolean;
|
||||||
/** 外部ページURL */
|
/** 外部ページURL */
|
||||||
@ -51,14 +52,14 @@ const sponsors: Sponsor[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
img: '/img/sponsors/dcadvirth.png',
|
img: '/img/sponsors/dcadvirth.png',
|
||||||
noMargin: true,
|
margin: false,
|
||||||
noRounded: true,
|
noRounded: true,
|
||||||
to: 'https://www.dotchain.ltd/advirth',
|
to: 'https://www.dotchain.ltd/advirth',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
img: '/img/sponsors/xserver.png',
|
img: '/img/sponsors/xserver.png',
|
||||||
noMargin: true,
|
margin: false,
|
||||||
to: 'https://www.xserver.ne.jp/',
|
to: 'https://www.xserver.ne.jp/',
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user