Skip to content

Commit e7ecb46

Browse files
committed
🎨 色の変更, プレビュー動画の表示の改善
1 parent 8a2abf1 commit e7ecb46

File tree

5 files changed

+17
-166
lines changed

5 files changed

+17
-166
lines changed

Diff for: client/panda.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default defineConfig({
1818
extend: {
1919
tokens: {
2020
colors: {
21-
"9u-white": { value: "#fceded" },
21+
"9u-white": { value: "#fcfafa" },
2222
"9u-red1": { value: "#dd4343" },
2323
"9u-red2": { value: "#b21b1b" },
2424
"9u-red3": { value: "#561d1d" },

Diff for: client/src/components/HeaderBody.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export function HeaderBody({
1616
onAnchorClick?: () => void;
1717
onNavIconClick?: () => void;
1818
}): ReactElement {
19+
const shouldWhite = externalStyle?.logo?.color === token("colors.9u-white");
20+
1921
return (
2022
<p.header
2123
alignItems="center"
@@ -69,7 +71,7 @@ export function HeaderBody({
6971
}}
7072
loading="eager"
7173
src={
72-
externalStyle?.logo?.color === token("colors.9u-white")
74+
shouldWhite
7375
? "/assets/images/logos/title-white.svg"
7476
: "/assets/images/logos/title-brown.svg"
7577
}

Diff for: client/src/components/list/WorksList.astro

+11-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const worksList = await getContentList("works");
2020
>
2121
{
2222
worksList.contents.map(
23-
({ id, title, ogpImg, releaseDate, previewVideo }) => (
23+
({ id, title, releaseDate, previewVideo, previewImg }) => (
2424
<p.a
2525
key={id}
2626
bg="9u-gray"
@@ -40,9 +40,9 @@ const worksList = await getContentList("works");
4040
>
4141
<Image
4242
alt={title}
43-
height={ogpImg?.height ?? 180}
44-
src={ogpImg?.url ?? "/assets/external/works/test/color_bar.png"}
45-
width={ogpImg?.width ?? 320}
43+
height={previewImg?.height ?? 1080}
44+
src={previewImg?.url ?? "/assets/images/sub-visual.png"}
45+
width={previewImg?.width ?? 1920}
4646
/>
4747
<p.div
4848
h="100%"
@@ -87,12 +87,18 @@ const worksList = await getContentList("works");
8787
<p.div
8888
color="9u-white"
8989
left="50%"
90+
p="3"
9091
position="absolute"
9192
top="50%"
9293
transform="translate(-50%, -50%)"
9394
w="100%"
9495
>
95-
<p.p fontSize="xl" fontWeight="bold">
96+
<p.p
97+
fontSize="xl"
98+
fontWeight="bold"
99+
lineClamp="2"
100+
textOverflow="ellipsis"
101+
>
96102
{title}
97103
</p.p>
98104
<p.p>{formatDate(new Date(releaseDate), "YYYY.MM")}</p.p>

Diff for: client/src/components/list/WorksListOmitted.tsx

-157
This file was deleted.

Diff for: client/src/pages/index.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { INFO } from "@client/lib/config";
66
import { getContentList } from "@client/lib/services/microcms";
77
import { css } from "panda/css";
88
import { VStack, styled as p } from "panda/jsx";
9-
import { WorksListOmitted } from "src/components/list/WorksListOmitted";
9+
import WorksList from "src/components/list/WorksList.astro";
1010
import logoBg from "~/assets/images/logos/bg.svg";
1111
1212
const worksList = await getContentList("works");
@@ -63,7 +63,7 @@ const worksList = await getContentList("works");
6363
<Marker>
6464
<p.h2>Works</p.h2>
6565
</Marker>
66-
<WorksListOmitted client:load worksList={worksList} />
66+
<WorksList worksList={worksList} />
6767
</VStack>
6868
<p.div bgColor="9u-brown" color="9u-white" w="100%">
6969
<VStack className="content" gap="10">

0 commit comments

Comments
 (0)