Skip to content

Commit 7c82994

Browse files
add navitems and implement hamburgermenu
1 parent 7a3f70c commit 7c82994

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

src/components/layout/Header.vue

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
1-
<script setup lang="ts">
2-
import IconGnoland from '@/components/icons/IconGnoland.vue'
3-
</script>
4-
51
<template>
6-
<header class="flex w-full max-w-[110rem] mx-auto px-4 md:px-14 lg:px-20 pt-8 pb-4 mb-8 md:mb-16">
7-
<IconGnoland class="m-auto md:m-0" />
2+
<header class="flex w-full items-center justify-between max-w-[110rem] mx-auto px-4 md:px-14 lg:px-20 pt-8 pb-4 mb-8 md:mb-16 relative">
3+
<IconGnoland class="cursor-pointer" />
4+
<HamburgerMenu :navItems="navItems"/>
5+
<div class="md:flex justify-end items-center gap-5 hidden">
6+
<a class="cursor-pointer link-with-animation" v-for="item, i in navItems" :key="i" href="item.link" target="_blank">{{item.title}}</a>
7+
<a class="cursor-pointer px-2 py-1 bg-grey-100 rounded-sm hover:scale-105 transition-transform duration-300">Connect Wallet</a>
8+
</div>
89
</header>
910
</template>
11+
12+
<script setup lang="ts">
13+
import IconGnoland from '@/components/icons/IconGnoland.vue'
14+
import { NavItem } from '@/types';
15+
import HamburgerMenu from '../ui/HamburgerMenu.vue';
16+
const navItems: NavItem[] = [
17+
{
18+
title: 'Home',
19+
link: 'https://gno.land/'
20+
},
21+
{
22+
title: 'Docs',
23+
link: 'https://docs.gno.land/'
24+
},
25+
{
26+
title: 'Playground',
27+
link: 'https://play.gno.land/'
28+
}
29+
]
30+
</script>

0 commit comments

Comments
 (0)