Skip to content

Commit 3f4a8cd

Browse files
committed
add project image shadow and page size var
1 parent 5f5d3c4 commit 3f4a8cd

File tree

8 files changed

+8
-6
lines changed

8 files changed

+8
-6
lines changed

src/components/ProjectCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const { lastAccessDate, isUpdatedDate } = getPublishedOrUpdatedDate({
3030
{...IMAGE_SIZES.RESPONSIVE.PROJECT_CARD}
3131
src={heroImage}
3232
alt={heroAlt}
33-
class="rounded-t-box mb-2"
33+
class="rounded-t-box shadow shadow-base-300 mb-2"
3434
/>
3535

3636
<h4 class="b-h4 break-words line-clamp-2 mb-0">

src/config/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const configClientData: ConfigClientType = {
1414
PLAUSIBLE_DOMAIN,
1515
PAGE_SIZE_POST_CARD: 3,
1616
PAGE_SIZE_POST_CARD_SMALL: 6,
17+
PAGE_SIZE_PROJECT_CARD: 6,
1718
MORE_POSTS_COUNT: 3,
1819
DEFAULT_MODE: 'light',
1920
DEFAULT_THEME: 'default-light',

src/content/project/2024/02-13-example-project-1/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ import FlowersImage from '../../../../content/project/2024/02-13-example-project
1414

1515
# This is the first project
1616

17-
<Image {...IMAGE_SIZES.FIXED.MDX_LG} src={FlowersImage} alt="" />
17+
<Image {...IMAGE_SIZES.FIXED.MDX_LG} src={FlowersImage} class="shadow-lg shadow-base-300" alt="" />

src/content/project/2024/03-15-example-project-2/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ import BicycleImage from '../../../../content/project/2024/03-15-example-project
1616

1717
# This is the second project
1818

19-
<Image {...IMAGE_SIZES.FIXED.MDX_LG} src={BicycleImage} alt="" />
19+
<Image {...IMAGE_SIZES.FIXED.MDX_LG} src={BicycleImage} class="shadow-lg shadow-base-300" alt="" />

src/content/project/2024/05-16-example-project-3/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ import MorningImage from '../../../../content/project/2024/05-16-example-project
1313

1414
# This is the third project
1515

16-
<Image {...IMAGE_SIZES.FIXED.MDX_LG} src={MorningImage} alt="" />
16+
<Image {...IMAGE_SIZES.FIXED.MDX_LG} src={MorningImage} class="shadow-lg shadow-base-300" alt="" />

src/content/project/2024/12-09-hackernews-new-jobs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import HackerNewsNewJobsImage from '../../../../content/project/2024/12-09-hacke
1212

1313
# HackerNews new jobs
1414

15-
<Image {...IMAGE_SIZES.FIXED.MDX_LG} src={HackerNewsNewJobsImage} alt="Homepage HackerNews new jobs" />
15+
<Image {...IMAGE_SIZES.FIXED.MDX_LG} src={HackerNewsNewJobsImage} class="shadow-lg shadow-base-300" alt="Homepage HackerNews new jobs" />
1616

1717
## Overview
1818

src/pages/projects/[...page].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { GetStaticPathsOptions, Page } from 'astro';
1111
1212
export async function getStaticPaths({ paginate }: GetStaticPathsOptions) {
1313
const sortedProjects: Project[] = await getAllProjects();
14-
const pageSize = CONFIG_CLIENT.PAGE_SIZE_POST_CARD;
14+
const pageSize = CONFIG_CLIENT.PAGE_SIZE_PROJECT_CARD;
1515
1616
const pagination = paginate(sortedProjects, { pageSize });
1717
pagination.push({ params: { page: '1' }, props: pagination[0].props });

src/schemas/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const configClientSchema = processEnvSchema
4646
SITE_DESCRIPTION: z.string().min(1),
4747
PAGE_SIZE_POST_CARD: z.number(),
4848
PAGE_SIZE_POST_CARD_SMALL: z.number(),
49+
PAGE_SIZE_PROJECT_CARD: z.number(),
4950
MORE_POSTS_COUNT: z.number(),
5051
DEFAULT_MODE: z.enum(modeValues), // check that theme and mode match
5152
DEFAULT_THEME: z.enum(themeValues),

0 commit comments

Comments
 (0)