File tree Expand file tree Collapse file tree 7 files changed +50
-9
lines changed
Expand file tree Collapse file tree 7 files changed +50
-9
lines changed Original file line number Diff line number Diff line change 1+ import IconButton from "./iconbutton" ;
2+
3+
4+ import Image from 'next/image' ;
5+ import Link from 'next/link' ;
6+
7+ const HeaderSocialMedia = ( props ) => {
8+ return (
9+ < >
10+ < div >
11+ < IconButton src = "discord.svg" alt = "discord" width = { props . width } height = { props . height } url = "https://discord.com/invite/g7FmxB9uZp" className = "hover:scale-110 duration-300" />
12+ </ div >
13+ < div >
14+ < IconButton src = "github.svg" alt = "discord" width = { props . width } height = { props . height } url = "https://github.com/devs-in-tech/DevsInTech" className = "hover:scale-110 duration-300" />
15+ </ div >
16+ < div >
17+ < IconButton src = "twitter.svg" alt = "discord" width = { props . width } height = { props . height } url = "https://twitter.com/devs_in_tech" className = "hover:scale-110 duration-300" />
18+ </ div >
19+ < div >
20+ < IconButton src = "linkedin.svg" alt = "linkedin" width = { props . width } height = { props . height } url = "https://www.linkedin.com/company/devsintech-community/" className = "hover:scale-110 duration-300" />
21+ </ div >
22+ </ >
23+ ) ;
24+ } ;
25+ export default HeaderSocialMedia ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Link from "next/link";
33import { useState } from "react" ;
44import Logo from "../../public/logo2.png" ;
55import Button from "./button" ;
6+ import HeaderSocialMedia from "./HeaderSocialMedia" ;
67
78const Navbar = ( ) => {
89 let Links = [
@@ -45,16 +46,13 @@ const Navbar = () => {
4546 </ Link >
4647 </ li >
4748 ) ) }
48- < span className = "md:hidden block" >
49- < Button
50- name = "Join Us"
51- url = "https://discord.com/invite/g7FmxB9uZp"
52- />
53- </ span >
49+ < div className = "md:hidden flex gap-4" >
50+ < HeaderSocialMedia width = { 35 } height = { 30 } />
51+ </ div >
5452 </ ul >
55- < span className = "md:ml-auto md:block hidden " >
56- < Button name = "Join Us" url = "https://discord.com/invite/g7FmxB9uZp " />
57- </ span >
53+ < div className = "lg:flex lg:gap-5 hidden md:flex md:gap-3 " >
54+ < HeaderSocialMedia width = { 47 } height = { 47 } />
55+ </ div >
5856 </ div >
5957 < div
6058 onClick = { ( ) => setOpen ( ! open ) }
Original file line number Diff line number Diff line change 1+ import Image from 'next/image' ;
2+ import Link from 'next/link' ;
3+
4+ const IconButton = ( props ) => {
5+ return (
6+ < Link href = { props . url } legacyBehavior >
7+ < a target = "_blank" rel = "noopener noreferrer" >
8+ < Image src = { props . src } width = { props . width } height = { props . height } alt = { props . alt } className = { props . className } />
9+ </ a >
10+ </ Link >
11+ ) ;
12+ } ;
13+
14+ export default IconButton ;
You can’t perform that action at this time.
0 commit comments