design: 이미지 게시글 목록 스타일 수정
This commit is contained in:
@@ -6,6 +6,12 @@
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--secondary-background: rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
[data-theme="black"] {
|
||||
--secondary-background: rgba(255, 255, 255, 0.09);
|
||||
}
|
||||
html,
|
||||
body {
|
||||
font-family: "Noto Sans KR", sans-serif;
|
||||
|
||||
@@ -35,8 +35,8 @@ function GridViewDataTable<T>({
|
||||
onRowClick,
|
||||
}: GridViewDataTableProps<T>) {
|
||||
return (
|
||||
<>
|
||||
<div className="mb-4 flex items-center gap-2 rounded-sm border border-border p-4">
|
||||
<div className="bg-secondary-background pb-10">
|
||||
<div className="flex items-center gap-2 rounded-sm rounded-bl-none rounded-br-none border border-border bg-background p-4">
|
||||
<Checkbox
|
||||
id="all-select"
|
||||
checked={table.getIsAllPageRowsSelected()}
|
||||
@@ -49,14 +49,14 @@ function GridViewDataTable<T>({
|
||||
전체선택
|
||||
</Label>
|
||||
</div>
|
||||
<div className={cn("w-full pb-4", className)}>
|
||||
<div className={cn("w-full p-4", className)}>
|
||||
<div className="grid grid-cols-5 gap-6">
|
||||
{table.getRowModel().rows.map((row) => (
|
||||
<div
|
||||
key={row.id}
|
||||
onClick={() => onRowClick?.(row.original)}
|
||||
className={cn(
|
||||
"rounded-md border border-border p-4 shadow-md",
|
||||
"rounded-md border border-border bg-background p-4 shadow-md",
|
||||
onRowClick && "cursor-pointer hover:bg-accent",
|
||||
)}
|
||||
>
|
||||
@@ -73,7 +73,7 @@ function GridViewDataTable<T>({
|
||||
</div>
|
||||
</div>
|
||||
{viewPagination && <Pagination table={table} />}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ const ThumbImage = ({ atflCd, pstNo, thumbRefs }: ThumbImageProps) => {
|
||||
if (isLoading)
|
||||
return (
|
||||
<div className="my-6 w-full">
|
||||
<Skeleton className="mx-auto h-[16rem] w-[16rem]" />
|
||||
<Skeleton className="mx-auto h-[16rem] w-full" />
|
||||
</div>
|
||||
);
|
||||
|
||||
|
||||
@@ -124,17 +124,23 @@ function Post({ bbsId, pstNo }: { bbsId: string; pstNo: string }) {
|
||||
</div>
|
||||
<hr className="mt-8" />
|
||||
{bbsInfo?.bbsTypeCd === "BBSIMAGE" && (
|
||||
<div className="relative my-6 flex h-[75rem] w-[100rem]">
|
||||
{isLoading && <Skeleton className="h-full w-full" />}
|
||||
{imageUrl && (
|
||||
<Image
|
||||
src={imageUrl}
|
||||
className="object-cover"
|
||||
fill
|
||||
alt="썸네일 이미지"
|
||||
/>
|
||||
<>
|
||||
{isLoading && (
|
||||
<div className="relative my-6 flex h-[75rem] w-[100rem]">
|
||||
<Skeleton className="h-full w-full" />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{imageUrl && (
|
||||
<div className="relative my-6 flex h-[75rem] w-[100rem]">
|
||||
<Image
|
||||
src={imageUrl}
|
||||
className="object-cover"
|
||||
fill
|
||||
alt="썸네일 이미지"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
<pre className="font-noto min-h-[40rem] whitespace-pre-wrap p-8 text-2xl tracking-tighter text-foreground">
|
||||
{postData?.pstCn ?? ""}
|
||||
|
||||
@@ -10,12 +10,17 @@ export default {
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
boxShadow: {
|
||||
blur: "0 0 10px -1px rgba(0, 0, 0, 0.06)",
|
||||
},
|
||||
fontFamily: {
|
||||
noto: ['"Noto Sans KR"', "sans-serif"],
|
||||
},
|
||||
colors: {
|
||||
secondary: {
|
||||
background: "var(--secondary-background)",
|
||||
},
|
||||
},
|
||||
boxShadow: {
|
||||
blur: "0 0 10px -1px rgba(0, 0, 0, 0.06)",
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [tailwindcssAnimate],
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"@common/assets": "workspace:*",
|
||||
"@common/components": "workspace:*",
|
||||
"@common/config": "workspace:*",
|
||||
"@fontsource-variable/noto-sans-kr": "^5.2.5",
|
||||
"@frontend-opensource/use-react-hooks": "^1.1.4",
|
||||
"@hookform/resolvers": "^4.1.3",
|
||||
"@minoru/react-dnd-treeview": "3.5.1-alpha.1",
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import "./styles/base.css";
|
||||
import "./styles/components.css";
|
||||
import "@fontsource-variable/noto-sans-kr";
|
||||
|
||||
import { AppProvider } from "./providers";
|
||||
import { cookies } from "next/headers";
|
||||
|
||||
|
||||
@@ -5,8 +5,17 @@
|
||||
@tailwind base;
|
||||
@tailwind utilities;
|
||||
|
||||
html,
|
||||
body {
|
||||
font-family: "Noto Sans KR", sans-serif;
|
||||
font-size: 10px;
|
||||
@layer base {
|
||||
:root {
|
||||
--secondary-background: rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
[data-theme="black"] {
|
||||
--secondary-background: rgba(255, 255, 255, 0.09);
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
font-family: "Noto Sans KR", sans-serif;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ const ManageButton = ({ row }: { row: Row<Board> }) => {
|
||||
size="sm"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
router.push(`/pst/${bbsTypeCd.toLowerCase()}/${bbsId}`);
|
||||
router.push(`/post/${bbsTypeCd.toLowerCase()}/${bbsId}`);
|
||||
setBbsInfo(JSON.stringify(row.original));
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -35,8 +35,8 @@ function GridViewDataTable<T>({
|
||||
onRowClick,
|
||||
}: GridViewDataTableProps<T>) {
|
||||
return (
|
||||
<>
|
||||
<div className="mb-4 flex items-center gap-2 rounded-sm border border-border p-4">
|
||||
<div className="bg-secondary-background pb-10">
|
||||
<div className="flex items-center gap-2 rounded-sm rounded-bl-none rounded-br-none border border-border bg-background p-4">
|
||||
<Checkbox
|
||||
id="all-select"
|
||||
checked={table.getIsAllPageRowsSelected()}
|
||||
@@ -49,14 +49,14 @@ function GridViewDataTable<T>({
|
||||
전체선택
|
||||
</Label>
|
||||
</div>
|
||||
<div className={cn("w-full pb-4", className)}>
|
||||
<div className={cn("w-full p-4", className)}>
|
||||
<div className="grid grid-cols-5 gap-6">
|
||||
{table.getRowModel().rows.map((row) => (
|
||||
<div
|
||||
key={row.id}
|
||||
onClick={() => onRowClick?.(row.original)}
|
||||
className={cn(
|
||||
"rounded-md border border-border p-4 shadow-md",
|
||||
"rounded-md border border-border bg-background p-4 shadow-md",
|
||||
onRowClick && "cursor-pointer hover:bg-accent",
|
||||
)}
|
||||
>
|
||||
@@ -73,7 +73,7 @@ function GridViewDataTable<T>({
|
||||
</div>
|
||||
</div>
|
||||
{viewPagination && <Pagination table={table} />}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ const ThumbImage = ({ atflCd, pstNo, thumbRefs }: ThumbImageProps) => {
|
||||
if (isLoading)
|
||||
return (
|
||||
<div className="my-6 w-full">
|
||||
<Skeleton className="mx-auto h-[16rem] w-[16rem]" />
|
||||
<Skeleton className="mx-auto h-[16rem] w-full" />
|
||||
</div>
|
||||
);
|
||||
|
||||
|
||||
@@ -124,17 +124,23 @@ function Post({ bbsId, pstNo }: { bbsId: string; pstNo: string }) {
|
||||
</div>
|
||||
<hr className="mt-8" />
|
||||
{bbsInfo?.bbsTypeCd === "BBSIMAGE" && (
|
||||
<div className="relative my-6 flex h-[75rem] w-[100rem]">
|
||||
{isLoading && <Skeleton className="h-full w-full" />}
|
||||
{imageUrl && (
|
||||
<Image
|
||||
src={imageUrl}
|
||||
className="object-cover"
|
||||
fill
|
||||
alt="썸네일 이미지"
|
||||
/>
|
||||
<>
|
||||
{isLoading && (
|
||||
<div className="relative my-6 flex h-[75rem] w-[100rem]">
|
||||
<Skeleton className="h-full w-full" />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{imageUrl && (
|
||||
<div className="relative my-6 flex h-[75rem] w-[100rem]">
|
||||
<Image
|
||||
src={imageUrl}
|
||||
className="object-cover"
|
||||
fill
|
||||
alt="썸네일 이미지"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
<pre className="font-noto min-h-[40rem] whitespace-pre-wrap p-8 text-2xl tracking-tighter text-foreground">
|
||||
{postData?.pstCn ?? ""}
|
||||
|
||||
@@ -10,6 +10,14 @@ export default {
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
noto: ['"Noto Sans KR"', "sans-serif"],
|
||||
},
|
||||
colors: {
|
||||
secondary: {
|
||||
background: "var(--secondary-background)",
|
||||
},
|
||||
},
|
||||
boxShadow: {
|
||||
blur: "0 0 10px -1px rgba(0, 0, 0, 0.06)",
|
||||
},
|
||||
|
||||
Generated
+3
@@ -172,6 +172,9 @@ importers:
|
||||
'@common/config':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/common/config
|
||||
'@fontsource-variable/noto-sans-kr':
|
||||
specifier: ^5.2.5
|
||||
version: 5.2.5
|
||||
'@frontend-opensource/use-react-hooks':
|
||||
specifier: ^1.1.4
|
||||
version: 1.1.4
|
||||
|
||||
Reference in New Issue
Block a user