Skip to content

Commit

Permalink
feat: Earn hero section (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola authored May 19, 2024
1 parent 846e5a4 commit 4cab96d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/assets/earn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</RouterLink>
<nav class="flex space-x-8 body-small text-neutral-800">
<RouterLink to="/company">Company</RouterLink>
<a href="#">Earn</a>
<RouterLink to="/earn">Earn</RouterLink>
<RouterLink to="/developer">Developer</RouterLink>
<div @mouseenter="showApps = true" @mouseleave="showApps = false">
<div class="flex">
Expand Down
13 changes: 13 additions & 0 deletions src/pages/Earn/EarnHeroSection.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template>
<div class="bg-white grid md:grid-cols-[50%_50%]">
<div class="flex flex-col justify-center items-center text-center max-w-xl m-auto gap-y-6">
<h2>Decentralize everything and earn LibertAI Tokens</h2>
<p class="body-small">
Are you ready to dive into a new world of decentralized computing, where your contributions are rewarded with
tangible benefits? Look no further than Libertai Tokens! These Tokens play an essential role within the exciting
and innovative LibertAI ecosystem.
</p>
</div>
<img alt="Earn" class="max-md:max-h-80 m-auto" src="../../assets/earn.svg" />
</div>
</template>
7 changes: 7 additions & 0 deletions src/pages/Earn/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script lang="ts" setup>
import EarnHeroSection from "./EarnHeroSection.vue";
</script>

<template>
<EarnHeroSection />
</template>
5 changes: 5 additions & 0 deletions src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Home from "./pages/Home/index.vue";
import Company from "./pages/Company/index.vue";
import Design from "./pages/Design/index.vue";
import Developer from "./pages/Developer/index.vue";
import Earn from "./pages/Earn/index.vue";

const routes = [
{
Expand All @@ -22,6 +23,10 @@ const routes = [
path: "/developer",
component: Developer,
},
{
path: "/earn",
component: Earn,
},
];

export const router = createRouter({
Expand Down

0 comments on commit 4cab96d

Please sign in to comment.