6 Commits

Author SHA1 Message Date
7bd1f7778a unnecessary comment removed 2022-08-02 16:59:48 +02:00
bcac680d87 empty line added 2022-08-02 16:54:55 +02:00
377f0dd743 updated paths in project 2022-08-02 16:47:28 +02:00
f4dc87d841 added autoscroll for contact form 2022-07-31 22:39:14 +02:00
1d9d84484d fix scroll button 2022-07-31 22:22:08 +02:00
3e5c2a1c1d fixed buttons 2022-07-31 15:15:29 +02:00
15 changed files with 63 additions and 54 deletions

View File

@@ -6,4 +6,4 @@
:root {
--color-kamilcraft-green: 162 207 0;
}
}
}

View File

@@ -1,16 +1,16 @@
<template>
<SiteHeader />
<main
rel="main"
>
<SiteHeader />
<RouterView />
<FooterComponent />
</main>
<FooterComponent />
</template>
<script setup>
import SiteHeader from './components/SiteHeader'
import FooterComponent from './components/FooterComponent'
import SiteHeader from '@/components/SiteHeader'
import FooterComponent from '@/components/FooterComponent'
</script>
<style lang="scss">

View File

@@ -1,5 +1,8 @@
<template>
<div class="max-w-screen-xl mx-auto px-6 xl:px-2 py-10">
<section
id="projects"
class="max-w-screen-xl mx-auto px-6 xl:px-2 py-10"
>
<slot />
<div class="grid items-start grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-5">
<div
@@ -49,14 +52,14 @@
</div>
</div>
</div>
</div>
</section>
</template>
<script setup>
import { defineProps, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { useStore } from 'vuex'
import BaseButton from './buttons/BaseButton'
import BaseButton from '@/components/buttons/BaseButton'
import { marked } from 'marked'
defineProps({
@@ -89,7 +92,7 @@ function markdownToText (project) {
</script>
<style lang="scss" scoped>
@import "scss/media";
@import 'scss/media';
.grid-project {
animation: load-project 2s forwards;
@@ -126,6 +129,10 @@ function markdownToText (project) {
.btn {
display: flex;
&:hover {
background-color: rgba(255, 255, 255, .9);
}
}
}
}

View File

@@ -27,7 +27,7 @@
import { computed } from 'vue'
import { useStore } from 'vuex'
import { useRoute } from 'vue-router'
import Navigation from './NavigationHeader'
import Navigation from '@/components/NavigationHeader'
const store = useStore()
const route = useRoute()

View File

@@ -33,7 +33,7 @@ defineProps({
</script>
<style lang="scss">
@import "../../../scss/btn";
@import 'scss/btn';
.btn {
@include button($has-icon: true);

View File

@@ -25,7 +25,7 @@ defineProps({
</script>
<style lang="scss" scoped>
@import "../../../scss/btn";
@import 'scss/btn';
.btn {
@include ghost-button();

View File

@@ -21,7 +21,7 @@
has-icon
icon="portrait"
is-reverse
@click="scrollTo('.selected-projects')"
@click="scrollTo('#projects')"
>
Wybrane projekty
</BaseButton>
@@ -49,7 +49,7 @@
</template>
<script setup>
import BaseButton from '../buttons/BaseButton'
import BaseButton from '@/components/buttons/BaseButton'
import { useRouter } from 'vue-router'
const router = useRouter()

View File

@@ -24,8 +24,8 @@
<script setup>
import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import Projects from '../SelectedProjects'
import GhostButton from '../buttons/GhostButton'
import Projects from '@/components/SelectedProjects'
import GhostButton from '@/components/buttons/GhostButton'
const router = useRouter()

View File

@@ -1,5 +1,8 @@
<template>
<div class="contact_container w-full bg-neutral-100 rounded-md border border-gray-200 md:max-w-[500px] p-2 shadow">
<div
id="contact-form"
class="contact_container w-full bg-neutral-100 rounded-md border border-gray-200 md:max-w-[500px] p-2 shadow"
>
<header class="mb-1.5">
<h3 class="text-xl">
Formularz kontaktowy
@@ -100,7 +103,7 @@
</template>
<script setup>
import BaseButton from '../../buttons/BaseButton'
import BaseButton from '@/components/buttons/BaseButton'
import { ref, reactive, watch, computed } from 'vue'
function emailValidate (mailObj) {
@@ -204,6 +207,14 @@ function formSubmit(event) {
buttonDisabled.value = false
})
}
scrollTo('#contact-form')
}
function scrollTo(id) {
document.querySelector(id).scrollIntoView({
behavior: 'smooth'
})
}
</script>

View File

@@ -1,7 +1,7 @@
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { store } from './store'
import App from '@/App.vue'
import router from '@/router'
import { store } from '@/store'
// import VueMeta from 'vue-meta'
import '../scss/default.scss'

View File

@@ -1,10 +1,10 @@
import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/HomeView'
import About from '../views/AboutView'
import Projects from '../views/ProjectsView'
import Project from '../views/ProjectView'
import Contact from '../views/ContactView'
import NotFound from '../views/NotFound'
import Home from '@/views/HomeView'
import About from '@/views/AboutView'
import Projects from '@/views/ProjectsView'
import Project from '@/views/ProjectView'
import Contact from '@/views/ContactView'
import NotFound from '@/views/NotFound'
const mainTitle = 'kamilcraft.com'
@@ -77,21 +77,6 @@ const router = createRouter({
return { left: 0, top: 0 }
}
}
/*scrollBehavior (to, from, savedPosition) {
if (savedPosition) {
return savedPosition
} else if (to.hash) {
return new Promise(resolve => {
setTimeout(() => {
resolve({
selector: to.hash
}, 1000)
})
})
} else {
return { x: 0, y: 0 }
}
}*/
})
const title = ' :: ' + mainTitle

View File

@@ -1,9 +1,7 @@
<template>
<section class="px-3 py-6">
<div class="flex flex-col md:flex-row items-start justify-center mx-auto gap-5">
<MailContact />
<OtherContact />
</div>
<section class="flex flex-col px-3 py-6 md:flex-row items-start justify-center mx-auto gap-5">
<MailContact />
<OtherContact />
</section>
</template>
@@ -11,8 +9,8 @@
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'
import { useStore } from 'vuex'
import MailContact from '../components/sections/contacts/MailContact'
import OtherContact from '../components/sections/contacts/OtherContact'
import MailContact from '@/components/sections/contacts/MailContact'
import OtherContact from '@/components/sections/contacts/OtherContact'
const route = useRoute()
const store = useStore()

View File

@@ -10,9 +10,9 @@
import { onMounted, onUnmounted } from 'vue'
import { useStore } from 'vuex'
import { useRoute } from 'vue-router'
import About from '../components/sections/AboutSection'
import ExperiencesSection from '../components/sections/ExperiencesSection'
import FavoriteProjects from '../components/sections/FavoriteProjects'
import About from '@/components/sections/AboutSection'
import ExperiencesSection from '@/components/sections/ExperiencesSection'
import FavoriteProjects from '@/components/sections/FavoriteProjects'
const store = useStore()
const route = useRoute()

View File

@@ -28,7 +28,7 @@
<script setup>
import { ref, reactive, computed, onMounted, onUnmounted } from 'vue'
import { useStore } from 'vuex'
import SelectedProjects from '../components/SelectedProjects'
import SelectedProjects from '@/components/SelectedProjects'
const store = useStore()

View File

@@ -1,6 +1,14 @@
const path = require("path")
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
publicPath: '/',
transpileDependencies: true
transpileDependencies: true,
configureWebpack: {
resolve: {
alias: {
'@': path.resolve(__dirname, 'src/'),
}
}
},
})