Skip to content

Commit c41608e

Browse files
committed
change grid cards
1 parent 60be7f5 commit c41608e

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

‎apps/codingcatdev/src/app.postcss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
@import '@codingcatdev/blackcatui/dist/styles/all.css';
33
@import './styles/app.css';
44
@import './styles/nav-list.css';
5+
@import './styles/grid-card.css';

‎apps/codingcatdev/src/lib/components/content/ContentCards.svelte‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
<div class="p-4 sm:p-10">
3434
<section class="relative grid gap-4 grid-cols-fit sm:gap-10">
3535
{#each data?.content as content}
36-
<div
37-
class="grid transition-all rounded-md shadow-lg dark:text-primary-50 dark:bg-basics-900 grid-rows-auto-2 hover:shadow-2xl hover:scale-105 bg-base-100"
38-
>
36+
<div class="ccd-grid-card">
3937
<a class="self-start" href={`/${type}/${content.slug}`}>
4038
{#if content?.cover}
4139
<Image
@@ -56,17 +54,17 @@
5654
<section class="grid h-full grid-cols-1 gap-2 p-4">
5755
<div class="space-y-2">
5856
<h3 class="font-sans text-lg tracking-wide text-bold">
59-
<a href={`/${type}/${content.slug}`}>{content.title}</a>
57+
{content.title}
6058
</h3>
6159
{#if content.excerpt}
6260
<p class="text-sm font-hairline ">{content.excerpt}</p>
6361
{/if}
6462
{#if content.authors}
6563
<div class="flex flex-col">
6664
{#each content.authors as author}
67-
<a href={`/authors/${author.slug}`} class="font-sans text-lg">
65+
<div class="font-sans text-lg">
6866
{author.displayName}
69-
</a>
67+
</div>
7068
{/each}
7169
</div>
7270
{/if}

‎apps/codingcatdev/src/routes/(layout-partials)/CcdFooter.svelte‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
class="flex flex-col md:flex-row justify-between items-center md:items-start gap-8 md:space-y-0"
99
>
1010
<p class="text-xs">
11-
<a class="bcu-button variant-soft" href="https://codingcat.dev"
12-
>Made with 💜 by CodingCat.dev</a
13-
>
11+
<a class="bcu-button variant-soft" href="https://alexpatterson.dev">Made by Alex Patterson</a>
1412
</p>
1513
<div class="flex gap-2">
1614
<a
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@layer components {
2+
.ccd-grid-card {
3+
@apply bcu-card grid transition-all rounded-md shadow-lg hover:shadow-2xl hover:scale-105;
4+
}
5+
.ccd-grid-card a {
6+
/* Override typograpy */
7+
@apply !no-underline !text-base-token dark:!text-dark-token;
8+
}
9+
}

0 commit comments

Comments
 (0)