Skip to content

Commit

Permalink
implement learn page
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Mar 9, 2024
1 parent 56f6ae9 commit 5285bb7
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/partials/PageMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type NavigationElement = {
const elems: NavigationElement[] = [
{ routeName: "/gallery", display: "Gallery", highlighted: false },
{ routeName: "/s", display: "Sets and Boosters", highlighted: true },
{ routeName: "/l", display: "Learn", highlighted: false },
{ routeName: "/learn", display: "Learn", highlighted: false },
{ routeName: "/cardCreator", display: "Card Creator", highlighted: false },
];
Expand Down
6 changes: 6 additions & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const CardView = () => import("@/views/AdvancedCardViewPage.vue");
const GameclientAuthz = () => import("@/views/GameClientAuthzPage.vue");
const Demo = () => import("@/views/Demo.vue");
const Login = () => import("@/views/LoginPage.vue");
const Learn = () => import("@/views/Learn.vue");

const routes = [
{
Expand Down Expand Up @@ -59,6 +60,11 @@ const routes = [
meta: { layout: "Landing" },
component: LandingPage,
},
{
path: "/learn",
name: "Learn",
component: Learn,
},
{
path: "/team",
name: "Team",
Expand Down
30 changes: 30 additions & 0 deletions src/views/Learn.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<template>
<div >
<FadeTeaser>
<div class="px-0 py-40 flex text-center justify-center">
<div>
<p class="text-5xl font-black text-red-600 font-lg">
How To Play
</p>
<p class="py-10 text-xl font-medium font-lg">
Here are the basics to get start playing. <br>
Visit our GitBook for advanced information!
</p>
<a href="https://crowdcontrol-network.gitbook.io/">
<BaseCCButton
:type="ButtonType.RED"
>
Open GitBook
</BaseCCButton>
</a>
</div>
</div>
</FadeTeaser>
</div>
</template>

<script setup lang="ts">
import FadeTeaser from "@/components/elements/FadeTeaser.vue";
import BaseCCButton from "@/components/elements/CCButton/BaseCCButton.vue";
import { ButtonType } from "@/components/elements/CCButton/ButtonType";
</script>

0 comments on commit 5285bb7

Please sign in to comment.