Skip to content

Commit

Permalink
Merge pull request #15 from novuhq/design-fixes
Browse files Browse the repository at this point in the history
feat: small border adjustments
  • Loading branch information
iampearceman authored Nov 14, 2024
2 parents 577abf3 + 23eb6de commit 17d0f5c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
36 changes: 31 additions & 5 deletions src/app/components/PlaygroundFormContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ const PlaygroundFormContainer = () => {
const { handleSubmit, isLoading } = useNotificationForm();

return (
<Flex position="relative" width="100%" maxW="600px" height="100%" minHeight="400px">
<Flex
position="relative"
width="100%"
maxW="600px"
height="100%"
minHeight="400px"
padding="1px"
borderRadius="18px"
backgroundImage="radial-gradient(97.19% 102.87% at 95.42% -2.87%, #6B7DB3 6.8%, #1F2437 65.55%)"
>
<Image
src="/images/dots.svg"
alt=""
Expand All @@ -47,8 +56,6 @@ const PlaygroundFormContainer = () => {
/>
<Flex
width="100%"
borderWidth="1px"
borderColor="#6B7DB3"
borderRadius="18px"
boxShadow="lg"
bg="linear-gradient(180deg, #1B2137 -0.49%, #111522 48.7%)"
Expand Down Expand Up @@ -76,14 +83,33 @@ const PlaygroundFormContainer = () => {
borderRadius="17px"
/>

<VStack spacing={4} alignItems="stretch" flexGrow={1} height="100%">
<VStack
spacing={4}
alignItems="stretch"
flexGrow={1}
height="100%"
position="relative"
zIndex={10}
>
<Tabs
height="calc(100% - 80px)"
onChange={(index) => {
setSelectedTheme(themes[index]);
}}
>
<TabList borderBottom="1px solid #30385A">
<TabList
borderBottom="none"
position="relative"
_before={{
content: "''",
position: "absolute",
bottom: 0,
left: 0,
right: 0,
height: "1px",
backgroundImage: "linear-gradient(90deg, #2C3353 57.33%, #3B4884 100%)",
}}
>
{themes.map((theme) => (
<Tab
key={theme.id}
Expand Down
2 changes: 1 addition & 1 deletion src/theme/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const theme = extendTheme({
background: "transparent",
color: "white",
borderRadius: "4px",
border: "1px solid rgba(255, 255, 255, 0.7)",
border: "1px solid rgba(255, 255, 255, 0.4)",
transition: "background color 0.2s",
_hover: {
background: "white",
Expand Down

0 comments on commit 17d0f5c

Please sign in to comment.