Skip to content

Commit bf9e324

Browse files
committed
Improve adopted project styles in light mode
1 parent d2894cf commit bf9e324

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/lib/components/adopted-projects/ProjectSection.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
export let githubUrl: string;
1111
export let websiteUrl: string;
1212
export let twitterUrl: string;
13+
export let index: number = 0;
1314
</script>
1415

1516
<section
16-
class="border-t border-gray-200 bg-gray-200 py-6 dark:border-gray-700 dark:bg-gray-800 sm:py-10"
17+
class={`border-t border-gray-200 py-6 sm:py-10
18+
${index % 2 === 0 ? 'bg-background dark:bg-gray-800' : 'bg-gray-200 dark:bg-gray-800'}
19+
${index % 2 === 0 ? 'dark:border-gray-700' : 'border-gray-200 dark:border-gray-700'}`}
1720
>
1821
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
1922
<div class="mb-4 mt-4 flex h-24 items-center">
@@ -48,7 +51,7 @@
4851
{/each}
4952
</div>
5053

51-
<a href={githubUrl} class="text-sm tracking-wide text-gray-300">
54+
<a href={githubUrl} class="text-sm tracking-wide text-gray-600 dark:text-gray-300">
5255
View all projects on GitHub
5356
</a>
5457
</div>

src/routes/adopted-projects/+page.svelte

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,5 @@
116116
</div>
117117
</section>
118118

119-
<section class="bg-background dark:bg-gray-900">
120-
{#each sections as section}
121-
<ProjectSection {...section} />
122-
{/each}
123-
</section>
119+
<ProjectSection {...sections[0]} index={0} />
120+
<ProjectSection {...sections[1]} index={1} />

0 commit comments

Comments
 (0)