File tree Expand file tree Collapse file tree 2 files changed +40
-30
lines changed
Expand file tree Collapse file tree 2 files changed +40
-30
lines changed Original file line number Diff line number Diff line change 1- import Image from "next/image" ;
2- import Facebook from "@/public/icons/Facebook.svg" ;
3- import twitter from "@/public/icons/twitter.svg" ;
4- import youtube from "@/public/icons/youtube.svg" ;
5- import instagram from "@/public/icons/instagram.svg" ;
61import Link from "next/link" ;
2+ import SocialLinks from "../SocialLinks" ;
73
84const Footer = ( ) => {
95 return (
@@ -22,31 +18,7 @@ const Footer = () => {
2218 </ li >
2319 </ ul >
2420
25- < ul className = "flex gap-3" >
26- < li >
27- < Link href = { "https://www.facebook.com/codeit.kr/" } target = "_blank" >
28- < Image src = { Facebook } width = { 20 } height = { 20 } alt = "facebook" />
29- </ Link >
30- </ li >
31- < li >
32- < Link href = { "https://x.com/" } target = "_blank" >
33- < Image src = { twitter } width = { 20 } height = { 20 } alt = "twitter" />
34- </ Link >
35- </ li >
36- < li >
37- < Link
38- href = { "https://www.youtube.com/channel/UCCM79CPm2WbBYTRaiNEExbg" }
39- target = "_blank"
40- >
41- < Image src = { youtube } width = { 20 } height = { 20 } alt = "youtube" />
42- </ Link >
43- </ li >
44- < li >
45- < Link href = { "https://www.instagram.com/codeit_kr/" } target = "_blank" >
46- < Image src = { instagram } width = { 20 } height = { 20 } alt = "instagram" />
47- </ Link >
48- </ li >
49- </ ul >
21+ < SocialLinks />
5022 </ nav >
5123 </ footer >
5224 ) ;
Original file line number Diff line number Diff line change 1+ import Image from "next/image" ;
2+ import Link from "next/link" ;
3+ import Facebook from "@/public/icons/Facebook.svg" ;
4+ import twitter from "@/public/icons/twitter.svg" ;
5+ import youtube from "@/public/icons/youtube.svg" ;
6+ import instagram from "@/public/icons/instagram.svg" ;
7+
8+ const SocialLinks = ( ) => {
9+ return (
10+ < ul className = "flex gap-3" >
11+ < li >
12+ < Link href = { "https://www.facebook.com/codeit.kr/" } target = "_blank" >
13+ < Image src = { Facebook } width = { 20 } height = { 20 } alt = "facebook" />
14+ </ Link >
15+ </ li >
16+ < li >
17+ < Link href = { "https://x.com/" } target = "_blank" >
18+ < Image src = { twitter } width = { 20 } height = { 20 } alt = "twitter" />
19+ </ Link >
20+ </ li >
21+ < li >
22+ < Link
23+ href = { "https://www.youtube.com/channel/UCCM79CPm2WbBYTRaiNEExbg" }
24+ target = "_blank"
25+ >
26+ < Image src = { youtube } width = { 20 } height = { 20 } alt = "youtube" />
27+ </ Link >
28+ </ li >
29+ < li >
30+ < Link href = { "https://www.instagram.com/codeit_kr/" } target = "_blank" >
31+ < Image src = { instagram } width = { 20 } height = { 20 } alt = "instagram" />
32+ </ Link >
33+ </ li >
34+ </ ul >
35+ ) ;
36+ } ;
37+
38+ export default SocialLinks ;
You can’t perform that action at this time.
0 commit comments