Skip to content

Commit

Permalink
Add complete article
Browse files Browse the repository at this point in the history
  • Loading branch information
JortWillemsen committed Feb 24, 2024
1 parent 19d145a commit aeb1119
Show file tree
Hide file tree
Showing 17 changed files with 537 additions and 38 deletions.
8 changes: 5 additions & 3 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ declare module 'astro:content' {

type ContentEntryMap = {
"projects": {
"alles-met-boeken.md": {
id: "alles-met-boeken.md";
"mystique.md": {
id: "mystique.md";
slug: "mystique";
body: string;
collection: "projects";
Expand All @@ -197,7 +197,9 @@ declare module 'astro:content' {
};

type DataEntryMap = {

"images": {
};

};

type AnyEntryMap = ContentEntryMap & DataEntryMap;
Expand Down
Binary file added public/assets/project-icons/mystique.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/hero/hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ import NewProject from "../new-project/new-project.astro";

.new-project {
position: absolute;
bottom: 20px;
bottom: 40px;
z-index: 99;
}

.blobs {
width: calc(100%);
height: fit-content;
position: fixed;
position: absolute;
z-index: 0;
bottom: 0;
transform: translateY(40%);
Expand All @@ -98,7 +98,7 @@ import NewProject from "../new-project/new-project.astro";
.mobileBlobs {
width: calc(100%);
height: fit-content;
position: fixed;
position: absolute;
z-index: 0;
bottom: 0;
transform: translateY(60%);
Expand Down
2 changes: 1 addition & 1 deletion src/components/hero/hero.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
width: calc(100%);
height: fit-content;
position: fixed;
z-index: 0;
z-index: -1;
bottom: 0;
transform: translateY(40%);

Expand Down
2 changes: 1 addition & 1 deletion src/components/page/page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const { title, centered, children } = Astro.props;
align-items: center;
text-align: justify;
box-sizing: border-box;
max-width: 1200px;
max-width: 1000px;
margin-top: 100px;
height: fit-content;
min-height: calc(100vh - 100px);
Expand Down
53 changes: 45 additions & 8 deletions src/components/project/project.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ interface Props {
title: string;
description: string;
picture: string;
tags: string[];
}
const { small, title, link, picture, description } = Astro.props;
const { small, title, link, picture, description, tags } = Astro.props;
---

<a href={link} class:list={["container", { small: small }]}>
Expand All @@ -28,6 +29,9 @@ const { small, title, link, picture, description } = Astro.props;
alt="hello"
/>
<h3 class="title">{title}</h3>
<div class="tags">
{tags.map((tag: string) => <div class="tag">{tag}</div>)}
</div>
<p class="description">{description}</p>
</div>
)
Expand Down Expand Up @@ -70,13 +74,13 @@ const { small, title, link, picture, description } = Astro.props;
width: fit-content;
box-sizing: border-box;
&:hover {
transform: scale(0.9);
}
transform: scale(0.9);
}
}

.grid {
display: grid;
grid-template-rows: 0.5fr 1fr;
grid-template-rows: 0.5fr 0.2fr 1fr;
grid-template-columns: 200px 3fr;
width: 100%;

Expand All @@ -90,16 +94,17 @@ const { small, title, link, picture, description } = Astro.props;
height: 100%;
aspect-ratio: 1;
border-radius: 10px;
grid-area: 1 / 1 / 3 / 2;
grid-area: 1 / 1 / 4 / 2;
}

.title {
font-size: 30px;
font-size: 50px;
text-align: left;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding: 10px;
padding: 0 10px;

margin: 0;
grid-area: 1 / 2 / 2 / 3;

Expand All @@ -108,19 +113,51 @@ const { small, title, link, picture, description } = Astro.props;
}
}

.tags {
grid-area: 2 / 2 / 3 / 3;
display: flex;
padding: 10px;

@media (max-width: 1200px) {
display: none;
}
}

.tag {
color: black;
width: max-content;
font-family: "Courier New",Courier,monospace;
font-weight: bold;
height: 100%;
background-color: #82cac2;
border-radius: 100px;
box-sizing: border-box;
margin: 0 5px;
padding: 5px 10px;
font-size: 20px;

@media (max-width: 1200px) {
font-size: 10px;
margin: 0 5px;
padding: 2px 5px;
}
}

.description {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
margin: 0;
padding: 10px;
grid-area: 2 / 2 / 3 / 3;
grid-area: 3 / 2 / 3 / 3;
-webkit-line-clamp: 4;
line-clamp: 4;
word-wrap: break-word;

@media (max-width: 1200px) {
font-size: 12px;
grid-area: 2 / 2 / 4 / 3;
}
}
</style>
Binary file added src/content/images/di.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/content/images/mystique_landscape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/content/images/mystique_report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/content/images/mystique_sequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/content/images/snapshot-testing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 0 additions & 18 deletions src/content/projects/alles-met-boeken.md

This file was deleted.

Loading

0 comments on commit aeb1119

Please sign in to comment.