-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
2,294 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@camome/system": patch | ||
--- | ||
|
||
Modify theme tokens |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
|
||
[ -n "$CI" ] && exit 0 | ||
|
||
pnpm build | ||
pnpm build --filter="./packages/**" | ||
pnpm ci:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
[ -n "$CI" ] && exit 0 | ||
|
||
pnpm build | ||
pnpm ci:test && scripts/test-storybook.sh | ||
pnpm ci:test |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Avatar } from "@camome/core/Avatar"; | ||
import { AvatarGroup } from "@camome/core/AvatarGroup"; | ||
|
||
export default function Default() { | ||
return ( | ||
<AvatarGroup> | ||
<Avatar size="sm" /> | ||
<Avatar src="/demo/avatar-1.jpg" alt="avatar" size="sm" /> | ||
<Avatar src="/demo/avatar-2.jpg" alt="avatar" size="sm" /> | ||
</AvatarGroup> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Meta } from "@storybook/react"; | ||
|
||
import { Avatar } from "@camome/core/Avatar"; | ||
|
||
const meta: Meta<typeof Avatar> = { | ||
title: "components/AvatarGroup", | ||
component: Avatar, | ||
}; | ||
export default meta; | ||
|
||
export { default as Default } from "./Default"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Tag } from "@camome/core/Tag"; | ||
|
||
export default function Landing() { | ||
return ( | ||
<Tag | ||
variant="soft" | ||
colorScheme="primary" | ||
size="lg" | ||
startDecorator={<span>🎉</span>} | ||
> | ||
This is a tag | ||
</Tag> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.container { | ||
border: 1px solid var(--cmm-color-border-base); | ||
border-radius: var(--cmm-radius-lg); | ||
padding: 1rem; | ||
max-width: 24rem; | ||
display: grid; | ||
gap: 1rem; | ||
box-shadow: var(--cmm-shadow-xl); | ||
|
||
:root[data-theme^="dark"] & { | ||
background: var(--cmm-color-surface-1); | ||
} | ||
} | ||
|
||
.tags { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 0.25rem; | ||
} | ||
|
||
.img { | ||
width: 100%; | ||
aspect-ratio: 5 / 3; | ||
object-fit: cover; | ||
border-radius: var(--cmm-radius-sm); | ||
} | ||
|
||
.content { | ||
display: grid; | ||
gap: 0.5rem; | ||
} | ||
|
||
.title { | ||
font-weight: var(--cmm-font-weight-bold); | ||
font-size: var(--cmm-font-size-lg); | ||
line-height: 1.3; | ||
} | ||
|
||
.priceWrap { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.price { | ||
color: var(--cmm-color-primary-emphasis); | ||
font-weight: var(--cmm-font-weight-bold); | ||
font-size: var(--cmm-font-size-lg); | ||
} | ||
|
||
.small { | ||
color: var(--cmm-color-font-muted); | ||
font-size: var(--cmm-font-size-xs); | ||
} | ||
|
||
.row { | ||
display: flex; | ||
justify-content: space-between; | ||
height: fit-content; | ||
} | ||
|
||
.button { | ||
place-self: end; | ||
border-radius: var(--cmm-radius-full); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { CalendarDaysIcon } from "@heroicons/react/24/outline"; | ||
|
||
import { Button } from "@camome/core/Button"; | ||
import { Tag } from "@camome/core/Tag"; | ||
|
||
import styles from "./Card.module.scss"; | ||
|
||
export default function Card() { | ||
return ( | ||
<section className={styles.container}> | ||
<img | ||
src="/demo/okinawa-hotel.jpg" | ||
alt="Entrance of Sheraton Okinawa Sunmarina Resort, a hotel in Okinawa" | ||
className={styles.img} | ||
/> | ||
<div className={styles.content}> | ||
<div className={styles.tags}> | ||
<Tag size="sm" colorScheme="success"> | ||
30%OFF | ||
</Tag> | ||
<Tag size="sm" colorScheme="warn"> | ||
2 rooms left | ||
</Tag> | ||
</div> | ||
<h3 className={styles.title}>Sheraton Okinawa Sunmarina Resort</h3> | ||
<div className={styles.row}> | ||
<div className={styles.priceWrap}> | ||
<small className={styles.small}>1 night, 2 adults</small> | ||
<p className={styles.price}>¥62,000</p> | ||
</div> | ||
<Button | ||
size="sm" | ||
rightIcon={<CalendarDaysIcon />} | ||
className={styles.button} | ||
> | ||
Book now | ||
</Button> | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
apps/storybook/src/stories/marketing/MenuAndButton.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.container { | ||
display: flex; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Button } from "@camome/core/Button"; | ||
import { Tag } from "@camome/core/Tag"; | ||
|
||
export default function MenuAndButton() { | ||
return ( | ||
<div style={{ display: "flex", gap: "1rem" }}> | ||
<Button variant="solid" colorScheme="primary" size="md"> | ||
Button | ||
</Button> | ||
<Tag>Tag</Tag> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const meta = { | ||
title: "Marketing", | ||
}; | ||
export default meta; | ||
|
||
export { default as Card } from "./Card"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { CalendarDaysIcon } from "@heroicons/react/24/outline"; | ||
|
||
import { Button } from "@camome/core/Button"; | ||
import { Tag } from "@camome/core/Tag"; | ||
|
||
import styles from "./styles.module.scss"; | ||
|
||
export default function Card() { | ||
return ( | ||
<section className={styles.container}> | ||
{/* eslint-disable-next-line @next/next/no-img-element */} | ||
<img | ||
src="/demo/okinawa-hotel.jpg" | ||
alt="Entrance of Sheraton Okinawa Sunmarina Resort, a hotel in Okinawa" | ||
className={styles.img} | ||
/> | ||
<div className={styles.content}> | ||
<div className={styles.tags}> | ||
<Tag size="sm" colorScheme="success"> | ||
30%OFF | ||
</Tag> | ||
<Tag size="sm" colorScheme="warn"> | ||
2 rooms left | ||
</Tag> | ||
</div> | ||
<h3 className={styles.title}>Sheraton Okinawa Sunmarina Resort</h3> | ||
<div className={styles.row}> | ||
<p className={styles.price}>¥62,000</p> | ||
<Button | ||
size="sm" | ||
rightIcon={<CalendarDaysIcon />} | ||
className={styles.button} | ||
> | ||
Book now | ||
</Button> | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
} |
Oops, something went wrong.
18346b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
camome-web-beta – ./
camome-web-beta-git-main-rubik.vercel.app
camome-web-beta-rubik.vercel.app
camome-web-beta.vercel.app