Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
Signed-off-by: MBWhite <whitemat@uk.ibm.com>
  • Loading branch information
mbwhite committed Apr 20, 2024
1 parent 0c692fc commit e2a9f7c
Show file tree
Hide file tree
Showing 9 changed files with 417 additions and 20 deletions.
25 changes: 14 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>

</html>
125 changes: 117 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"format": "prettier --write src/"
},
"dependencies": {
"bulma": "^1.0.0",
"pinia": "^2.1.7",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
Expand Down
2 changes: 2 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import HelloWorld from './components/HelloWorld.vue'
<nav>
<RouterLink to="/">Home</RouterLink>
<RouterLink to="/about">About</RouterLink>
<RouterLink to="/gridflip">GridFlip</RouterLink>
<RouterLink to="/flip">Flip</RouterLink>
</nav>
</div>
</header>
Expand Down
3 changes: 3 additions & 0 deletions src/assets/bulma.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'bulma/css/bulma.css';


2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './assets/main.css'
import './assets/bulma.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
Expand Down
12 changes: 12 additions & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import GridFlipView from '../views/GridFlipView.vue'
import FlipView from '../views/FlipView.vue'

const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/gridflip',
name: 'gridflip',
component: GridFlipView
},
{
path: '/flip',
name: 'flip',
component: FlipView
},
{
path: '/',
name: 'home',
Expand Down
Loading

0 comments on commit e2a9f7c

Please sign in to comment.