This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finish MenuBoard, add about menu item, separate home and play pages
- Loading branch information
Showing
9 changed files
with
114 additions
and
32 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
import Vue from 'vue'; | ||
import Router from 'vue-router'; | ||
import Home from './views/Home.vue'; | ||
import Vue from "vue"; | ||
import Router from "vue-router"; | ||
import Home from "./views/Home.vue"; | ||
import Play from "./views/Play.vue"; | ||
|
||
Vue.use(Router); | ||
|
||
export default new Router({ | ||
routes: [ | ||
{ | ||
path: '/', | ||
name: 'home', | ||
component: Home, | ||
path: "/", | ||
name: "home", | ||
component: Home | ||
}, | ||
{ | ||
path: '/about', | ||
name: 'about', | ||
path: "/play", | ||
name: "play", | ||
component: Play | ||
}, | ||
{ | ||
path: "/about", | ||
name: "about", | ||
// route level code-splitting | ||
// this generates a separate chunk (about.[hash].js) for this route | ||
// which is lazy-loaded when the route is visited. | ||
component: () => import(/* webpackChunkName: "about" */ './views/About.vue'), | ||
}, | ||
], | ||
component: () => import(/* webpackChunkName: "about" */ "./views/About.vue") | ||
} | ||
] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
@import './global-ghost.scss'; | ||
@import './bootstrap.scss'; | ||
|
||
.text-rtl { | ||
direction: rtl; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<template> | ||
<div class="about"> | ||
<h1>This is an about page</h1> | ||
<div class="about container py-3"> | ||
<h1 class="h1">Ludo Game</h1> | ||
<p>This is a free and open source software. The source code is available at <a href="https://github.com/mort3za/ludo">Github</a>. Please feel free to send pull requests or create an issue.</p> | ||
<p>Made with ♥ by <a href="https://github.com/mort3za">Morteza Ziyae</a> in Tehran, Iran.</p> | ||
|
||
<router-link class="btn btn-primary" to="/">Back</router-link> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
<template> | ||
<div class="page-home"> | ||
<Board/> | ||
<div class="page-home d-flex flex-column justify-content-center align-items-center p-3"> | ||
<h1 class="h1">Ludo Game</h1> | ||
<div class="main-menu w-100 mt-3"> | ||
<router-link class="btn btn-primary w-100 mb-3" to="/play">Play</router-link> | ||
<router-link class="btn btn-secondary w-100 mb-3" to="/about">About</router-link> | ||
<!-- TODO: <router-link class="btn btn-secondary w-100 mb-3" to="/software-licenses">Software Licenses</router-link> --> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Board from "@/components/Board.vue"; | ||
export default { | ||
name: "page-home", | ||
components: { Board } | ||
name: "page-home" | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.main-menu { | ||
max-width: rem(480px); | ||
margin: auto; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div class="page-home"> | ||
<Board/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Board from "@/components/Board.vue"; | ||
export default { | ||
name: "page-home", | ||
components: { Board } | ||
}; | ||
</script> |