better cards
This commit is contained in:
638
package-lock.json
generated
638
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -5,11 +5,15 @@
|
|||||||
path: string;
|
path: string;
|
||||||
date?: string;
|
date?: string;
|
||||||
tags?: string[];
|
tags?: string[];
|
||||||
|
image?: string;
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a href={data.path}>
|
<a href={data.path}>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
{#if data.image}
|
||||||
|
<img src=/img/net7.png class="image" alt={""} />
|
||||||
|
{/if}
|
||||||
<h2>{data.title}</h2>
|
<h2>{data.title}</h2>
|
||||||
{#if data.description}
|
{#if data.description}
|
||||||
<p>{data.description}</p>
|
<p>{data.description}</p>
|
||||||
@@ -44,7 +48,6 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 1rem;
|
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,6 +57,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag {
|
.tag {
|
||||||
@@ -62,4 +66,10 @@
|
|||||||
padding: 0.25rem 0.5rem;
|
padding: 0.25rem 0.5rem;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -6,6 +6,7 @@ export type Mdsvex = {
|
|||||||
description?: string;
|
description?: string;
|
||||||
date?: string;
|
date?: string;
|
||||||
tags?: string[];
|
tags?: string[];
|
||||||
|
image?: string;
|
||||||
};
|
};
|
||||||
default: ReturnType<typeof create_ssr_component>;
|
default: ReturnType<typeof create_ssr_component>;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<section>
|
<section>
|
||||||
<Hero />
|
<Hero />
|
||||||
<h1 class="cv">
|
<h1 class="cv">
|
||||||
<a href={cv} download="CV_Vallier_Theodor.pdf">Dowload my CV</a>
|
<a href={cv} download="CV_Theodor_Vallier.pdf">Dowload my CV</a>
|
||||||
</h1>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -18,19 +18,16 @@
|
|||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<section class="project_list">
|
<section class="project_list">
|
||||||
{#each data.data as { title, description, path, date, tags }}
|
{#each data.data as { title, description, path, date, tags, image }}
|
||||||
<Card data={{ title, description, path, date, tags }} />
|
<Card data={{ title, description, path, date, tags, image }} />
|
||||||
{/each}
|
{/each}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style lang="css">
|
<style lang="css">
|
||||||
.project_list {
|
.project_list {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: row;
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -6,4 +6,5 @@ tags:
|
|||||||
- web
|
- web
|
||||||
- php
|
- php
|
||||||
- laravel
|
- laravel
|
||||||
|
image: /img/can7.png
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -6,4 +6,5 @@ tags:
|
|||||||
- web
|
- web
|
||||||
- js
|
- js
|
||||||
- tailwind
|
- tailwind
|
||||||
|
image: /img/net7.png
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
<style>
|
<style>
|
||||||
.card_list {
|
.card_list {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit);
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||||
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
BIN
static/img/net7.png
Normal file
BIN
static/img/net7.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
Reference in New Issue
Block a user