Compare commits
6 Commits
7476cfce33
...
tailwind
Author | SHA1 | Date | |
---|---|---|---|
7bd1f7778a
|
|||
bcac680d87 | |||
377f0dd743
|
|||
f4dc87d841
|
|||
1d9d84484d
|
|||
3e5c2a1c1d
|
@@ -6,4 +6,4 @@
|
|||||||
:root {
|
:root {
|
||||||
--color-kamilcraft-green: 162 207 0;
|
--color-kamilcraft-green: 162 207 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<SiteHeader />
|
||||||
<main
|
<main
|
||||||
rel="main"
|
rel="main"
|
||||||
>
|
>
|
||||||
<SiteHeader />
|
|
||||||
<RouterView />
|
<RouterView />
|
||||||
<FooterComponent />
|
|
||||||
</main>
|
</main>
|
||||||
|
<FooterComponent />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import SiteHeader from './components/SiteHeader'
|
import SiteHeader from '@/components/SiteHeader'
|
||||||
import FooterComponent from './components/FooterComponent'
|
import FooterComponent from '@/components/FooterComponent'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
<template>
|
<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 />
|
<slot />
|
||||||
<div class="grid items-start grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-5">
|
<div class="grid items-start grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-5">
|
||||||
<div
|
<div
|
||||||
@@ -49,14 +52,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { defineProps, onMounted } from 'vue'
|
import { defineProps, onMounted } from 'vue'
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
import BaseButton from './buttons/BaseButton'
|
import BaseButton from '@/components/buttons/BaseButton'
|
||||||
import { marked } from 'marked'
|
import { marked } from 'marked'
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
@@ -89,7 +92,7 @@ function markdownToText (project) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "scss/media";
|
@import 'scss/media';
|
||||||
|
|
||||||
.grid-project {
|
.grid-project {
|
||||||
animation: load-project 2s forwards;
|
animation: load-project 2s forwards;
|
||||||
@@ -126,6 +129,10 @@ function markdownToText (project) {
|
|||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: rgba(255, 255, 255, .9);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import Navigation from './NavigationHeader'
|
import Navigation from '@/components/NavigationHeader'
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
@@ -33,7 +33,7 @@ defineProps({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "../../../scss/btn";
|
@import 'scss/btn';
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
@include button($has-icon: true);
|
@include button($has-icon: true);
|
||||||
|
@@ -25,7 +25,7 @@ defineProps({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "../../../scss/btn";
|
@import 'scss/btn';
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
@include ghost-button();
|
@include ghost-button();
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
has-icon
|
has-icon
|
||||||
icon="portrait"
|
icon="portrait"
|
||||||
is-reverse
|
is-reverse
|
||||||
@click="scrollTo('.selected-projects')"
|
@click="scrollTo('#projects')"
|
||||||
>
|
>
|
||||||
Wybrane projekty
|
Wybrane projekty
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import BaseButton from '../buttons/BaseButton'
|
import BaseButton from '@/components/buttons/BaseButton'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
@@ -24,8 +24,8 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import Projects from '../SelectedProjects'
|
import Projects from '@/components/SelectedProjects'
|
||||||
import GhostButton from '../buttons/GhostButton'
|
import GhostButton from '@/components/buttons/GhostButton'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
<template>
|
<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">
|
<header class="mb-1.5">
|
||||||
<h3 class="text-xl">
|
<h3 class="text-xl">
|
||||||
Formularz kontaktowy
|
Formularz kontaktowy
|
||||||
@@ -100,7 +103,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import BaseButton from '../../buttons/BaseButton'
|
import BaseButton from '@/components/buttons/BaseButton'
|
||||||
import { ref, reactive, watch, computed } from 'vue'
|
import { ref, reactive, watch, computed } from 'vue'
|
||||||
|
|
||||||
function emailValidate (mailObj) {
|
function emailValidate (mailObj) {
|
||||||
@@ -204,6 +207,14 @@ function formSubmit(event) {
|
|||||||
buttonDisabled.value = false
|
buttonDisabled.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scrollTo('#contact-form')
|
||||||
|
}
|
||||||
|
|
||||||
|
function scrollTo(id) {
|
||||||
|
document.querySelector(id).scrollIntoView({
|
||||||
|
behavior: 'smooth'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from '@/App.vue'
|
||||||
import router from './router'
|
import router from '@/router'
|
||||||
import { store } from './store'
|
import { store } from '@/store'
|
||||||
// import VueMeta from 'vue-meta'
|
// import VueMeta from 'vue-meta'
|
||||||
|
|
||||||
import '../scss/default.scss'
|
import '../scss/default.scss'
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
import { createRouter, createWebHistory } from 'vue-router'
|
import { createRouter, createWebHistory } from 'vue-router'
|
||||||
import Home from '../views/HomeView'
|
import Home from '@/views/HomeView'
|
||||||
import About from '../views/AboutView'
|
import About from '@/views/AboutView'
|
||||||
import Projects from '../views/ProjectsView'
|
import Projects from '@/views/ProjectsView'
|
||||||
import Project from '../views/ProjectView'
|
import Project from '@/views/ProjectView'
|
||||||
import Contact from '../views/ContactView'
|
import Contact from '@/views/ContactView'
|
||||||
import NotFound from '../views/NotFound'
|
import NotFound from '@/views/NotFound'
|
||||||
|
|
||||||
const mainTitle = 'kamilcraft.com'
|
const mainTitle = 'kamilcraft.com'
|
||||||
|
|
||||||
@@ -77,21 +77,6 @@ const router = createRouter({
|
|||||||
return { left: 0, top: 0 }
|
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
|
const title = ' :: ' + mainTitle
|
||||||
|
@@ -1,9 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="px-3 py-6">
|
<section class="flex flex-col px-3 py-6 md:flex-row items-start justify-center mx-auto gap-5">
|
||||||
<div class="flex flex-col md:flex-row items-start justify-center mx-auto gap-5">
|
<MailContact />
|
||||||
<MailContact />
|
<OtherContact />
|
||||||
<OtherContact />
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -11,8 +9,8 @@
|
|||||||
import { onMounted } from 'vue'
|
import { onMounted } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
import MailContact from '../components/sections/contacts/MailContact'
|
import MailContact from '@/components/sections/contacts/MailContact'
|
||||||
import OtherContact from '../components/sections/contacts/OtherContact'
|
import OtherContact from '@/components/sections/contacts/OtherContact'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
|
@@ -10,9 +10,9 @@
|
|||||||
import { onMounted, onUnmounted } from 'vue'
|
import { onMounted, onUnmounted } from 'vue'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import About from '../components/sections/AboutSection'
|
import About from '@/components/sections/AboutSection'
|
||||||
import ExperiencesSection from '../components/sections/ExperiencesSection'
|
import ExperiencesSection from '@/components/sections/ExperiencesSection'
|
||||||
import FavoriteProjects from '../components/sections/FavoriteProjects'
|
import FavoriteProjects from '@/components/sections/FavoriteProjects'
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, reactive, computed, onMounted, onUnmounted } from 'vue'
|
import { ref, reactive, computed, onMounted, onUnmounted } from 'vue'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
import SelectedProjects from '../components/SelectedProjects'
|
import SelectedProjects from '@/components/SelectedProjects'
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
|
|
||||||
|
@@ -1,6 +1,14 @@
|
|||||||
|
const path = require("path")
|
||||||
const { defineConfig } = require('@vue/cli-service')
|
const { defineConfig } = require('@vue/cli-service')
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
transpileDependencies: true
|
transpileDependencies: true,
|
||||||
|
configureWebpack: {
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@': path.resolve(__dirname, 'src/'),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user