update
This commit is contained in:
parent
5047be7e4a
commit
cf4f7fd9ba
3
v3/.browserslistrc
Normal file
3
v3/.browserslistrc
Normal file
@ -0,0 +1,3 @@
|
||||
> 1%
|
||||
last 2 versions
|
||||
not dead
|
23
v3/.gitignore
vendored
Normal file
23
v3/.gitignore
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
19
v3/README.md
Normal file
19
v3/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
# v3
|
||||
|
||||
## Project setup
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
23935
v3/package-lock.json
generated
Normal file
23935
v3/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
21
v3/package.json
Normal file
21
v3/package.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "v3",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.0.0",
|
||||
"vue-router": "^4.0.0-0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-router": "~4.5.0",
|
||||
"@vue/cli-service": "~4.5.0",
|
||||
"@vue/compiler-sfc": "^3.0.0",
|
||||
"node-sass": "^6.0.0",
|
||||
"sass": "^1.32.13",
|
||||
"sass-loader": "^9"
|
||||
}
|
||||
}
|
BIN
v3/public/favicon.ico
Normal file
BIN
v3/public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
21
v3/public/index.html
Normal file
21
v3/public/index.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
|
||||
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title>Filip Rojek</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
</html>
|
24
v3/src/App.vue
Normal file
24
v3/src/App.vue
Normal file
@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<Header />
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Header from '@/components/Header.vue'
|
||||
export default {
|
||||
components: {
|
||||
Header,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
7
v3/src/assets/scss/variables.scss
Normal file
7
v3/src/assets/scss/variables.scss
Normal file
@ -0,0 +1,7 @@
|
||||
$shadow-1: 0 0 4px rgba(0, 0, 0, 0.2);
|
||||
$shadow-2: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
||||
$shadow-3: 7px 5px 17px -5px rgba(0, 0, 0, 0.78);
|
||||
$shadow-4: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
||||
$shadow-5: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
|
||||
|
||||
$heading-1: 1.5rem;
|
44
v3/src/components/Header.vue
Normal file
44
v3/src/components/Header.vue
Normal file
@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<header>
|
||||
<div class="left">
|
||||
<a href="#">Home</a>
|
||||
<a href="#">About</a>
|
||||
<a href="#">Projects</a>
|
||||
</div>
|
||||
<div class="right">
|
||||
<a href="#">Contact</a>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '@/assets/scss/variables.scss';
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
box-shadow: $shadow-2;
|
||||
// background: red;
|
||||
|
||||
a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
font-size: 1.5rem;
|
||||
margin: 0.5rem;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.left {
|
||||
margin: 0.5rem 0 0.5rem 1rem;
|
||||
}
|
||||
.right {
|
||||
margin: 0.5rem 1rem 0.5rem 0;
|
||||
}
|
||||
}
|
||||
</style>
|
5
v3/src/main.js
Normal file
5
v3/src/main.js
Normal file
@ -0,0 +1,5 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
|
||||
createApp(App).use(router).mount('#app')
|
23
v3/src/router/index.js
Normal file
23
v3/src/router/index.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import Home from '@/views/Home.vue'
|
||||
import About from '@/views/About.vue'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Home',
|
||||
component: Home
|
||||
},
|
||||
{
|
||||
path: '/about',
|
||||
name: 'About',
|
||||
component: About
|
||||
}
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(process.env.BASE_URL),
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
5
v3/src/views/About.vue
Normal file
5
v3/src/views/About.vue
Normal file
@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div class="about">
|
||||
<h1>This is an about page</h1>
|
||||
</div>
|
||||
</template>
|
8
v3/src/views/Home.vue
Normal file
8
v3/src/views/Home.vue
Normal file
@ -0,0 +1,8 @@
|
||||
<template> </template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Home',
|
||||
components: {},
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user