Compare commits
17 Commits
v1.0.0
...
a8b9dde13e
| Author | SHA1 | Date | |
|---|---|---|---|
|
a8b9dde13e
|
|||
| 0bd0d31947 | |||
| cf410d1ac3 | |||
| 7d3531f058 | |||
| b195b35c68 | |||
| 519bad5689 | |||
| 04ad8334ba | |||
| 39da77cf4c | |||
| 769fd6ae7d | |||
| 24415e7743 | |||
| 6c890d03d6 | |||
| 8f3649d141 | |||
| 76d8e59f40 | |||
| f3e7b18c34 | |||
| 49c153ee38 | |||
| 28aab6a68b | |||
| 423e610b1a |
@@ -1,3 +1,4 @@
|
|||||||
> 1%
|
> 1%
|
||||||
last 2 versions
|
last 2 versions
|
||||||
not dead
|
not dead
|
||||||
|
not ie 11
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
VUE_APP_TITLE=kamilcraft.com
|
VUE_APP_TITLE=kamilcraft.com
|
||||||
BASE_URL=http://127.0.0.1
|
VUE_APP_BASE_URL=http://127.0.0.1
|
||||||
|
VUE_APP_API_URL=https://api.kamilcraft.com
|
||||||
|
|||||||
@@ -4,12 +4,9 @@ module.exports = {
|
|||||||
node: true
|
node: true
|
||||||
},
|
},
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:vue/essential',
|
'eslint:recommended',
|
||||||
'@vue/standard'
|
'plugin:vue/vue3-recommended'
|
||||||
],
|
],
|
||||||
parserOptions: {
|
|
||||||
parser: 'babel-eslint'
|
|
||||||
},
|
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
||||||
|
|||||||
27927
package-lock.json
generated
27927
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
59
package.json
59
package.json
@@ -8,35 +8,40 @@
|
|||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
||||||
"@fortawesome/free-brands-svg-icons": "^5.15.4",
|
"@fortawesome/free-brands-svg-icons": "^6.1.1",
|
||||||
"@fortawesome/free-regular-svg-icons": "^5.15.4",
|
"@fortawesome/free-regular-svg-icons": "^6.1.1",
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
"@fortawesome/free-solid-svg-icons": "^6.1.1",
|
||||||
"@fortawesome/vue-fontawesome": "^2.0.2",
|
"@fortawesome/vue-fontawesome": "^3.0.1",
|
||||||
"bootstrap": "^5.0.2",
|
"core-js": "^3.8.3",
|
||||||
"core-js": "^3.15.2",
|
"vue": "^3.2.37",
|
||||||
"jquery": "^3.6.0",
|
|
||||||
"popper.js": "^1.16.1",
|
|
||||||
"vue": "^2.6.14",
|
|
||||||
"vue-meta": "^2.4.0",
|
"vue-meta": "^2.4.0",
|
||||||
"vue-router": "^3.5.2",
|
"vue-router": "^4.1.2",
|
||||||
"vuex": "^3.6.2"
|
"vuex": "^4.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "~4.5.0",
|
"@babel/core": "^7.12.16",
|
||||||
"@vue/cli-plugin-eslint": "^3.1.1",
|
"@babel/eslint-parser": "^7.12.16",
|
||||||
"@vue/cli-plugin-router": "~4.5.0",
|
"@vue/cli-plugin-babel": "~5.0.0",
|
||||||
"@vue/cli-service": "^4.5.13",
|
"@vue/cli-plugin-eslint": "~5.0.0",
|
||||||
"@vue/eslint-config-standard": "^5.1.2",
|
"@vue/cli-service": "~5.0.0",
|
||||||
"babel-eslint": "^10.1.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint": "^6.7.2",
|
"eslint-plugin-vue": "^8.0.3",
|
||||||
"eslint-plugin-import": "^2.20.2",
|
"sass": "^1.53.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"sass-loader": "^13.0.2"
|
||||||
"eslint-plugin-promise": "^4.2.1",
|
},
|
||||||
"eslint-plugin-standard": "^4.0.0",
|
"eslintConfig": {
|
||||||
"eslint-plugin-vue": "^6.2.2",
|
"root": true,
|
||||||
"sass": "^1.26.5",
|
"env": {
|
||||||
"sass-loader": "^8.0.2",
|
"node": true
|
||||||
"vue-template-compiler": "^2.6.11"
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:vue/vue3-essential",
|
||||||
|
"eslint:recommended"
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"parser": "@babel/eslint-parser"
|
||||||
|
},
|
||||||
|
"rules": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= VUE_APP_BASE_URL %>/favicon.ico">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&display=swap" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Thasadith&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Thasadith&display=swap" rel="stylesheet">
|
||||||
<title>KamilCraft.com</title>
|
<title>KamilCraft.com</title>
|
||||||
|
|||||||
107
scss/_btn.scss
107
scss/_btn.scss
@@ -1,3 +1,108 @@
|
|||||||
@mixin btn($revese: false) {
|
@import "colors";
|
||||||
|
|
||||||
|
$default-color: transparent !default;
|
||||||
|
$dark-gray: #4f4f4f !default;
|
||||||
|
$navy-blue: #436da7 !default;
|
||||||
|
$white: white !default;
|
||||||
|
|
||||||
|
$btn-colors: (
|
||||||
|
border: $dark-gray,
|
||||||
|
bg: $default-color,
|
||||||
|
font: $dark-gray,
|
||||||
|
hover: (
|
||||||
|
bg: $dark-gray,
|
||||||
|
font: $white
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
display: block;
|
||||||
|
min-width: 270px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
|
||||||
|
border-radius: 3px;
|
||||||
|
border-width: 3px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: $default-color;
|
||||||
|
|
||||||
|
background-color: map-get($btn-colors, bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin btn($colors: $btn-colors) {
|
||||||
|
border-color: map-get($colors, border);
|
||||||
|
background-color: map-get($colors, bg);
|
||||||
|
|
||||||
|
font-size: 1.05em;
|
||||||
|
color: map-get($colors, font);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
$hovers: map-get($colors, hover);
|
||||||
|
background-color: map-get($hovers, bg);
|
||||||
|
color: map-get($hovers, font);
|
||||||
|
}
|
||||||
|
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin btn-reverse($leading-color: $dark-gray) {
|
||||||
|
$colors: (
|
||||||
|
border: $leading-color,
|
||||||
|
bg: $leading-color,
|
||||||
|
font: $white,
|
||||||
|
hover: (
|
||||||
|
bg: $default-color,
|
||||||
|
font: $leading-color
|
||||||
|
)
|
||||||
|
);
|
||||||
|
@include btn($colors);
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin button($reverse: false, $has-icon: false) {
|
||||||
|
@if not $reverse {
|
||||||
|
@include btn()
|
||||||
|
} @else {
|
||||||
|
@include btn-reverse($navy-blue);
|
||||||
|
}
|
||||||
|
@if $has-icon {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
margin-right: 10px;
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin ghost-button($has-icon: false) {
|
||||||
|
@include button($has-icon: $has-icon);
|
||||||
|
|
||||||
|
position: relative;
|
||||||
|
font-size: 1.2em;
|
||||||
|
border: unset;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $default-color;
|
||||||
|
color: $dark-gray;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
width: 98%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 30%;
|
||||||
|
height: 2px;
|
||||||
|
background-color: $dark-gray;
|
||||||
|
transform: translateY(2px);
|
||||||
|
transition: width .3s linear;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
// default colors
|
// default colors
|
||||||
$gray: #fafafa;
|
$gray: #fafafa;
|
||||||
$dark-gray: #4f4f4f;
|
$dark-gray: #4f4f4f;
|
||||||
|
$navy-blue: #436da7 !default;
|
||||||
|
|
||||||
// default colors for style
|
// default colors for style
|
||||||
$text-color: #2c3e50;
|
$text-color: #2c3e50;
|
||||||
$bg-color: white;
|
$bg-color: white;
|
||||||
|
|
||||||
|
$white: white;
|
||||||
|
|||||||
34
scss/_media.scss
Normal file
34
scss/_media.scss
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
@mixin media($min-max, $reverse: false) {
|
||||||
|
$type: max-width;
|
||||||
|
@if $reverse {
|
||||||
|
$type: min-width;
|
||||||
|
$min-max: $min-max + 1;
|
||||||
|
}
|
||||||
|
@media screen and ($type: $min-max) {
|
||||||
|
@content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin media-mobile($reverse: false) {
|
||||||
|
@include media(480px, $reverse) {
|
||||||
|
@content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin media-tablet($reverse: false) {
|
||||||
|
@include media(768px, $reverse) {
|
||||||
|
@content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin media-small($reverse: false) {
|
||||||
|
@include media(1024px, $reverse) {
|
||||||
|
@content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin media-large($reverse: false) {
|
||||||
|
@include media(1200px, $reverse) {
|
||||||
|
@content
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,28 +1,42 @@
|
|||||||
|
@import "media";
|
||||||
@import "root";
|
@import "root";
|
||||||
@import "all";
|
@import "all";
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.8em;
|
font-size: 1.8em;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
line-height: 1.4em;
|
line-height: 1.4em;
|
||||||
|
|
||||||
&:not(&:last-of-type) {
|
&:not(&:last-of-type) {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
|
||||||
.loading {
|
|
||||||
height: 300px;
|
|
||||||
|
|
||||||
.loading-animation {
|
@include media-large {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-small {
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
height: 200px;
|
||||||
|
|
||||||
|
.loading_animation {
|
||||||
margin: 20px auto;
|
margin: 20px auto;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
@@ -32,8 +46,3 @@ p {
|
|||||||
animation: loading-animation 1s linear infinite;
|
animation: loading-animation 1s linear infinite;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 1200px) {
|
|
||||||
.container {
|
|
||||||
padding: 0 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<main rel="main" id="app">
|
||||||
<SiteHeader />
|
<SiteHeader />
|
||||||
<router-view />
|
<router-view />
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<button class="btn" :class="{ reverse: isReverse }">
|
<button class="btn" :class="{ 'btn-reverse': isReverse }">
|
||||||
<font-awesome-icon class="icon" v-if="hasIcon" :icon="icon"/>
|
<font-awesome-icon class="icon" v-if="hasIcon" :icon="icon"/>
|
||||||
<span><slot></slot></span>
|
<span><slot></slot></span>
|
||||||
</button>
|
</button>
|
||||||
@@ -17,40 +17,13 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
$btn-blue-color: #436DA7;
|
@import "scss/_btn";
|
||||||
$btn-gray-color: #4f4f4f;
|
|
||||||
$hover-btn-color: white;
|
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: flex;
|
@include button($has-icon: true);
|
||||||
min-width: 270px;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 8px 10px;
|
|
||||||
border: 3px solid $btn-gray-color;
|
|
||||||
background-color: transparent;
|
|
||||||
color: $btn-gray-color;
|
|
||||||
border-radius: 3px;
|
|
||||||
font-size: 1.05em;
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
margin-right: 10px;
|
|
||||||
font-size: 1.3em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
.btn-reverse {
|
||||||
background-color: $btn-gray-color;
|
@include button(true, true);
|
||||||
color: $hover-btn-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.reverse {
|
|
||||||
background-color: $btn-blue-color;
|
|
||||||
border-color: $btn-blue-color;
|
|
||||||
color: $hover-btn-color;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: transparent;
|
|
||||||
color: $btn-blue-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="footer-container">
|
<div class="footer_container">
|
||||||
<div class="logo">Kamil<span class="logo-element">Craft</span></div>
|
<div class="container_logo">Kamil<span class="logo_element">Craft</span></div>
|
||||||
<ul class="social-media">
|
<ul class="socials">
|
||||||
<li class="social-link"
|
<li class="social_link"
|
||||||
v-for="link in socialLinks"
|
v-for="link in socialLinks"
|
||||||
:key="link.title.slug">
|
:key="link.title.slug">
|
||||||
<a class="link"
|
<a class="link"
|
||||||
:href="link.link"
|
:href="link.link"
|
||||||
:title="link.title"
|
:title="link.title"
|
||||||
target="_blank">
|
target="_blank"
|
||||||
|
rel="noopener nofollow noreferrer">
|
||||||
<font-awesome-icon class="icon" :icon="['fab', link.icon]" />
|
<font-awesome-icon class="icon" :icon="['fab', link.icon]" />
|
||||||
<span class="title">{{ link.title }}</span>
|
<span class="social_title">{{ link.title }}</span>
|
||||||
|
<span class="social_shortcut">{{ link.shortcut }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -27,30 +29,31 @@
|
|||||||
background-color: #323232;
|
background-color: #323232;
|
||||||
padding: 35px 0;
|
padding: 35px 0;
|
||||||
|
|
||||||
&-container {
|
&_container {
|
||||||
@extend .container;
|
@extend .container;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
.logo {
|
.container_logo {
|
||||||
padding: 14px 20px 14px 40px;
|
padding: 14px 20px 14px 40px;
|
||||||
font-family: 'Thasadith', sans-serif;
|
font-family: 'Thasadith', sans-serif;
|
||||||
font-size: 2.5em;
|
font-size: 2.5em;
|
||||||
color: #D4D4D4;
|
color: #D4D4D4;
|
||||||
background-color: #5B5B5B;
|
background-color: #5B5B5B;
|
||||||
|
|
||||||
.logo-element {
|
.logo_element {
|
||||||
color: #A2CF00;
|
color: #A2CF00;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-media {
|
.socials {
|
||||||
display: flex;
|
display: flex;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
.social-link {
|
.social_link {
|
||||||
margin-right: 25px;
|
margin-right: 25px;
|
||||||
|
padding-right: 15px;
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -60,28 +63,43 @@
|
|||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 790px) {
|
.social_shortcut {
|
||||||
.title {
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-tablet {
|
||||||
|
.social_title {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social_shortcut {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-mobile {
|
||||||
|
.social_shortcut {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include media-mobile {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
@include media-tablet {
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media screen and (max-width: 500px) {
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
@include media-mobile {
|
||||||
padding: 15px 0;
|
padding: 15px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -93,8 +111,8 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
socialLinks: [
|
socialLinks: [
|
||||||
{ link: 'https://www.youtube.com/user/kamilniemczycki', icon: 'youtube', title: 'Oglądaj mnie na YouTube' },
|
{ link: 'https://www.youtube.com/user/kamilniemczycki', icon: 'youtube', title: 'Oglądaj mnie na YouTube', shortcut: 'YouTube' },
|
||||||
{ link: 'https://www.facebook.com/nikcamii', icon: 'facebook', title: 'Znajdź mnie na Facebooku' }
|
{ link: 'https://www.facebook.com/nikcamii', icon: 'facebook', title: 'Znajdź mnie na Facebooku', shortcut: 'Facebook' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,42 +19,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
$btn-gray-color: #4f4f4f;
|
@import "scss/btn";
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: flex;
|
@include ghost-button();
|
||||||
position: relative;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 8px 10px;
|
|
||||||
background-color: transparent;
|
|
||||||
color: $btn-gray-color;
|
|
||||||
font-size: 1.2em;
|
|
||||||
border: unset;
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
margin-right: 10px;
|
|
||||||
font-size: 1.3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
&::after {
|
|
||||||
width: 98%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
margin: 0 auto;
|
|
||||||
width: 30%;
|
|
||||||
height: 2px;
|
|
||||||
background-color: $btn-gray-color;
|
|
||||||
transform: translateY(2px);
|
|
||||||
transition: width .3s linear;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@import "scss/media";
|
||||||
|
|
||||||
.sub-page > .container .nav-btn,
|
.sub-page > .container .nav-btn,
|
||||||
.sub-page > .container .nav .site-menu .menu-element a:not([class|=router-link-exact]) {
|
.sub-page > .container .nav .site-menu .menu-element a:not([class|=router-link-exact]) {
|
||||||
color: #8D8D8D;
|
color: #8D8D8D;
|
||||||
@@ -89,10 +91,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 600px) {
|
@include media-tablet {
|
||||||
|
margin-left: 0;
|
||||||
|
|
||||||
.nav-btn {
|
.nav-btn {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-menu {
|
.site-menu {
|
||||||
display: none;
|
display: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -110,12 +115,13 @@
|
|||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-clicked {
|
.menu-clicked {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 600px) {
|
@include media-tablet {
|
||||||
.container {
|
.container {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
@@ -166,7 +172,7 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
clicked: false,
|
clicked: false,
|
||||||
publicPath: process.env.BASE_URL
|
publicPath: process.env.VUE_APP_BASE_URL + '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -5,13 +5,12 @@
|
|||||||
<div class="project"
|
<div class="project"
|
||||||
v-for="project in projects"
|
v-for="project in projects"
|
||||||
:key="project.title.slug">
|
:key="project.title.slug">
|
||||||
<img class="project-image" :src="project.image" :alt="project.title" />
|
<img v-if="project.images.small" class="project_image" :src="project.images.small" :alt="project.title" />
|
||||||
<div class="project-content">
|
<img v-else-if="project.images.large" class="project_image" :src="project.images.large" :alt="project.title" />
|
||||||
<h3 class="title">{{ project.title }}</h3>
|
<div class="project_content">
|
||||||
<div class="release">{{ project.version }}</div>
|
<h3 class="project_title">{{ project.title }}</h3>
|
||||||
<div class="description">
|
<div class="project_release">{{ project.version }}</div>
|
||||||
<p>{{ project.short_description }}</p>
|
<div class="project_description" v-html="markdownToText(project)"></div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="more-button">
|
<div class="more-button">
|
||||||
<base-btn has-icon
|
<base-btn has-icon
|
||||||
@@ -26,6 +25,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@import "scss/media";
|
||||||
|
|
||||||
.projects {
|
.projects {
|
||||||
padding-top: 45px;
|
padding-top: 45px;
|
||||||
padding-bottom: 45px;
|
padding-bottom: 45px;
|
||||||
@@ -48,27 +49,28 @@
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
animation: load-project 2s forwards;
|
animation: load-project 2s forwards;
|
||||||
|
|
||||||
.project-image {
|
.project_image {
|
||||||
grid-area: image;
|
grid-area: image;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
object-position: top center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-content {
|
.project_content {
|
||||||
grid-area: content;
|
grid-area: content;
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.title {
|
.project_title {
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.release {
|
.project_release {
|
||||||
font-size: .9em;
|
font-size: .9em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
@@ -90,7 +92,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 900px) {
|
@include media-tablet(true) {
|
||||||
.project {
|
.project {
|
||||||
.more-button {
|
.more-button {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -109,6 +111,7 @@
|
|||||||
&:hover {
|
&:hover {
|
||||||
background: rgba(0, 0, 0, .3);
|
background: rgba(0, 0, 0, .3);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
color: white;
|
color: white;
|
||||||
@@ -122,18 +125,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 900px) {
|
@include media-small {
|
||||||
.project {
|
.project {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
.project-image {
|
.project_image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 250px;
|
height: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-content {
|
.project_content {
|
||||||
height: auto;
|
height: 125px;
|
||||||
max-height: 250px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.more-button {
|
.more-button {
|
||||||
@@ -143,6 +145,7 @@
|
|||||||
height: auto;
|
height: auto;
|
||||||
left: unset;
|
left: unset;
|
||||||
top: unset;
|
top: unset;
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -166,7 +169,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@include media-tablet {
|
||||||
.projects .container {
|
.projects .container {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
padding: 25px;
|
padding: 25px;
|
||||||
@@ -178,6 +181,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import BaseButton from './BaseButton'
|
import BaseButton from './BaseButton'
|
||||||
|
import { marked } from 'marked'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SelectedProjects',
|
name: 'SelectedProjects',
|
||||||
@@ -188,12 +192,19 @@ export default {
|
|||||||
const header = {
|
const header = {
|
||||||
title: this.$route.meta.title,
|
title: this.$route.meta.title,
|
||||||
description: [
|
description: [
|
||||||
'Witam Państwa na podstronie z moimi projektami!',
|
'Witam Państwa na podstronie z moimi projektami!'
|
||||||
'Lista i treść jest niekompletna! (BETA)'
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
this.$store.commit('setHeader', header)
|
this.$store.commit('setHeader', header)
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
markdownToText (project) {
|
||||||
|
const projectText = marked.parse(project.description)
|
||||||
|
const nodeElement = document.createElement('div')
|
||||||
|
nodeElement.innerHTML = projectText
|
||||||
|
return nodeElement.querySelector('p').innerText.substr(0, 350)
|
||||||
|
}
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
projects: {
|
projects: {
|
||||||
type: Array
|
type: Array
|
||||||
|
|||||||
@@ -28,6 +28,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@import "scss/media";
|
||||||
|
|
||||||
.about {
|
.about {
|
||||||
background-color: var(--gray-color) !important;
|
background-color: var(--gray-color) !important;
|
||||||
|
|
||||||
@@ -66,7 +68,7 @@
|
|||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@include media-tablet {
|
||||||
margin: 0 auto 15px;
|
margin: 0 auto 15px;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
@@ -75,18 +77,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 900px) {
|
@include media-small {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@include media-tablet {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 400px) {
|
@include media-mobile() {
|
||||||
.buttons .btn,
|
.buttons .btn,
|
||||||
.buttons a {
|
.buttons a {
|
||||||
min-width: unset;
|
min-width: unset;
|
||||||
@@ -110,7 +112,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 900px) {
|
@include media-small {
|
||||||
#grid {
|
#grid {
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
@@ -126,7 +128,7 @@ import BaseButton from '../BaseButton'
|
|||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
publicPath: process.env.BASE_URL
|
publicPath: process.env.VUE_APP_BASE_URL + '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -159,6 +159,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@import "scss/media";
|
||||||
|
|
||||||
.experiences {
|
.experiences {
|
||||||
.container {
|
.container {
|
||||||
padding-top: 45px;
|
padding-top: 45px;
|
||||||
@@ -212,13 +214,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1100px) {
|
@include media-small {
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 800px) {
|
@include media-tablet {
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 550px) {
|
@include media-mobile {
|
||||||
grid-template-columns: repeat(1, 1fr);
|
grid-template-columns: repeat(1, 1fr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</projects>
|
</projects>
|
||||||
<div class="more-button">
|
<div class="more-button">
|
||||||
<GhostButton @click.native="$router.push('projects')">
|
<GhostButton @click.native="$router.push('projects')">
|
||||||
RESZTA PROJEKTÓW
|
ZOBACZ WIĘCEJ
|
||||||
</GhostButton>
|
</GhostButton>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -22,7 +22,7 @@ export default {
|
|||||||
name: 'FavoriteProjects',
|
name: 'FavoriteProjects',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
publicPath: process.env.BASE_URL,
|
publicPath: process.env.VUE_APP_BASE_URL + '/',
|
||||||
select_projects: []
|
select_projects: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -31,7 +31,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadProjectList () {
|
loadProjectList () {
|
||||||
fetch('https://api.kamilcraft.com/projects/category/selected')
|
fetch(process.env.VUE_APP_API_URL + '/projects?category=selected')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
this.select_projects = data
|
this.select_projects = data
|
||||||
@@ -57,12 +57,12 @@ export default {
|
|||||||
.btn {
|
.btn {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@include media-tablet {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@include media-tablet {
|
||||||
padding: 0 25px;
|
padding: 0 25px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="contact-container" style="flex-basis: 500px;">
|
<div class="contact_container">
|
||||||
<div class="message-status"></div>
|
<div class="message"></div>
|
||||||
<header class="head">Formularz kontaktowy:</header>
|
<header class="container_head">Formularz kontaktowy:</header>
|
||||||
<form id="form-point" @submit="formSubmit">
|
<form id="form-point" @submit="formSubmit">
|
||||||
<input v-model="emailValue" class="contact-input" type="text" name="email" placeholder="Twój adres e-mail." />
|
<input v-model="emailValue" class="contact_input" type="text" name="email" placeholder="Twój adres e-mail." />
|
||||||
<textarea v-model="messageValue" class="contact-input" name="message" placeholder="Twoja wiadomość."></textarea>
|
<textarea v-model="messageValue" class="contact_input" name="message" placeholder="Twoja wiadomość."></textarea>
|
||||||
<input v-model="senderValue" class="contact-input" type="text" name="sender" placeholder="Twój podpis." />
|
<input v-model="senderValue" class="contact_input" type="text" name="sender" placeholder="Twój podpis." />
|
||||||
<input :disabled="buttonDisabled" class="contact-input" type="submit" value="Wyślij"/>
|
<base-btn is-reverse :disabled="buttonDisabled">Wyślij</base-btn>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import BaseButton from '../../BaseButton'
|
||||||
|
|
||||||
function emailValidate (mailObj) {
|
function emailValidate (mailObj) {
|
||||||
const mailFormat = /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/
|
const mailFormat = /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/
|
||||||
return !!mailObj.value.match(mailFormat)
|
return !!mailObj.value.match(mailFormat)
|
||||||
@@ -43,41 +45,44 @@ export default {
|
|||||||
senderValue: ''
|
senderValue: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
components: {
|
||||||
|
'base-btn': BaseButton
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
emailValue (value) {
|
emailValue (value) {
|
||||||
if (this.statusError > 0 && emailValidate(this.email)) {
|
if (this.statusError > 0 && emailValidate(this.email)) {
|
||||||
this.email.classList.remove('error')
|
this.email.classList.remove('contact_input-error')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
messageValue (value) {
|
messageValue (value) {
|
||||||
if (this.statusError > 0 && value !== '') {
|
if (this.statusError > 0 && value !== '') {
|
||||||
this.message.classList.remove('error')
|
this.message.classList.remove('contact_input-error')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
senderValue (value) {
|
senderValue (value) {
|
||||||
if (this.statusError > 0 && value !== '') {
|
if (this.statusError > 0 && value !== '') {
|
||||||
this.sender.classList.remove('error')
|
this.sender.classList.remove('contact_input-error')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clearErrors () {
|
clearErrors () {
|
||||||
this.statusError = 0
|
this.statusError = 0
|
||||||
this.email.classList.remove('error')
|
this.email.classList.remove('contact_input-error')
|
||||||
this.message.classList.remove('error')
|
this.message.classList.remove('contact_input-error')
|
||||||
this.sender.classList.remove('error')
|
this.sender.classList.remove('contact_input-error')
|
||||||
},
|
},
|
||||||
checkForm () {
|
checkForm () {
|
||||||
if (!emailValidate(this.email)) {
|
if (!emailValidate(this.email)) {
|
||||||
this.email.classList.add('error')
|
this.email.classList.add('contact_input-error')
|
||||||
this.statusError++
|
this.statusError++
|
||||||
}
|
}
|
||||||
if (this.message.value === '') {
|
if (this.message.value === '') {
|
||||||
this.message.classList.add('error')
|
this.message.classList.add('contact_input-error')
|
||||||
this.statusError++
|
this.statusError++
|
||||||
}
|
}
|
||||||
if (this.sender.value === '') {
|
if (this.sender.value === '') {
|
||||||
this.sender.classList.add('error')
|
this.sender.classList.add('contact_input-error')
|
||||||
this.statusError++
|
this.statusError++
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -91,8 +96,8 @@ export default {
|
|||||||
this.clearErrors()
|
this.clearErrors()
|
||||||
this.checkForm()
|
this.checkForm()
|
||||||
|
|
||||||
const messageElement = document.querySelector('.message-status')
|
const messageElement = document.querySelector('.message')
|
||||||
messageElement.classList.remove('message-status__ok', 'message-status__error')
|
messageElement.classList.remove('message_ok', 'message_error')
|
||||||
|
|
||||||
if (this.statusError === 0) {
|
if (this.statusError === 0) {
|
||||||
this.buttonDisabled = true
|
this.buttonDisabled = true
|
||||||
@@ -102,7 +107,7 @@ export default {
|
|||||||
sender: this.senderValue
|
sender: this.senderValue
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
messageElement.classList.add(
|
messageElement.classList.add(
|
||||||
result.error ? 'message-status__error' : 'message-status__ok'
|
result.error ? 'message_error' : 'message_ok'
|
||||||
)
|
)
|
||||||
|
|
||||||
messageElement.textContent = result.message
|
messageElement.textContent = result.message
|
||||||
@@ -113,7 +118,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.buttonDisabled = false
|
this.buttonDisabled = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
messageElement.classList.add('message-status__error')
|
messageElement.classList.add('message_error')
|
||||||
messageElement.textContent = 'Wystąpił błąd podczas wysyłania wiadomości. Proszę spróbować później.'
|
messageElement.textContent = 'Wystąpił błąd podczas wysyłania wiadomości. Proszę spróbować później.'
|
||||||
this.buttonDisabled = false
|
this.buttonDisabled = false
|
||||||
})
|
})
|
||||||
@@ -124,29 +129,33 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.contact-container {
|
@import "scss/media";
|
||||||
margin: 10px;
|
|
||||||
max-width: 500px;
|
|
||||||
background-color: #eaeaea;
|
|
||||||
border: 2px solid #dadada;
|
|
||||||
border-radius: 2px;
|
|
||||||
box-shadow: 0 0 5px rgba(0, 0, 0, .2);
|
|
||||||
|
|
||||||
header.head {
|
.contact_container {
|
||||||
|
flex-basis: 500px;
|
||||||
|
|
||||||
|
#form-point {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 97%;
|
||||||
|
margin: 0 20px 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.container_head {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
form#form-point {
|
.contact_container input, .contact_container textarea {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.contact-container input, .contact-container textarea {
|
|
||||||
width: 97%;
|
width: 97%;
|
||||||
|
max-width: 97%;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-bottom: 2px solid #c9c9c9;
|
border-bottom: 2px solid #c9c9c9;
|
||||||
padding: 10px 10px 8px;
|
padding: 10px 10px 8px;
|
||||||
@@ -156,64 +165,54 @@ export default {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
input.contact-input:focus, textarea.contact-input:focus {
|
|
||||||
|
.contact_input:focus, .contact_input:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: black;
|
border-color: black;
|
||||||
}
|
}
|
||||||
textarea.contact-input {
|
|
||||||
|
textarea.contact_input {
|
||||||
max-width: 97%;
|
max-width: 97%;
|
||||||
min-width: 97%;
|
min-width: 97%;
|
||||||
min-height: 150px;
|
min-height: 150px;
|
||||||
}
|
}
|
||||||
input.error, textarea.error {
|
|
||||||
|
.contact_input-error, .contact_input-error {
|
||||||
background-color: #ffc3b0;
|
background-color: #ffc3b0;
|
||||||
border-color: #ff865f;
|
border-color: #ff865f;
|
||||||
color: #c90000;
|
color: #c90000;
|
||||||
}
|
}
|
||||||
input.error::placeholder, textarea.error::placeholder {
|
|
||||||
|
.contact_input-error::placeholder, .contact_input-error::placeholder {
|
||||||
color: #c9000094;
|
color: #c9000094;
|
||||||
}
|
}
|
||||||
input[type="submit"].contact-input {
|
|
||||||
appearance: unset;
|
input[disabled].contact_input {
|
||||||
color: white;
|
|
||||||
background-color: #4CAF50;
|
|
||||||
border-bottom: 2px solid #387d3b;
|
|
||||||
}
|
|
||||||
input[type="submit"].contact-input:hover {
|
|
||||||
box-shadow: 0 0 8px rgba(0,0,0,.4);
|
|
||||||
}
|
|
||||||
input[disabled].contact-input {
|
|
||||||
background-color: #cdcdcd;
|
background-color: #cdcdcd;
|
||||||
border-color: gray;
|
border-color: gray;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
.message-status {
|
|
||||||
|
.message {
|
||||||
display: none;
|
display: none;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
.message-status__ok, .message-status__error {
|
|
||||||
|
.message_ok, .message_error {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.message-status__ok {
|
|
||||||
|
.message_ok {
|
||||||
background-color: #4CAF50;
|
background-color: #4CAF50;
|
||||||
border: 1px solid #387d3b;
|
border: 1px solid #387d3b;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
.message-status__error {
|
|
||||||
|
.message_error {
|
||||||
background-color: #ffc3b0;
|
background-color: #ffc3b0;
|
||||||
border: 1px solid #ff865f;
|
border: 1px solid #ff865f;
|
||||||
color: #c90000;
|
color: #c90000;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 800px) {
|
|
||||||
.contact-elements {
|
|
||||||
display: block;
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
#instagram, #facebook, #twitter, #email, #gg {
|
|
||||||
font-size: 1em;
|
|
||||||
line-height: 1.2em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,25 +1,43 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="contact-container" style="flex-basis: 410px">
|
<div class="contact_info">
|
||||||
<header class="head">Inne formy kontaktu:</header>
|
<header class="info_head">Inne formy kontaktu:</header>
|
||||||
<div class="contact-element">
|
<div class="contact_element">
|
||||||
<img class="contact-element-icon" src="/assets/img/instagram.jpg" />
|
<img class="contact_element_icon"
|
||||||
<span id="instagram"><a href="https://www.instagram.com/nikcamii/" target="_blank">Instagram: @NiKCamii</a></span>
|
src="/assets/img/instagram.jpg" />
|
||||||
|
<span id="instagram" class="contact_element_text">
|
||||||
|
<a href="https://www.instagram.com/nikcamii/"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener nofollow noreferrer">Instagram: @NiKCamii</a>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="contact-element">
|
<div class="contact_element">
|
||||||
<img class="contact-element-icon" src="/assets/img/facebook.jpg" />
|
<img class="contact_element_icon" src="/assets/img/facebook.jpg" />
|
||||||
<span id="facebook"><a href="https://www.facebook.com/nikcamii/" target="_blank">Facebook: @NiKCamii</a></span>
|
<span id="facebook" class="contact_element_text">
|
||||||
|
<a href="https://www.facebook.com/nikcamii/"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener nofollow noreferrer">Facebook: @NiKCamii</a>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="contact-element">
|
<div class="contact_element">
|
||||||
<img class="contact-element-icon" src="/assets/img/twitter.jpg" />
|
<img class="contact_element_icon"
|
||||||
<span id="twitter"><a href="https://twitter.com/nikcamii" target="_blank">Twitter: @NiKCamii</a></span>
|
src="/assets/img/twitter.jpg" />
|
||||||
|
<span id="twitter" class="contact_element_text">
|
||||||
|
<a href="https://twitter.com/nikcamii"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener nofollow noreferrer">Twitter: @NiKCamii</a>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="contact-element">
|
<div class="contact_element">
|
||||||
<img class="contact-element-icon" src="/assets/img/gg.png" />
|
<img class="contact_element_icon"
|
||||||
<span id="gg">GG: 38429969</span>
|
src="/assets/img/gg.png" />
|
||||||
|
<span id="gg" class="contact_element_text">GG: 38429969</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="contact-element">
|
<div class="contact_element">
|
||||||
<img class="contact-element-icon" src="/assets/img/user.jpg" />
|
<img class="contact_element_icon"
|
||||||
<span id="email"><a href="mailto:contact@kamilcraft.com">Email: contact@kamilcraft.com</a></span>
|
src="/assets/img/user.jpg" />
|
||||||
|
<span id="email" class="contact_element_text">
|
||||||
|
<a href="mailto:contact@kamilcraft.com">Email: contact@kamilcraft.com</a>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -31,28 +49,20 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.contact-container {
|
@import "scss/media";
|
||||||
margin: 10px;
|
|
||||||
max-width: 500px;
|
|
||||||
background-color: #eaeaea;
|
|
||||||
border: 2px solid #dadada;
|
|
||||||
border-radius: 2px;
|
|
||||||
box-shadow: 0 0 5px rgba(0, 0, 0, .2);
|
|
||||||
|
|
||||||
header.head {
|
.contact_info {
|
||||||
|
flex-basis: 410px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info_head {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
form#form-point {
|
.contact_element {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.contact-element {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
@@ -71,9 +81,8 @@ export default {
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.contact-element-icon {
|
&_icon {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 1px solid #e2e2e2;
|
border: 1px solid #e2e2e2;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
@@ -82,12 +91,13 @@ export default {
|
|||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
#instagram, #facebook, #twitter, #email, #gg {
|
&_text{
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#instagram {
|
#instagram {
|
||||||
background: linear-gradient(120deg, #e99311, #8738b8);
|
background: linear-gradient(120deg, #e99311, #8738b8);
|
||||||
@@ -110,4 +120,11 @@ export default {
|
|||||||
#gg {
|
#gg {
|
||||||
color: #ffa214;
|
color: #ffa214;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include media-tablet {
|
||||||
|
#instagram, #facebook, #twitter, #email, #gg {
|
||||||
|
font-size: 1em;
|
||||||
|
line-height: 1.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -64,13 +64,16 @@ const routes = [
|
|||||||
{
|
{
|
||||||
path: '*',
|
path: '*',
|
||||||
name: '404',
|
name: '404',
|
||||||
|
meta: {
|
||||||
|
title: 'Błąd 404'
|
||||||
|
},
|
||||||
component: NotFound
|
component: NotFound
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
mode: 'history',
|
mode: 'history',
|
||||||
base: process.env.BASE_URL ?? '/',
|
base: '/',
|
||||||
routes,
|
routes,
|
||||||
scrollBehavior (to, from, savedPosition) {
|
scrollBehavior (to, from, savedPosition) {
|
||||||
if (savedPosition) {
|
if (savedPosition) {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const moduleSettings = {
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
fetchProjects (store) {
|
fetchProjects (store) {
|
||||||
return fetch('https://api.kamilcraft.com/projects')
|
return fetch(process.env.VUE_APP_API_URL + '/projects')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
store.commit('setProjects', data)
|
store.commit('setProjects', data)
|
||||||
@@ -33,7 +33,7 @@ const moduleSettings = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
fetchCategories (store) {
|
fetchCategories (store) {
|
||||||
return fetch('https://api.kamilcraft.com/categories')
|
return fetch(process.env.VUE_APP_API_URL + '/categories')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
store.commit('setCategories', data)
|
store.commit('setCategories', data)
|
||||||
|
|||||||
@@ -15,7 +15,10 @@
|
|||||||
</p>
|
</p>
|
||||||
<h3>Kursy</h3>
|
<h3>Kursy</h3>
|
||||||
<p>W ramach studiów uzyskałem zaświadczenie dotyczące ukończenia kursu:
|
<p>W ramach studiów uzyskałem zaświadczenie dotyczące ukończenia kursu:
|
||||||
<a :href="publicPath + 'download/certyfikat-laravel.pdf'"><strong>Architektura aplikacji internetowych opartych o framework Laravel</strong></a>.</p>
|
<strong><a :href="publicPath + 'download/certyfikat-laravel.pdf'"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener nofollow noreferrer">
|
||||||
|
Architektura aplikacji internetowych opartych o framework Laravel</a></strong>.</p>
|
||||||
<p>Umożliwiło mi to szersze spojrzenie na możliwości jakie daje nam Laravel i wzbogaconie poprzednio zdobytej
|
<p>Umożliwiło mi to szersze spojrzenie na możliwości jakie daje nam Laravel i wzbogaconie poprzednio zdobytej
|
||||||
wiedzy o nowe doświadczenia.</p>
|
wiedzy o nowe doświadczenia.</p>
|
||||||
<h2>Moje zainteresowania</h2>
|
<h2>Moje zainteresowania</h2>
|
||||||
@@ -60,7 +63,7 @@ export default {
|
|||||||
name: 'About',
|
name: 'About',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
publicPath: process.env.BASE_URL
|
publicPath: process.env.VUE_APP_BASE_URL + '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@import "scss/media";
|
||||||
|
|
||||||
.contact {
|
.contact {
|
||||||
padding: 25px 0;
|
padding: 25px 0;
|
||||||
|
|
||||||
@@ -37,12 +39,21 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 940px) {
|
.contact_container, .contact_info {
|
||||||
|
margin: 10px;
|
||||||
|
max-width: 500px;
|
||||||
|
background-color: #eaeaea;
|
||||||
|
border: 2px solid #dadada;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: 0 0 5px rgba(0, 0, 0, .2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-tablet {
|
||||||
.container {
|
.container {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
.contact-container {
|
.contact_container, .contact_info {
|
||||||
margin: 0 auto 25px;
|
margin: 0 auto 25px;
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
@@ -50,11 +61,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 640px) {
|
@include media-mobile {
|
||||||
.container {
|
.container {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
|
||||||
.contact-container {
|
.contact_container {
|
||||||
max-width: unset;
|
max-width: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default {
|
|||||||
name: 'Home',
|
name: 'Home',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
publicPath: process.env.BASE_URL,
|
publicPath: process.env.VUE_APP_BASE_URL + '/',
|
||||||
select_projects: []
|
select_projects: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,35 +1,37 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="project" v-if="project">
|
<section class="project" v-if="project">
|
||||||
<header class="project-header">
|
<header class="project_header">
|
||||||
<h1>{{ project.title }}</h1>
|
<h1>{{ project.title }}</h1>
|
||||||
<ul class="project-info">
|
<ul class="project_info">
|
||||||
<li class="info-text">
|
<li class="info_text">
|
||||||
<font-awesome-icon class="icon" :icon="['far', 'clock']"/>
|
<font-awesome-icon class="icon" :icon="['far', 'clock']"/>
|
||||||
<span>{{ project.release_data }}</span>
|
<span>{{ project.release_date }}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="info-text">
|
<li class="info_text">
|
||||||
<font-awesome-icon class="icon" :icon="['far', 'user']"/>
|
<font-awesome-icon class="icon" :icon="['far', 'user']"/>
|
||||||
<span>{{ project.author }}</span>
|
<span>{{ project.author }}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="info-text">
|
<li class="info_text">
|
||||||
<font-awesome-icon class="icon" :icon="['far', 'folder']"/>
|
<font-awesome-icon class="icon" :icon="['far', 'folder']"/>
|
||||||
<span>{{ getCategoryName(project.categories)[0] }}</span>
|
<span>{{ getCategoryName(project.categories)[0] }}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="info-text">
|
<li class="info_text">
|
||||||
<font-awesome-icon class="icon" :icon="['fas', 'code-branch']"/>
|
<font-awesome-icon class="icon" :icon="['fas', 'code-branch']"/>
|
||||||
<span>{{ project.version }}</span>
|
<span>{{ project.project_version }}</span>
|
||||||
|
</li>
|
||||||
|
<li class="info_text" v-if="project.project_url">
|
||||||
|
<font-awesome-icon class="icon" :icon="['fas', 'link']"/>
|
||||||
|
<span><a :href="project.project_url"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener nofollow noreferrer">Link</a></span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</header>
|
</header>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<component :is="`figure`" class="project-photo">
|
<component :is="`figure`" class="project-photo">
|
||||||
<img :src="`${publicPath}${project.image}`" :alt="project.title">
|
<img :src="`${project.images.large}`" :alt="project.title">
|
||||||
</component>
|
</component>
|
||||||
<div class="content">
|
<div class="content" v-html="markdownToHtml"></div>
|
||||||
<p v-for="(description, key) in project.description.split('\n')" :key="key">
|
|
||||||
{{ description }}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div v-else class="loading">
|
<div v-else class="loading">
|
||||||
@@ -38,6 +40,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { marked } from 'marked'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Project',
|
name: 'Project',
|
||||||
data () {
|
data () {
|
||||||
@@ -55,6 +59,9 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
getCategories () {
|
getCategories () {
|
||||||
return this.$store.getters.getCategories
|
return this.$store.getters.getCategories
|
||||||
|
},
|
||||||
|
markdownToHtml () {
|
||||||
|
return marked.parse(this.project.description)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -69,7 +76,7 @@ export default {
|
|||||||
return categoriesText
|
return categoriesText
|
||||||
},
|
},
|
||||||
loadProject (id) {
|
loadProject (id) {
|
||||||
fetch('https://api.kamilcraft.com/projects/' + id)
|
fetch(process.env.VUE_APP_API_URL + '/project/' + id)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
this.project = data
|
this.project = data
|
||||||
@@ -79,11 +86,11 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss">
|
||||||
@import "scss/default";
|
@import "scss/default";
|
||||||
|
|
||||||
.project {
|
.project {
|
||||||
.project-header {
|
.project_header {
|
||||||
@extend .container;
|
@extend .container;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
@@ -94,12 +101,12 @@ export default {
|
|||||||
line-height: 2.4em;
|
line-height: 2.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-info {
|
.project_info {
|
||||||
display: flex;
|
display: flex;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.info-text {
|
.info_text {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
@@ -109,13 +116,14 @@ export default {
|
|||||||
|
|
||||||
span {
|
span {
|
||||||
font-weight: lighter;
|
font-weight: lighter;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(&:last-child) {
|
&:not(&:last-child) {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 560px) {
|
@include media-tablet {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
row-gap: 15px;
|
row-gap: 15px;
|
||||||
@@ -147,16 +155,72 @@ export default {
|
|||||||
.content {
|
.content {
|
||||||
margin: 35px 0;
|
margin: 35px 0;
|
||||||
|
|
||||||
p {
|
a {
|
||||||
text-align: justify;
|
color: #8D8D8D;
|
||||||
text-indent: 1.5em;
|
|
||||||
line-height: 1.8em;
|
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
&:hover {
|
||||||
font-size: 1em;
|
color: #A2CF00;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h2, h3 {
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2:first-of-type {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
p, ol li, ul li {
|
||||||
|
line-height: 1.8em;
|
||||||
|
font-size: 1.1em;
|
||||||
|
|
||||||
|
@include media-tablet {
|
||||||
|
font-size: 1.2em;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p + ol, p + ul, p + blockquote {
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol, ul {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding-inline-start: 2.1em;
|
||||||
|
|
||||||
|
li img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 5px 5px;
|
||||||
|
margin-top: .9em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
text-align: justify;
|
||||||
|
/* text-indent: 1.5em; */
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
padding-left: 25px;
|
||||||
|
margin-left: 1.3em;
|
||||||
|
border-left: 1px solid rgb(116, 116, 116);
|
||||||
|
|
||||||
|
p {
|
||||||
|
text-indent: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="category-menu">
|
<div class="project_categories">
|
||||||
<ul class="categories">
|
<ul class="categories">
|
||||||
<li class="category"
|
<li class="categories_element"
|
||||||
v-for="category in getCategories"
|
v-for="category in getCategories"
|
||||||
:key="category.slug"
|
:key="category.slug"
|
||||||
:class="{ 'category-active': categories.active === category.slug }"
|
:class="{ 'categories_element-active': categories.active === category.slug }"
|
||||||
@click="changeCategory(category.slug)">
|
@click="changeCategory(category.slug)">
|
||||||
<a :title="`Kategoria ${category.name}`">{{ category.name }}</a>
|
<a :title="`Kategoria ${category.name}`">{{ category.name }}</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -13,13 +13,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<projects :projects="projects" />
|
<projects :projects="projects" />
|
||||||
<div v-if="projects.length === 0" class="loading">
|
<div v-if="projects.length === 0" class="loading">
|
||||||
<div class="loading-animation"></div>
|
<div class="loading_animation"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.category-menu {
|
@import "scss/media";
|
||||||
|
|
||||||
|
.project_categories {
|
||||||
padding-top: 45px;
|
padding-top: 45px;
|
||||||
|
|
||||||
.categories {
|
.categories {
|
||||||
@@ -27,7 +29,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
.category {
|
.categories_element {
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-right: 25px;
|
margin-right: 25px;
|
||||||
@@ -59,7 +61,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 450px) {
|
@include media-mobile {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -100,7 +102,7 @@ export default {
|
|||||||
categories: {
|
categories: {
|
||||||
active: 'all'
|
active: 'all'
|
||||||
},
|
},
|
||||||
publicPath: process.env.BASE_URL,
|
publicPath: process.env.VUE_APP_BASE_URL + '/',
|
||||||
projects: []
|
projects: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -120,9 +122,9 @@ export default {
|
|||||||
async loadAllData () {
|
async loadAllData () {
|
||||||
await this.$store.dispatch('fetchCategories')
|
await this.$store.dispatch('fetchCategories')
|
||||||
await this.$store.dispatch('fetchProjects').then(projects => {
|
await this.$store.dispatch('fetchProjects').then(projects => {
|
||||||
projects.sort((firstProduct, secondProduct) => {
|
/* projects.sort((firstProduct, secondProduct) => {
|
||||||
return secondProduct.id - firstProduct.id
|
return secondProduct.id - firstProduct.id
|
||||||
})
|
}) */
|
||||||
this.projects = projects
|
this.projects = projects
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: process.env.NODE_ENV === 'production'
|
publicPath: '/',
|
||||||
? '/beta/'
|
devServer: {
|
||||||
: '/'
|
disableHostCheck: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user