-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui: reskin dashboard #2263
base: master
Are you sure you want to change the base?
ui: reskin dashboard #2263
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ | |
}, | ||
"aliases": { | ||
"components": "components", | ||
"utils": "lib" | ||
"utils": "lib/cn" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,6 +109,7 @@ const CreateAssetDialog = ({ | |
return ( | ||
<AlertDialog open={isOpen} onOpenChange={onOpenChange}> | ||
<AlertDialogContent | ||
className="bg-surface" | ||
css={{ maxWidth: 450, minWidth: 350, px: "$5", pt: "$4", pb: "$4" }}> | ||
<AlertDialogTitle asChild> | ||
<Heading size="1">Upload Asset</Heading> | ||
|
@@ -221,6 +222,7 @@ const CreateAssetDialog = ({ | |
<Button | ||
css={{ display: "flex", ai: "center" }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here - if we touch styling of a component, we should move it entirely to Tailwind. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but again, we will create all of them from scratch, and once we do all of them should have styling with tailwind |
||
type="submit" | ||
className="bg-accent text-foreground" | ||
size="2" | ||
disabled={creating || Object.keys(videoFiles ?? {}).length === 0} | ||
variant="primary"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,9 @@ export default function FeaturesModel() { | |
|
||
return ( | ||
<AlertDialog open={shouldShowFeature}> | ||
<AlertDialogContent css={{ p: "0", borderRadius: 0 }}> | ||
<AlertDialogContent | ||
className="bg-surface" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be styled at the component level, not at every Alert Dialog level. We don't want to have to apply this class to every dialog, the underlying dialog should be responsible for that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here... once we create the Alert from scratch, all the styling will be inside the component level |
||
css={{ p: "0", borderRadius: 0 }}> | ||
<Flex className="flex flex-row gap-3"> | ||
<Box className="flex flex-col flex-1 justify-center p-5"> | ||
<Badge | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,7 @@ curl --request POST \ | |
<Flex align={"center"}> | ||
<Avatar | ||
fallback={getEmojiIcon(data?.name)} | ||
className="bg-accent pt-1" | ||
style={{ | ||
borderRadius: 10, | ||
marginRight: 10, | ||
|
@@ -140,7 +141,7 @@ curl --request POST \ | |
</Heading> | ||
</Flex> | ||
<Link href={appendProjectId("/settings")} passHref legacyBehavior> | ||
<Button as="a" size="2"> | ||
<Button className="bg-accent" as="a" size="2"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing here, we should have a handful of consistent Button styles, and then use that to re-style the dash. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, with |
||
Edit Project | ||
</Button> | ||
</Link> | ||
|
@@ -169,7 +170,8 @@ curl --request POST \ | |
gap: "$5", | ||
gridTemplateColumns: "repeat(auto-fill, minmax(46%, 1fr))", | ||
}}> | ||
<Promo | ||
<div | ||
className="bg-background border p-4 rounded-xl" | ||
css={{ | ||
width: "100%", | ||
height: "100%", | ||
|
@@ -238,6 +240,7 @@ curl --request POST \ | |
"https://docs.livepeer.org/api-reference/overview/introduction" | ||
}> | ||
<Button | ||
className="bg-accent" | ||
css={{ | ||
mt: "$2", | ||
display: "flex", | ||
|
@@ -247,7 +250,7 @@ curl --request POST \ | |
Visit documentation <ArrowRightIcon /> | ||
</Button> | ||
</Link> | ||
</Promo> | ||
</div> | ||
<Grid | ||
css={{ | ||
display: "grid", | ||
|
@@ -284,11 +287,11 @@ const Card = ({ | |
link: string; | ||
}) => { | ||
return ( | ||
<Promo | ||
<div | ||
className="bg-background border p-4 rounded-xl" | ||
css={{ | ||
width: "100%", | ||
height: "100%", | ||
boxSizing: "border-box", | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "space-between", | ||
|
@@ -326,6 +329,7 @@ const Card = ({ | |
textDecoration: "none", | ||
}}> | ||
<Button | ||
className="bg-accent" | ||
css={{ | ||
mt: "$2", | ||
display: "flex", | ||
|
@@ -340,7 +344,7 @@ const Card = ({ | |
/> | ||
</Button> | ||
</Link> | ||
</Promo> | ||
</div> | ||
); | ||
}; | ||
|
||
|
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.
When we move to tailwind, can we remove all of the previous CSS? In this, they are competing for priority (they are both applying border radius here).
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.
Yep, but we will create this component from scratch with shadcn, so it doesn't make sense to style all of it here again