Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar and metadata #1

Merged
merged 3 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<link href="/vite.svg" rel="icon" type="image/svg+xml"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Libertai</title>
<meta charset="UTF-8" />
<link href="/favicon.svg" rel="icon" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>Libertai</title>
</head>
<body>
<div id="app"></div>
Expand Down
23 changes: 23 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

3 changes: 3 additions & 0 deletions src/assets/chevron-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 56 additions & 27 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,58 @@
<template>
<div class="container mx-auto px-5">
<header class="w-full py-4 flex justify-between items-center px-8">
<div class="flex items-center">
<RouterLink to="/">
<img alt="Site Logo" src="../assets/logo.svg" />
<header class="w-full px-28 py-4 flex justify-between items-center">
<div class="flex items-center">
<RouterLink class="mr-8" to="/">
<img alt="Site Logo" height="21" src="/logo.svg" width="120" />
</RouterLink>
<nav class="flex space-x-8 body-small text-neutral-800">
<RouterLink to="/company">
Company
</RouterLink>
<nav class="flex space-x-4 font-medium">
<RouterLink class="hover:text-theme-secondary" to="/company">
Company
</RouterLink>
<a class="hover:text-theme-secondary" href="#">
Earn
</a>
<a class="hover:text-theme-secondary" href="#">
APIs
</a>
<a class="hover:text-theme-secondary" href="#">
Apps
</a>
</nav>
</div>
<button class="bg-purple-700 text-white font-bold py-2 px-4 rounded-full">
<a href="https://chat.libertai.io">Chat APP</a>
</button>
</header>
</div>
</template>;
<script lang="ts" setup></script>;
<a href="#">
Earn
</a>
<a href="#">
APIs
</a>
<div @mouseenter="showApps = true" @mouseleave="showApps = false">
<div class="flex">
<span class="mr-1.5 cursor-pointer">Apps</span>
<img alt="Chevron down" src="../assets/chevron-down.svg" />
</div>

<div class="absolute pt-2">
<div
v-show="showApps"
class="z-10 w-36 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5"
role="menu"
>
<div class="py-1">
<a class="dropdown-item" href="https://chat.libertai.io" target="_blank">
Chat dApp
</a>
<a class="dropdown-item" href="https://t.me/liberchat_bot" target="_blank">
Telegram bot
</a>
</div>
</div>
</div>
</div>
</nav>
</div>
<button class="bg-primary text-white body-default font-bold py-2 px-4 rounded-full">
<a href="https://chat.libertai.io">Chat APP</a>
</button>
</header>
</template>

<script lang="ts" setup>
import { ref } from "vue";

const showApps = ref(false);
</script>

<style lang="postcss" scoped>
.dropdown-item {
@apply text-neutral-800 block px-4 py-2 text-sm hover:text-primary hover:bg-secondary
}
</style>
51 changes: 28 additions & 23 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,73 +3,73 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;

--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;

--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;

--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;

--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;

--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;

--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;

--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;

--ring: 222.2 84% 4.9%;

--radius: 0.5rem;
}

.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;

--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;

--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;

--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;

--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;

--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;

--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;

--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;

--ring: 212.7 26.8% 83.9%;
}
}

@layer base {
* {
@apply border-border;
Expand Down Expand Up @@ -118,22 +118,27 @@ h1 {
font-size: 72px;
line-height: 84px;
}

h2 {
font-size: 54px;
line-height: 66px;
}

h3 {
font-size: 38px;
line-height: 50px;
}

h4 {
font-size: 24px;
line-height: 34px;
}

h5 {
font-size: 22px;
line-height: 28px;
}

h6 {
font-size: 16px;
line-height: 22px;
Expand All @@ -144,4 +149,4 @@ p {
font-weight: 500;
font-size: 18px;
line-height: 30px;
}
}