WIP
This commit is contained in:
parent
cc9a4af7d0
commit
11c72a9389
@ -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>
|
|
@ -1,33 +1,35 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="projects">
|
<div class="max-w-screen-xl mx-auto px-6 xl:px-2 py-11">
|
||||||
<slot />
|
<slot />
|
||||||
<div class="container">
|
<div class="grid items-start grid-cols-2 gap-x-6 gap-y-5">
|
||||||
<div
|
<div
|
||||||
v-for="project in projects"
|
v-for="project in projects"
|
||||||
:key="project.title.slug"
|
:key="project.title.slug"
|
||||||
class="project"
|
class="grid grid-project relative bg-neutral-100"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
v-if="project.images.small"
|
v-if="project.images.small"
|
||||||
class="project_image"
|
class="project-image w-[12.5rem] h-[12.5rem] object-cover"
|
||||||
:src="project.images.small"
|
:src="project.images.small"
|
||||||
:alt="project.title"
|
:alt="project.title"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
v-else-if="project.images.large"
|
v-else-if="project.images.large"
|
||||||
class="project_image"
|
class="project-image w-[12.5rem] h-[12.5rem] object-cover"
|
||||||
:src="project.images.large"
|
:src="project.images.large"
|
||||||
:alt="project.title"
|
:alt="project.title"
|
||||||
>
|
>
|
||||||
<div class="project_content">
|
<div class="p-3 h-[12.5rem] overflow-y-hidden after:absolute after:left-0 after:bottom-0 after:w-full after:h-full">
|
||||||
<h3 class="project_title">
|
<header class="pb-2">
|
||||||
{{ project.title }}
|
<h3 class="text-lg font-bold">
|
||||||
</h3>
|
{{ project.title }}
|
||||||
<div class="project_release">
|
</h3>
|
||||||
{{ project.version }}
|
<p class="text-sm">
|
||||||
</div>
|
{{ project.project_version }}
|
||||||
<div
|
</p>
|
||||||
class="project_description"
|
</header>
|
||||||
|
<p
|
||||||
|
class="text-sm"
|
||||||
v-html="markdownToText(project)"
|
v-html="markdownToText(project)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -83,9 +85,27 @@ function markdownToText (project) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
@import "scss/media";
|
@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 {
|
.projects {
|
||||||
padding-top: 45px;
|
padding-top: 45px;
|
||||||
padding-bottom: 45px;
|
padding-bottom: 45px;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="selected-projects">
|
<section class="bg-neutral-50">
|
||||||
<projects :projects="select_projects">
|
<projects :projects="select_projects">
|
||||||
<div class="header-container">
|
<div>
|
||||||
<h2>Wybrane projekty</h2>
|
<h2 class="text-[2rem] mb-2">
|
||||||
<p>Poniżej przedstawiam Państwu, wybraną przeze mnie, listę projektów.</p>
|
Wybrane projekty
|
||||||
|
</h2>
|
||||||
|
<p class="mb-5">
|
||||||
|
Poniżej przedstawiam Państwu, wybraną przeze mnie, listę projektów.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</projects>
|
</projects>
|
||||||
<div class="more-button">
|
<div class="more-button">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user