sync
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 19s

This commit is contained in:
BOTAlex 2025-05-28 20:29:57 +02:00
parent 04ef603bca
commit 11274585f6
3 changed files with 73 additions and 80 deletions

View file

@ -1,56 +1,47 @@
<script>
import placeholder from "$lib/zhen/cv-comps/400x400.png"
import DTU_Logo from "$lib/zhen/cv-comps/DTU_Logo.png"
import NextLogo from "$lib/zhen/cv-comps/nextKbhLogo.png"
import SasLogo from "$lib/zhen/cv-comps/SASLogo.png"
import EmphasysLogo from "$lib/zhen/cv-comps/EmphasysLogo.png"
import placeholder from "$lib/zhen/cv-comps/400x400.png";
import DTU_Logo from "$lib/zhen/cv-comps/DTU_Logo.png";
import NextLogo from "$lib/zhen/cv-comps/nextKbhLogo.png";
import SasLogo from "$lib/zhen/cv-comps/SASLogo.png";
import EmphasysLogo from "$lib/zhen/cv-comps/EmphasysLogo.png";
import IconAndText2 from "./IconAndText2.svelte"
import IconAndText2 from "./IconAndText2.svelte";
</script>
<div class="container">
<div>
<b style="text-align:left;">
Education
</b>
</div>
<div class="imagesContainer flex justify-center p-2 gap-4" id="balls">
<IconAndText2 logo={DTU_Logo}>
<b>DTU</b><br/>
<p style="font-size: 0.6rem;">
Artificial intelligence
</p>
</IconAndText2>
<IconAndText2 logo={NextLogo}>
<b>Next</b><br/>
<p style="font-size: 0.6rem;">
Computer science
</p>
</IconAndText2>
<IconAndText2 logo={SasLogo}>
<b>Master class</b><br/>
<p style="font-size: 0.6rem;">
SAS Programming
</p>
</IconAndText2>
<IconAndText2 logo={EmphasysLogo}>
<b>Emphasys center</b><br/>
<p style="font-size: 0.6rem;">
VR development
</p>
</IconAndText2>
</div>
<div>
<b style="text-align:left;"> Education </b>
</div>
<div class="imagesContainer flex justify-center p-2 gap-4" id="balls">
<IconAndText2 logo={DTU_Logo}>
<b>DTU</b><br />
<p style="font-size: 0.5rem;">Artificial intelligence</p>
</IconAndText2>
<IconAndText2 logo={NextLogo}>
<b>Next</b><br />
<p style="font-size: 0.5rem;">Computer science</p>
</IconAndText2>
<IconAndText2 logo={SasLogo}>
<b>Master class</b><br />
<p style="font-size: 0.5rem;">SAS Programming</p>
</IconAndText2>
<IconAndText2 logo={EmphasysLogo}>
<b>Emphasys center</b><br />
<p style="font-size: 0.5rem;">VR development</p>
</IconAndText2>
</div>
</div>
<style lang="scss">
.container{
display: grid;
place-items: center;
width: 90%;
.container {
display: grid;
place-items: center;
width: 90%;
> div:first-child {
border-bottom: black 1mm solid;
width: 100%;
}
> div:first-child {
border-bottom: black 1mm solid;
width: 100%;
}
</style>
}
</style>

View file

@ -1,44 +1,46 @@
<script lang="ts">
export let logo:string;
export let logoWidths: string = "35%";
export let fontSize: string = "3mm";
export let lineHeight: string = "3.1mm";
export let logo: string;
export let logoWidths: string = "35%";
import { onMount } from "svelte";
onMount(() => {
imageCaption = logo.split(/(\\|\/)/g).pop();
});
export let fontSize: string = "3mm";
export let lineHeight: string = "3.1mm";
let imageCaption: undefined | string; // Not a high piority, you get the file name and thats it
import { onMount } from "svelte";
onMount(() => {
imageCaption = logo.split(/(\\|\/)/g).pop();
});
let imageCaption: undefined | string; // Not a high piority, you get the file name and thats it
</script>
<div class="container">
<img src={logo} alt="{imageCaption}" width="{logoWidths}"/>
<div style="line-height: {lineHeight};">
<span style="font-size: {fontSize};">
<slot/>
</span>
</div>
<div class="container flex">
<img
src={logo}
class="mr-2 w-6 h-6 object-contain"
alt={imageCaption}
width={logoWidths}
/>
<div style="line-height: {lineHeight};">
<span class="inline" style="font-size: {fontSize};">
<slot />
</span>
</div>
</div>
<style lang="scss">
.container {
width: 100%;
.container {
width: 100%;
& > div {
margin-top: 2mm;
padding-left: 2mm;
padding-bottom: 1mm;
& > div {
text-align: start;
text-align: start;
border-left: 0.5mm solid black;
}
& > img {
border-radius: 2.5mm;
filter: drop-shadow(1mm 1mm 1mm #0000009d);
}
border-left: 0.5mm solid black;
}
</style>
& > img {
border-radius: 2.5mm;
filter: drop-shadow(1mm 1mm 1mm #0000009d);
}
}
</style>

View file

@ -206,7 +206,7 @@
padding-bottom: 30mm;
// Disable interactivity for padding
pointer-events: none;
// pointer-events: none;
}
}
}