Skip to content

Commit ceda10c

Browse files
committed
fix
1 parent afde928 commit ceda10c

File tree

5 files changed

+296
-378
lines changed

5 files changed

+296
-378
lines changed
13.7 KB
Loading

src/components/ColorThemeToggle.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
>
55
<input type="checkbox" value="" class="peer sr-only" />
66
<div
7-
class="transition-preset h-6 w-11 rounded-full border-2 border-black bg-gray-700 after:absolute after:left-[4px] after:top-[4px] after:h-4 after:w-4 after:rounded-full after:border-2 after:border-black after:bg-white after:transition-all after:content-[''] hover:bg-pink-200 peer-checked:bg-pink-300 peer-checked:shadow-[2px_2px_0px_rgba(0,0,0,1)] peer-checked:after:translate-x-5"
7+
class="smooth-transition h-6 w-11 rounded-full border-2 border-black bg-gray-700 after:absolute after:left-[4px] after:top-[4px] after:h-4 after:w-4 after:rounded-full after:border-2 after:border-black after:bg-white after:transition-all after:content-[''] hover:bg-pink-200 peer-checked:bg-pink-300 peer-checked:shadow-[2px_2px_0px_rgba(0,0,0,1)] peer-checked:after:translate-x-5"
88
>
99
</div>
1010
<!--<span class="text-md ms-3 font-medium">Dark mode</span>-->

src/components/YouTubeClipsGrid.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function getBadgeColors(library: string) {
4848
tutorials.map((tut) => {
4949
return (
5050
<div
51-
class={`transition-preset group flex flex-col justify-between overflow-hidden rounded-base border-2 border-black bg-lightBg hover:shadow-cardLight focus:shadow-cardLight dark:bg-bg ${getBackgroundColors(tut.library)}`}
51+
class={`smooth-transition group flex flex-col justify-between overflow-hidden rounded-base border-2 border-black bg-lightBg hover:shadow-cardLight focus:shadow-cardLight dark:bg-bg ${getBackgroundColors(tut.library)}`}
5252
>
5353
<div class="aspect-video overflow-hidden">
5454
<video
@@ -82,7 +82,7 @@ function getBadgeColors(library: string) {
8282
href={tut.link}
8383
target="_blank"
8484
rel="noopener noreferrer"
85-
class="transition-preset flex-shrink-0 rounded-base border-2 border-black bg-main px-5 py-2 hover:bg-pink-300 hover:shadow-buttonLight active:bg-pink-500"
85+
class="smooth-transition flex-shrink-0 rounded-base border-2 border-black bg-main px-5 py-2 hover:bg-pink-300 hover:shadow-buttonLight active:bg-pink-500"
8686
>
8787
Watch
8888
</a>

0 commit comments

Comments
 (0)