1
0
Fork 0

added pages

This commit is contained in:
Kim, Jimin 2022-01-11 16:26:28 +09:00
parent 1ee12c4a63
commit 4d8dcef6a2
6 changed files with 38 additions and 8 deletions

6
src/constants.ts Normal file
View file

@ -0,0 +1,6 @@
export enum ROUTES {
HOME = "#/",
STATUS = "#/status",
INSTALL = "#/install",
UPDATE = "#/update",
}

View file

@ -2,29 +2,32 @@
import FaTasks from "svelte-icons/fa/FaTasks.svelte"
import FaArrowAltCircleRight from "svelte-icons/fa/FaArrowAltCircleRight.svelte"
import Update from "svelte-icons/fa/FaRedoAlt.svelte"
import { ROUTES } from "../../constants"
</script>
<div class="main-buttons-container">
<button>
<a href={ROUTES.STATUS}>
<div class="icon"><FaTasks /></div>
<div>Status</div>
</button>
<button>
</a>
<a href={ROUTES.INSTALL}>
<div class="icon"><FaArrowAltCircleRight /></div>
<div>Install</div>
</button>
<button>
</a>
<a href={ROUTES.UPDATE}>
<div class="icon"><Update /></div>
<div>Update</div>
</button>
</a>
</div>
<style lang="scss">
.main-buttons-container {
@apply grid gap-6 grid-cols-3;
button {
@apply p-4 w-24 h-24 rounded-xl bg-red-500 text-white font-normal;
a {
@apply p-4 w-24 h-24 text-center rounded-xl bg-red-500 text-white font-normal;
.icon {
@apply w-full h-6 mb-2;

View file

@ -0,0 +1,5 @@
<script lang="ts">
import { ROUTES } from "../../constants"
</script>
<a href={ROUTES.HOME}>Home</a>

View file

@ -0,0 +1,5 @@
<script lang="ts">
import { ROUTES } from "../../constants"
</script>
<a href={ROUTES.HOME}>Home</a>

View file

@ -0,0 +1,5 @@
<script lang="ts">
import { ROUTES } from "../../constants"
</script>
<a href={ROUTES.HOME}>Home</a>

View file

@ -1,5 +1,11 @@
import Home from "./pages/Home/index.svelte"
import Status from "./pages/Status/index.svelte"
import Install from "./pages/Install/index.svelte"
import Update from "./pages/Update/index.svelte"
export default {
"/": Home,
"/status": Status,
"/install": Install,
"/update": Update,
}