Skip to content

Commit

Permalink
Add project description
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBertet committed Nov 30, 2023
1 parent 891acb7 commit 0fcd87b
Show file tree
Hide file tree
Showing 16 changed files with 51 additions and 32 deletions.
16 changes: 12 additions & 4 deletions src/components/Project.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,34 @@
import ConditionalLink from "./ConditionalLink.astro";
interface Props {
name: string;
description: string;
tech?: string;
image?: string;
link?: string;
}
const { image, link } = Astro.props;
const { description, tech, image, link } = Astro.props;
---

<div
class="group relative flex aspect-square overflow-hidden rounded-lg shadow-xl"
>
<ConditionalLink link={link} target="_blank">
<img
class="absolute h-full w-full bg-purple-400 object-cover duration-500 ease-in-out group-hover:rotate-6 group-hover:scale-125"
class="absolute h-full w-full bg-[#476f83] object-cover duration-500 ease-in-out group-hover:rotate-6 group-hover:scale-125"
src={import.meta.env.BASE_URL + image}
/>

<div
class="absolute h-full w-full bg-black opacity-0 transition-opacity duration-500 group-hover:opacity-50"
class="absolute h-full w-full bg-black opacity-0 transition-opacity duration-500 group-hover:opacity-70"
>
</div>

<div class="absolute h-full w-full text-white opacity-0 transition-opacity duration-500 group-hover:opacity-100">
<div class="flex items-center justify-center h-full w-full">
<p class="text-2xl p-4 text-center">{description}</p>
</div>
<div class="absolute bottom-0 right-0 p-2">{tech}</div>
</div>
</ConditionalLink>
</div>
4 changes: 2 additions & 2 deletions src/content/perso/air.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Air.
year: 2020
image: air.jpg
short_description: Air quality sensor with IPS screen
tech: Fusion 360, 3D Print, Esp32, C++
image: air.jpg
on_resume: 4
short_description: Air quality sensor with IPS screen
---
4 changes: 2 additions & 2 deletions src/content/perso/bike.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Cargo Bike
year: 2022
image: bike.jpg
on_resume: 3
short_description: Designed & built long john cargo bike
tech: OnShape, Welding, Woodworking
image: bike.jpg
on_resume: 3
---
5 changes: 2 additions & 3 deletions src/content/perso/mac-setup.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
name: Mac Setup
year: 2023
image: mac-setup.jpg
tech: Ansible
on_resume: false
short_description: Automated Mac setup using Ansible
tech: Ansible
image: mac-setup.jpg
link: https://www.github.com/davidbertet/mac-setup
---
6 changes: 3 additions & 3 deletions src/content/perso/new-portfolio.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name:
name: Portfolio
year: 2023
image: portfolio.jpg
tech: Astro, TailwindCSS, Mailjet
short_description: My current portfolio
tech: Astro, TailwindCSS, Mailjet
image: portfolio.jpg
link: https://www.github.com/davidbertet/portfolio
---
6 changes: 3 additions & 3 deletions src/content/perso/old-portfolio.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name:
name: Portfolio
year: 2015
image: old-portfolio.jpg
tech: HTML, CSS, JS
short_description: My first portfolio
tech: PHP, HTML, CSS, JS
image: old-portfolio.jpg
link: https://david.bertet.fr/old
---
6 changes: 3 additions & 3 deletions src/content/perso/opensource.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Open Source
year: 2023
image: opensource.jpg
tech: Swift, React Native, Ruby
on_resume: true
short_description: See GitHub for contributions
tech: Swift, React Native, Ruby
image: opensource.jpg
link: https://www.github.com/davidbertet
on_resume: 1
---
6 changes: 3 additions & 3 deletions src/content/perso/powerjeep.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Power Jeep
year: 2021
image: powerjeep.jpg
tech: Esp32, EspIDF, C, WebSocket
on_resume: 2
short_description: Kids Ride On car conversion to Ryobi 18v battery with web interface
tech: Esp32, EspIDF, C, WebSocket
image: powerjeep.jpg
link: https://www.github.com/davidbertet/powerjeep
on_resume: 2
---
4 changes: 3 additions & 1 deletion src/content/perso/resume.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name:
name: Resume
year: 2022
short_description: My resume, built as a webpage
tech: Astro, Markdown
image: resume.png
link: resume
---
4 changes: 3 additions & 1 deletion src/content/perso/synology-docker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name:
name: Home lab
year: 2023
short_description: Scripts to setup my home lab
tech: Docker compose, Reverse proxy
image: synology-docker.jpg
link: https://www.github.com/davidbertet/synology-docker
---
4 changes: 3 additions & 1 deletion src/content/perso/workbench.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name:
name: Wood workbench
year: 2019
short_description: Wood workbench for the garage
tech: Woodworking, OnShape
image: workbench.jpg
---
3 changes: 2 additions & 1 deletion src/content/work/bat.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name:
year: 2016
short_description: Internal tool that captures every coming offers. Used for client validation
tech: iOS screenshots, Jenkins, JS
image: bat.png
---
3 changes: 2 additions & 1 deletion src/content/work/cashback.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name:
year: 2020
short_description: Internal tool to easily browse data. Used by dev, clearer & customer support teams
tech: NextJS
image: cashback.png
---
3 changes: 2 additions & 1 deletion src/content/work/coupons.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name:
year: 2021
short_description: Coupons.com mobile app
tech: iOS, Android
image: coupons.jpg
---
3 changes: 2 additions & 1 deletion src/content/work/shopmium.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name:
year: 2017
short_description: Shopmium mobile apps
tech: iOS, Android
image: shopmium.jpg
link: https://www.shopmium.com
---
6 changes: 4 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ const perso = await Astro.glob("../content/perso/*.md");
.sort((a, b) => b.frontmatter.year - a.frontmatter.year)
.map((project) => (
<Project
name={project.frontmatter.name}
description={project.frontmatter.short_description}
tech={project.frontmatter.tech}
image={project.frontmatter.image}
link={project.frontmatter.link}
/>
Expand All @@ -95,7 +96,8 @@ const perso = await Astro.glob("../content/perso/*.md");
.sort((a, b) => b.frontmatter.year - a.frontmatter.year)
.map((project) => (
<Project
name={project.frontmatter.name}
description={project.frontmatter.short_description}
tech={project.frontmatter.tech}
image={project.frontmatter.image}
link={project.frontmatter.link}
/>
Expand Down

0 comments on commit 0fcd87b

Please sign in to comment.