Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sensecodevalue committed Apr 7, 2024
1 parent 0b2ce85 commit a3a1b32
Show file tree
Hide file tree
Showing 29 changed files with 932 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@tanstack/react-query": "5.18.1",
"@ygtang/api": "workspace:^",
"@ygtang/constants": "workspace:*",
"@ygtang/hooks": "workspace:*",
"@ygtang/http": "workspace:^",
"@ygtang/ui-components": "workspace:*",
"@ygtang/ui-styles": "workspace:*",
Expand Down
Binary file added apps/webextension/public/insp-empty.webp
Binary file not shown.
34 changes: 34 additions & 0 deletions apps/webextension/src/components/Thumbnails/Thumbnails.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { css } from "@emotion/react";
import { InspirationType } from "@ygtang/api";
import { Thumbnail } from "@ygtang/ui-components";

import { XXX } from "./mock";

export default function Thumbnails() {
return (
<div css={thumbnailWrapperCss}>
{XXX.map(
({ id, type, content, openGraphResponse, memo, tagResponses }) => (
<Thumbnail
key={id}
id={id}
type={type as InspirationType}
content={content}
tags={tagResponses}
openGraph={openGraphResponse}
memo={memo}
/>
),
)}
</div>
);
}

const thumbnailWrapperCss = css`
width: 100%;
padding-top: 16px;
padding-bottom: 5px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
`;
1 change: 1 addition & 0 deletions apps/webextension/src/components/Thumbnails/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./Thumbnails";
Loading

0 comments on commit a3a1b32

Please sign in to comment.