Style design
This commit is contained in:
parent
e59e40b57d
commit
8ec2346cd4
BIN
public/assets/me.png
Normal file
BIN
public/assets/me.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 138 KiB |
@ -1,17 +1,28 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="nav">
|
<div id="nav">
|
||||||
<router-link to="/">Strona główna</router-link>
|
<img alt="KamilCraft.com logo" :src="`${publicPath}assets/logo.png`">
|
||||||
<router-link to="/projects">Projekty</router-link>
|
<ul>
|
||||||
<router-link to="/about">O mnie</router-link>
|
<li><router-link to="/">Strona główna</router-link></li>
|
||||||
|
<li><router-link to="/projects">Projekty</router-link></li>
|
||||||
|
<li><router-link to="/about">O mnie</router-link></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#nav {
|
#nav {
|
||||||
padding: 30px;
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
ul {
|
||||||
|
display: flex;
|
||||||
|
list-style: none;
|
||||||
|
li {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
a {
|
a {
|
||||||
padding: 0 5px;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #2c3e50;
|
color: #2c3e50;
|
||||||
|
|
||||||
@ -21,3 +32,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
publicPath: process.env.BASE_URL
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
51
src/components/sections/About.vue
Normal file
51
src/components/sections/About.vue
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<template>
|
||||||
|
<section id="about">
|
||||||
|
<h1>O mnie:</h1>
|
||||||
|
<div id="grid">
|
||||||
|
<div id="grid-text">
|
||||||
|
<p>Siemandero tutaj Kamil Niemczycki</p>
|
||||||
|
<p>Lubię programować itp.</p>
|
||||||
|
</div>
|
||||||
|
<div id="grid-photo">
|
||||||
|
<figure>
|
||||||
|
<img :src="`${publicPath}assets/me.png`" />
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
|
<style lang="scss">
|
||||||
|
#about {
|
||||||
|
max-width: 1000px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
#grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr 1fr;
|
||||||
|
grid-template-areas:
|
||||||
|
'text text photo';
|
||||||
|
align-items: center;
|
||||||
|
#grid-text {
|
||||||
|
grid-area: text;
|
||||||
|
}
|
||||||
|
#grid-photo {
|
||||||
|
grid-area: photo;
|
||||||
|
}
|
||||||
|
figure {
|
||||||
|
img {
|
||||||
|
object-fit: cover;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
publicPath: process.env.BASE_URL
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
@ -7,12 +7,14 @@ import NotFound from '../views/NotFound'
|
|||||||
|
|
||||||
Vue.use(VueRouter)
|
Vue.use(VueRouter)
|
||||||
|
|
||||||
|
const mainTitle = ' :: kamilcraft.com'
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'Home',
|
name: 'Home',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Witam serdecznie 😊'
|
title: 'Witam serdecznie 😊' + mainTitle
|
||||||
},
|
},
|
||||||
component: Home
|
component: Home
|
||||||
},
|
},
|
||||||
@ -20,7 +22,7 @@ const routes = [
|
|||||||
path: '/projects',
|
path: '/projects',
|
||||||
name: 'Projects',
|
name: 'Projects',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Moje projekty'
|
title: 'Moje projekty' + mainTitle
|
||||||
},
|
},
|
||||||
component: Projects
|
component: Projects
|
||||||
},
|
},
|
||||||
@ -28,7 +30,7 @@ const routes = [
|
|||||||
path: '/about',
|
path: '/about',
|
||||||
name: 'About',
|
name: 'About',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'O mnie'
|
title: 'O mnie' + mainTitle
|
||||||
},
|
},
|
||||||
component: About
|
component: About
|
||||||
},
|
},
|
||||||
|
@ -1,22 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="home">
|
<div class="home">
|
||||||
<img alt="KamilCraft.com logo" :src="`${publicPath}assets/logo.png`">
|
|
||||||
<HelloWorld/>
|
<HelloWorld/>
|
||||||
|
<About/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import HelloWorld from '@/components/HomePageElement.vue'
|
import HelloWorld from '@/components/HomePageElement.vue'
|
||||||
|
import About from '@/components/sections/About.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Home',
|
name: 'Home',
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
publicPath: process.env.BASE_URL
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
components: {
|
||||||
HelloWorld
|
HelloWorld,
|
||||||
|
About
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user