Skip to content

Commit

Permalink
Merge pull request #279 from DecentralCardGame/play-page
Browse files Browse the repository at this point in the history
play page implement and linked to it on other pages
  • Loading branch information
lxgr-linux authored Mar 10, 2024
2 parents 246bceb + 4f095c9 commit f09d8b9
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/modals/AirdropsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default {
create: {
text: "Create a ",
linkText: "card draft.",
linkData: 'New Card'
linkData: 'CardCreator'
},
vote: {
text: "Vote for a ",
Expand Down
12 changes: 9 additions & 3 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createRouter, createWebHashHistory } from "vue-router";

const GalleryPage = () => import("@/views/GalleryPage.vue");
const VotingResultsPage = () => import("@/views/VotingResultsPage.vue");
const NewCardPage = () => import("@/views/CardCreatorPage.vue");
const CardCreator = () => import("@/views/CardCreatorPage.vue");
const AboutPage = () => import("@/views/AboutPage.vue");
const NotFound = () => import("@/views/NotFound.vue");
const RoadmapPage = () => import("@/views/RoadmapPage.vue");
Expand All @@ -16,6 +16,7 @@ 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 Play = () => import("@/views/Play.vue");

const routes = [
{
Expand Down Expand Up @@ -50,8 +51,8 @@ const routes = [
},
{
path: "/cardCreator",
name: "New Card",
component: NewCardPage,
name: "CardCreator",
component: CardCreator,
meta: { layout: "Default" },
},
{
Expand All @@ -65,6 +66,11 @@ const routes = [
name: "Learn",
component: Learn,
},
{
path: "/play",
name: "Play",
component: Play,
},
{
path: "/team",
name: "Team",
Expand Down
2 changes: 1 addition & 1 deletion src/views/AboutPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
Crowd Control gives you full ownership. And we mean it.
You own the cards which you acquire through play and participation.
And furthermore you own the card prototypes which you design and create. Go to the
<router-link :to="{ name: 'New Card' }">
<router-link :to="{ name: 'CardCreator' }">
Card Creator
</router-link>
to start creating.
Expand Down
29 changes: 20 additions & 9 deletions src/views/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
>
CREATE CARDS
</RouterCCButton>
<RouterCCButton :type="ButtonType.BLACK" to="/p">
<RouterCCButton :type="ButtonType.BLACK" to="/play">
Play the game
</RouterCCButton>
</div>
Expand Down Expand Up @@ -75,18 +75,29 @@
</div>
</div>
<div class="flex pt-20 justify-evenly sm:px-32 flex-wrap gap-4">
<div v-for="cardBack in cardBacks" class="relative hover:scale-105">
<img
alt="cardback"
:src="cardBack.cardBack"
class="h-[20rem] drop-shadow-glowRed"
/>

<div
v-for="cardBack in cardBacks"
class="relative hover:scale-105"
@click="router.push('/cardCreator')"
>
<router-link
:to="{ name: cardBack.route}"
>
<img
alt="cardback"
:src="cardBack.cardBack"
class="h-[20rem] drop-shadow-glowRed"
/>
</router-link>
<div class="absolute top-52 left-0 right-0 text-center">
<p class="text-3xl font-bold">
{{ cardBack.heading }}
</p>
<p>{{ cardBack.text }}</p>
</div>


</div>
</div>
</div>
Expand Down Expand Up @@ -139,8 +150,8 @@ type CardBack = {
};
const cardBacks: CardBack[] = [
{ cardBack: cardBack1, heading: "CREATE", text: "Assets, Games, Worlds" },
{ cardBack: cardBack2, heading: "PLAY", text: "Games, Characters, Stories" },
{ cardBack: cardBack1, heading: "CREATE", text: "Assets, Games, Worlds", route: "CardCreator" },
{ cardBack: cardBack2, heading: "PLAY", text: "Games, Characters, Stories", route: "Play" },
{ cardBack: cardBack3, heading: "VOTE", text: "Balance, Decide, Govern" },
{ cardBack: cardBack4, heading: "OWN", text: "Earn, Collect, Trade" },
];
Expand Down
2 changes: 1 addition & 1 deletion src/views/Learn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<BaseCCButton
:type="ButtonType.RED"
>
Open GitBook
Open GitBook
</BaseCCButton>
</a>
</div>
Expand Down
30 changes: 30 additions & 0 deletions src/views/Play.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">
Play the Game!
</p>
<p class="py-10 text-xl font-medium font-lg">
Our alpha version is currently in development <br>
and not publicly released :( <br>
We only do closed playtests at the moment. <br>
The button below will do nothing.
</p>
<BaseCCButton
:type="ButtonType.RED"
>
Download Gameclient
</BaseCCButton>
</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 f09d8b9

Please sign in to comment.