Skip to content

Commit

Permalink
Fix darkmode for CV
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rogg committed Oct 19, 2023
1 parent 0ff33a6 commit 5184db9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions src/lib/components/sections/CV/CV.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div
class="graph container flex mx-auto justify-center gap-4 mt-28 mb-28 relative"
style="height: {graphHeight}px; width: {(companies.length + 1) * (barWidth + 16) + 140}px">
<div class="timetable relative font-semibold">
<div class="timetable relative font-semibold dark:font-medium">
<div class="absolute" style="top: {titleOffset}px; left: -80px; transform: translateY(-50%)">{$t("cv.now")}</div>
{#each legendYears as year}
<div
Expand All @@ -75,13 +75,13 @@
</div>
{#each companies as company}
<div class="relative company" style="width: {barWidth}px">
<h4 class="absolute text-center company-title font-semibold">
<h4 class="absolute text-center company-title font-semibold dark:font-medium">
{@html company.title}
</h4>
<div class="absolute jobs z-0" style="width: {barWidth}px">
{#each company.jobs as job}
<div
class="bg-white-700 dark:bg-blue-800 rounded-lg absolute job"
class="bg-white-700 dark:bg-blue-900 rounded-lg absolute job"
style="height: {getDuration(job)}px; width: 40px; top: {getStartPoint(job)}px"
class:studies="{job.tags !== undefined ? job.tags.includes('studies') > 0 : false}">
<div
Expand Down Expand Up @@ -117,7 +117,7 @@
.legend-year:before {
@apply border;
@apply border-white-700;
@apply dark:border-blue-800;
@apply dark:border-blue-900;
content: attr(data-companies);
position: absolute;
height: 1px;
Expand Down Expand Up @@ -145,11 +145,7 @@
}
:global(.dark) .studies {
--color: theme("colors.blue.900");
}
.hidden {
opacity: 1;
--color: theme("colors.blue.800");
}
.jobs {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(public)/[lang]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

<section class="grid gap-4 container mb-4 grid-cols-4 lg:grid-cols-8">
<ShortBio blok={data.bio}/>
<div class="bg-white-600 rounded-2xl p-8 col-span-4 h-[25rem] overflow-hidden">
<div class="bg-white-600 dark:bg-blue-800 rounded-2xl p-8 col-span-4 h-[25rem] overflow-hidden">
<h2 class="text-2xl font-semibold text-center mb-10">{$t("cv.title")}</h2>
<div class="hover:scale-[102%] duration-1000">
<CV blok={data.cv}/>
Expand Down

0 comments on commit 5184db9

Please sign in to comment.