added images

This commit is contained in:
2024-07-12 21:32:20 +02:00
parent 4cd335e153
commit a3fac4c1fa
5 changed files with 34 additions and 16 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
public/img/projects/sca.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

View File

@@ -1,17 +1,20 @@
---
import { array } from "astro/zod";
interface Props {
name: string;
href?: string;
gallery?: string | string[];
}
const { name, href } = Astro.props;
const { name, href, gallery } = Astro.props;
---
<style lang="scss">
@import "../styles/_var.scss";
a {
color: white;
padding: 20px;
&.project-external {
text-decoration: none;
&::after {
@@ -24,10 +27,17 @@ const { name, href } = Astro.props;
}
}
.content {
padding: 20px;
padding: 0;
margin: 20px;
max-width: 40vw;
transition: border-color 0.3s;
.gallery {
img {
margin-top: 20px;
border-radius: 25px;
max-width: 250px;
}
}
h2 {
font-size: 20px;
}
@@ -44,6 +54,8 @@ const { name, href } = Astro.props;
<div class={href ? "content" : "content no-hover"}>
<a class="project-external" target={href ? "_blank" : ""} href={href}>
<h2>{name}</h2><slot />
</a>
<h2>{name}</h2><slot /><div class="gallery">
<img loading="lazy" src={Array.isArray(gallery) ? "" : gallery} />
</div></a
>
</div>

View File

@@ -13,29 +13,35 @@ import ProjectCard from "../components/ProjectCard.astro";
description="This is my personal website with my projects, docs and other useful stuff."
>
<main>
<div>
<div style="margin-bottom: 20px;">
<h1 style="text-align: center;">Projects</h1>
<ProjectCard name="voicenext" href="https://voicenext.app"
>My team and I are currently working on voicenext, a voice messaging app
designed to keep communication simple and intuitive. With voicenext, you
just hold to speak and tap to listen. We are also working on unique
features that other messaging apps haven't considered because we are
solely focused on audio.</ProjectCard
>
<ProjectCard name="SmartCustomerAI"
solely focused on audio.
</ProjectCard>
<ProjectCard name="SmartCustomerAI" gallery="/img/projects/sca.png"
>I am currently developing a program that can simulate customer calls.
For this, I am using the Web Speech Recognition API, OpenAI, and
Elevenlabs.</ProjectCard
>
Elevenlabs.
</ProjectCard>
<ProjectCard
name="acecore"
gallery="/img/projects/acecore.png"
href="https://github.com/vaporvee/acecore"
>Modular multi purpose bot powering your Discord server.<br />
Custom forms with ticket and approve system, tags / custom commands, sticky
messages, auto join roles, autopublish, cat pictures and much more
</ProjectCard>
<ProjectCard
name="DiscordRPC Godot Plugin"
gallery="/img/projects/discord-rpc.png"
href="https://github.com/vaporvee/discord-rpc-godot"
>The first Discord RPC plugin for the version 4 of the Godot game
engine.</ProjectCard
>
<ProjectCard name="acecore" href="https://github.com/vaporvee/acecore"
>Modular multi purpose bot powering your Discord server.</ProjectCard
>
engine.
</ProjectCard>
</div>
</main>
</Layout>