Updated about me

This commit is contained in:
Kamil Niemczycki 2021-08-25 02:06:43 +02:00
parent 5e5a7538ec
commit b6190e63bb
4 changed files with 71 additions and 10 deletions

BIN
public/assets/me.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

View File

@ -1,5 +1,5 @@
<template> <template>
<button class="btn" :class="isReverse ? 'reverse' : ''"> <button class="btn" :class="{ reverse: isReverse }">
<font-awesome-icon class="icon" if="hasIcon" :icon="icon"/> <font-awesome-icon class="icon" if="hasIcon" :icon="icon"/>
<span><slot></slot></span> <span><slot></slot></span>
</button> </button>
@ -17,26 +17,40 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$btn-color: black; $btn-blue-color: #436DA7;
$btn-gray-color: #4f4f4f;
$hover-btn-color: white; $hover-btn-color: white;
.btn { .btn {
display: flex; display: flex;
min-width: 270px;
align-items: center; align-items: center;
justify-content: center;
padding: 8px 10px; padding: 8px 10px;
border: 1px solid #{$btn-color}; border: 3px solid $btn-gray-color;
background-color: transparent; background-color: transparent;
color: $btn-color; color: $btn-gray-color;
border-radius: 0; border-radius: 3px;
font-size: 1.05em;
.icon { .icon {
margin-right: 5px; margin-right: 10px;
font-size: 1.5em; font-size: 1.3em;
} }
&:hover { &:hover {
background-color: $btn-color; background-color: $btn-gray-color;
color: $hover-btn-color; 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>

View File

@ -7,12 +7,13 @@
<div class="tagline">Web Developer</div> <div class="tagline">Web Developer</div>
<p>I'm a software engineer specialised in frontend and backend development for complex scalable web apps. I write about software development on my blog. Want to know how I may help your project? Check out my project portfolio and online resume.</p> <p>I'm a software engineer specialised in frontend and backend development for complex scalable web apps. I write about software development on my blog. Want to know how I may help your project? Check out my project portfolio and online resume.</p>
<div class="buttons"> <div class="buttons">
<base-btn has-icon icon="portrait">Wyświetl portfolio</base-btn> <base-btn has-icon icon="portrait" is-reverse>Wyświetl portfolio</base-btn>
<base-btn has-icon icon="user">Więcej o mnie</base-btn>
</div> </div>
</div> </div>
<div id="grid-photo"> <div id="grid-photo">
<figure id="about-photo"> <figure id="about-photo">
<img :src="`${publicPath}assets/me.png`" /> <img :src="`${publicPath}assets/me.jpg`" />
</figure> </figure>
</div> </div>
</div> </div>
@ -38,12 +39,58 @@ div.about {
grid-template-areas: grid-template-areas:
'text text photo'; 'text text photo';
align-items: center; align-items: center;
#grid-text { #grid-text {
grid-area: text; grid-area: text;
text-align: left; text-align: left;
.buttons {
display: flex;
justify-content: flex-start;
padding: 10px 0;
.btn {
margin-right: 20px;
&:last-child {
margin-right: 0;
}
}
}
@media screen and (max-width: 900px) {
.buttons {
justify-content: center;
margin-bottom: 25px;
}
}
@media screen and (max-width: 600px) {
.buttons {
display: block;
margin-bottom: 25px;
.btn{
margin: 0 auto 20px;
&:last-child {
margin: 0 auto;
}
}
}
}
@media screen and (max-width: 400px) {
.buttons .btn {
min-width: unset;
width: 100%;
}
}
} }
#grid-photo { #grid-photo {
grid-area: photo; grid-area: photo;
#about-photo img {
border-radius: 50%;
}
} }
figure { figure {
text-align: center; text-align: center;