This commit is contained in:
Kamil Niemczycki 2022-07-14 00:33:28 +02:00
parent cc9a4af7d0
commit 11c72a9389
Signed by: kamilniemczycki
GPG Key ID: 04D4E2012F969213
3 changed files with 43 additions and 48 deletions

View File

@ -1,29 +0,0 @@
<template>
<div class="hello">
<h1>{{ route.meta.title }}</h1>
<p>Witam na mojej stronie głównej. Wszystkich zainteresowanych oczywiście 😁</p>
</div>
</template>
<script setup>
import { useRoute } from 'vue-router'
const route = useRoute()
</script>
<style scoped lang="scss">
h1 {
margin: 30px 0 20px;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>

View File

@ -1,33 +1,35 @@
<template>
<div class="projects">
<div class="max-w-screen-xl mx-auto px-6 xl:px-2 py-11">
<slot />
<div class="container">
<div class="grid items-start grid-cols-2 gap-x-6 gap-y-5">
<div
v-for="project in projects"
:key="project.title.slug"
class="project"
class="grid grid-project relative bg-neutral-100"
>
<img
v-if="project.images.small"
class="project_image"
class="project-image w-[12.5rem] h-[12.5rem] object-cover"
:src="project.images.small"
:alt="project.title"
>
<img
v-else-if="project.images.large"
class="project_image"
class="project-image w-[12.5rem] h-[12.5rem] object-cover"
:src="project.images.large"
:alt="project.title"
>
<div class="project_content">
<h3 class="project_title">
<div class="p-3 h-[12.5rem] overflow-y-hidden after:absolute after:left-0 after:bottom-0 after:w-full after:h-full">
<header class="pb-2">
<h3 class="text-lg font-bold">
{{ project.title }}
</h3>
<div class="project_release">
{{ project.version }}
</div>
<div
class="project_description"
<p class="text-sm">
{{ project.project_version }}
</p>
</header>
<p
class="text-sm"
v-html="markdownToText(project)"
/>
</div>
@ -83,9 +85,27 @@ function markdownToText (project) {
}
</script>
<style lang="scss">
<style lang="scss" scoped>
@import "scss/media";
.grid-project {
grid-template-areas: 'image content';
grid-template-columns: 200px 1fr;
animation: load-project 2s forwards;
.project-image , .project-content {
object-position: top center;
}
.project-image {
grid-area: image;
}
.project-content {
grid-area: content;
}
}
.projects {
padding-top: 45px;
padding-bottom: 45px;

View File

@ -1,9 +1,13 @@
<template>
<section class="selected-projects">
<section class="bg-neutral-50">
<projects :projects="select_projects">
<div class="header-container">
<h2>Wybrane projekty</h2>
<p>Poniżej przedstawiam Państwu, wybraną przeze mnie, listę projektów.</p>
<div>
<h2 class="text-[2rem] mb-2">
Wybrane projekty
</h2>
<p class="mb-5">
Poniżej przedstawiam Państwu, wybraną przeze mnie, listę projektów.
</p>
</div>
</projects>
<div class="more-button">