Skip to content

Commit

Permalink
Fix lots of things
Browse files Browse the repository at this point in the history
  • Loading branch information
JortWillemsen committed Dec 21, 2023
1 parent 1c5c0f7 commit fda94a6
Show file tree
Hide file tree
Showing 9 changed files with 419 additions and 462 deletions.
1 change: 1 addition & 0 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ declare module 'astro:content' {
import('astro/zod').ZodLiteral<'webp'>,
import('astro/zod').ZodLiteral<'gif'>,
import('astro/zod').ZodLiteral<'svg'>,
import('astro/zod').ZodLiteral<'avif'>,
]
>;
}>;
Expand Down
771 changes: 323 additions & 448 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/components/header/header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@
}

.page_title {
font-size: 3rem;
font-size: 2rem;
margin-left: 20px;
font-weight: normal;

@media (max-width: variables.$mobile-cutoff) {
margin: 0 0 0 10px;
font-size: 1.4rem;
font-weight: bold;
}
}

Expand Down
7 changes: 2 additions & 5 deletions src/components/page/page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ const { title, children } = Astro.props;
margin-top: 100px;
height: 100%;
width: 100%;
color: white;
color: #c8c8c8;

@media (max-width: 1200px) {
margin-top: 70px;
padding: 0px 30px;
}
}

Expand All @@ -36,8 +37,4 @@ const { title, children } = Astro.props;
align-items: center;
height: 100vh;
}

.title {
font-size: 50px;
}
</style>
52 changes: 46 additions & 6 deletions src/components/project/project.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const { title, link, picture, description } = Astro.props;
---

<a href={link} class="container">
<img class="picture" src={`/assets/project-icons/${picture}`} alt="hello" />
<div class="content">
<div class="grid">
<img class="picture" src={`/assets/project-icons/${picture}`} alt="hello" />
<h3 class="title">{title}</h3>
<p class="description">{description}</p>
</div>
<div>
</a>

<style lang="scss">
Expand All @@ -28,10 +28,9 @@ const { title, link, picture, description } = Astro.props;
width: 100%;
box-sizing: border-box;
}

display: flex;
width: 100%;
height: 200px;
display: flex;
margin-top: 50px;
transition: 0.3s ease-in-out;
padding: 10px;
Expand All @@ -52,6 +51,10 @@ const { title, link, picture, description } = Astro.props;
padding: 0;
}

.grid {
display: grid;
}

.content {
flex: 1;
display: flex;
Expand All @@ -64,12 +67,34 @@ const { title, link, picture, description } = Astro.props;
aspect-ratio: 1;
margin-right: 20px;
border-radius: 10px;

grid-column-start: 1;
grid-column-end: 1;

grid-row-start: 1;
grid-row-end: 2;

@media (max-width: 1200px) {
height: 80px;

grid-column-start: 1;
grid-column-end: 1;

grid-row-start: 1;
grid-row-end: 1;
}
}

.title {
font-size: 30px;
text-align: left;
text-overflow: ellipsis ellipsis;

grid-column-start: 2;
grid-column-end: 2;

grid-row-start: 1;
grid-row-end: 1;

@media (max-width: 1200px) {
font-size: 20px;
Expand All @@ -79,8 +104,23 @@ const { title, link, picture, description } = Astro.props;

.description {
display: block;
margin: 5px 0 0 0;
overflow: hidden;
flex: 1;


grid-column-start: 2;
grid-column-end: 2;

grid-row-start: 2;
grid-row-end: 2;

@media (max-width: 1200px) {

grid-column-start: 1;
grid-column-end: 2;

grid-row-start: 2;
grid-row-end: 2;
}
}
</style>
32 changes: 32 additions & 0 deletions src/components/title/title.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
interface Props {
children: any;
}
const { children } = Astro.props;
---
<div class="container">
<h2 class="title">{children}</h2>
</div>

<style lang="scss">
.container {
position: relative;
width: 100%;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;

@media (max-width: variables.$mobile-cutoff) {
margin-bottom: 150px;
}
}

.title {
color: white;
font-weight: 800;
z-index: 3;
font-size: 3rem;
}
</style>
2 changes: 1 addition & 1 deletion src/content/projects/alles-met-boeken.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Alles met boeken - Logo
tags: [Logo, Design]
tags: [Logo, Design, More, Even More, Another one, Yes another one, Even morrrre]
slug: alles-met-boeken
description: Tungstun designed the logo for Alles met boeken. They give book advise to local schools and book stores.
image:
Expand Down
10 changes: 10 additions & 0 deletions src/layouts/ProjectLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,29 @@ const { frontmatter } = Astro.props;
<style>
.tags {
display: flex;
overflow-x: scroll;
width: 100%;
max-height: 30px;
cursor: pointer;
}

.content {
font-size: 20px;
}

.tag {
display: inline-block;
text-align: left;
white-space: nowrap;
font-size: 20px;
margin-right: 15px;
background-color: #82CAC2;
color: black;
padding: 5px 10px;
border-radius: 100px;
font-family: 'Courier New', Courier, monospace;
font-weight: bold;
width: max-content;

}
</style>
2 changes: 1 addition & 1 deletion src/pages/projects/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const allProjects = await getCollection("projects");
allProjects.map((project) => (
<Project
title={project.data.title}
link={`${project.slug}`}
link={`projects/${project.slug}`}
description={project.data.description}
picture={project.data.image.url}
/>
Expand Down

0 comments on commit fda94a6

Please sign in to comment.