Skip to content

Commit a4522d2

Browse files
authored
feat: 🎸 React Icon γ‚’ε°Žε…₯γ—γ€γƒ•γƒƒγ‚Ώγ‚’γ‚³γƒ³γƒγƒΌγƒγƒ³γƒˆγ¨γ—γ¦εˆ‡γ‚Šε‡Ίγ—γŸ (#53)
1 parent 3149f76 commit a4522d2

File tree

6 files changed

+32
-3
lines changed

6 files changed

+32
-3
lines changed

β€Žpackage.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"preline": "^1.9.0",
1515
"react": "18.2.0",
1616
"react-dom": "18.2.0",
17+
"react-icons": "^4.10.1",
1718
"tailwindcss": "3.3.2",
1819
"typescript": "5.1.6"
1920
},

β€Žsrc/app/cities/page.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client'
22

33
import cities from '@/app/resource/cities.json'
4+
import { GensosenkyoFooter } from '@/app/components/GensosenkyoFooter'
45

56
const Cities = () => {
67
return (
@@ -32,7 +33,7 @@ const Cities = () => {
3233
<div className="my-6">
3334
<hr />
3435
</div>
35-
<div className="text-center pt-2 pb-6">2023 (ζ ͺοΌ‰εΉ»ζ°΄η·ιΈζŒ™</div>
36+
<GensosenkyoFooter />
3637
</div>
3738
)
3839
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import Link from 'next/link'
2+
import { BiLinkExternal } from 'react-icons/bi'
3+
4+
export const GensosenkyoFooter = () => {
5+
return (
6+
<div className="relative overflow-hidden">
7+
<div className="text-center">
8+
<h1 className="font-bold text-white dark:text-white pt-2 pb-6">
9+
<Link href="https://election.suikoden.info/" passHref>
10+
<div className="flex flex-row justify-center">
11+
εΉ»ζ°΄η·ιΈζŒ™2023
12+
<BiLinkExternal className="pt-1" />
13+
</div>
14+
</Link>
15+
</h1>
16+
</div>
17+
</div>
18+
)
19+
}

β€Žsrc/app/headquarters-characters/page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client'
22

33
import headquartersCharacters from '@/app/resource/headquartersCharacters.json'
4+
import { GensosenkyoFooter } from '@/app/components/GensosenkyoFooter'
45

56
const Cities = () => {
67
return (
@@ -34,7 +35,8 @@ const Cities = () => {
3435
<div className="my-6">
3536
<hr />
3637
</div>
37-
<div className="text-center pt-2 pb-6">2023 (ζ ͺοΌ‰εΉ»ζ°΄η·ιΈζŒ™</div>
38+
39+
<GensosenkyoFooter />
3840
</div>
3941
)
4042
}

β€Žsrc/app/page.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Link from 'next/link'
2+
import { GensosenkyoFooter } from '@/app/components/GensosenkyoFooter'
23

34
const Home = async () => {
45
return (
@@ -41,7 +42,7 @@ const Home = async () => {
4142
<div className="my-6">
4243
<hr />
4344
</div>
44-
<div className="py-2">2023 (ζ ͺοΌ‰εΉ»ζ°΄η·ιΈζŒ™</div>
45+
<GensosenkyoFooter />
4546
</div>
4647
</div>
4748
</div>

β€Žyarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -2041,6 +2041,11 @@ [email protected]:
20412041
loose-envify "^1.1.0"
20422042
scheduler "^0.23.0"
20432043

2044+
react-icons@^4.10.1:
2045+
version "4.10.1"
2046+
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.10.1.tgz#3f3b5eec1f63c1796f6a26174a1091ca6437a500"
2047+
integrity sha512-/ngzDP/77tlCfqthiiGNZeYFACw85fUjZtLbedmJ5DTlNDIwETxhwBzdOJ21zj4iJdvc0J3y7yOsX3PpxAJzrw==
2048+
20442049
react-is@^16.13.1:
20452050
version "16.13.1"
20462051
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"

0 commit comments

Comments
Β (0)