Skip to content

Commit 614f1b6

Browse files
authored
Merge pull request #183 from OUCC/182-質問箱をpeingからマシュマロに変更
質問箱をpeingからマシュマロに変更
2 parents dfffa4b + 5e2fb25 commit 614f1b6

File tree

7 files changed

+27
-6
lines changed

7 files changed

+27
-6
lines changed

src/assets/icons/marshmallow.svg

+1
Loading

src/components/common/button/LinkButton.astro

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { HTMLAttributes } from 'astro/types'
33
44
type Props = Omit<HTMLAttributes<'a'>, 'slot'> & {
5-
variant?: 'primary' | 'white' | 'black' | 'discord' | 'peing'
5+
variant?: 'primary' | 'white' | 'black' | 'discord' | 'peing' | 'marshmallow'
66
}
77
88
const { variant = 'primary', ...attrs } = Astro.props
@@ -22,6 +22,8 @@ const { variant = 'primary', ...attrs } = Astro.props
2222
variant === 'discord',
2323
'bg-peing text-white drop-shadow-peing-light hover:drop-shadow-peing-heavy':
2424
variant === 'peing',
25+
'hover:drop-shadow-marshumallow-heavy bg-marshmallow text-white drop-shadow-marshmallow-light':
26+
variant === 'marshmallow',
2527
},
2628
'active:drop-shadow-none',
2729
'transition-[filter,transform] ease-in-out active:translate-y-1',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
import Icon from '@/components/common/Icon.astro'
3+
import LinkButton from './LinkButton.astro'
4+
---
5+
6+
<LinkButton
7+
href="https://marshmallow-qa.com/v24zz297et6zwk5?t=mK3qJ3&utm_medium=url_text&utm_source=promotion"
8+
target="_blank"
9+
variant="marshmallow"
10+
>
11+
<span class="flex items-center gap-2.5">
12+
<Icon name="marshmallow" alt="マシュマロ" class="w-6" />
13+
<span>質問箱</span>
14+
</span>
15+
</LinkButton>

src/components/common/button/PeingLink.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import LinkButton from './LinkButton.astro'
66
<LinkButton href="https://peing.net/ja/oucc" target="_blank" variant="peing">
77
<span class="flex items-center gap-2.5">
88
<Icon name="box" alt="Peing" class="w-6" />
9-
<span>質問箱</span>
9+
<span>旧質問箱</span>
1010
</span>
1111
</LinkButton>

src/components/contact/ContactSection.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Section from '@/components/common/Section.astro'
33
import DiscordJoinLink from '@/components/common/button/DiscordJoinLink.astro'
44
import XLink from '@/components/common/button/XLink.astro'
5-
import PeingLink from '@/components/common/button/PeingLink.astro'
5+
import MarshmallowLink from '../common/button/MarshmallowLink.astro'
66
---
77

88
<Section background="white">
@@ -22,7 +22,7 @@ import PeingLink from '@/components/common/button/PeingLink.astro'
2222
</div>
2323
<div class="flex justify-center gap-6">
2424
<XLink />
25-
<PeingLink />
25+
<MarshmallowLink />
2626
</div>
2727
<div>
2828
<p>メールでご連絡いただくことも可能です。</p>

src/components/faq/FaqSection.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
import Section from '@/components/common/Section.astro'
33
import XLink from '@/components/common/button/XLink.astro'
4-
import PeingLink from '@/components/common/button/PeingLink.astro'
54
import InlineLink from '@/components/common/InlineLink.astro'
65
import FaqCard from './FaqCard.astro'
6+
import MarshmallowLink from '../common/button/MarshmallowLink.astro'
77
---
88

99
<Section background="white">
@@ -13,7 +13,7 @@ import FaqCard from './FaqCard.astro'
1313
</p>
1414
<p class="flex justify-center gap-6">
1515
<XLink />
16-
<PeingLink />
16+
<MarshmallowLink />
1717
</p>
1818
<ul class="flex flex-wrap gap-5">
1919
<FaqCard title="入部するにはどうしたら良いですか?">

tailwind.config.cjs

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const colors = {
66
secondary: '#f1f2f7',
77
discord: '#5865f2',
88
peing: '#5eb9ba',
9+
marshmallow: '#F3979B',
910
}
1011

1112
const dropShadowLight = (color) => `0 4px 8px ${rgba(color, 0.6)}`
@@ -34,6 +35,8 @@ module.exports = {
3435
'discord-heavy': dropShadowHeavy(colors.discord),
3536
'peing-light': dropShadowLight(colors.peing),
3637
'peing-heavy': dropShadowHeavy(colors.peing),
38+
'marshmallow-light': dropShadowLight(colors.marshmallow),
39+
'marshmallow-heavy': dropShadowHeavy(colors.marshmallow),
3740
},
3841
typography: (theme) => ({
3942
DEFAULT: {

0 commit comments

Comments
 (0)