-
Notifications
You must be signed in to change notification settings - Fork 116
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
7 changed files
with
147 additions
and
2 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
35 changes: 35 additions & 0 deletions
35
packages/paste-website/src/components/homepage/NewSection.tsx
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,35 @@ | ||
import { Anchor } from "@twilio-paste/anchor"; | ||
import { Box } from "@twilio-paste/box"; | ||
import * as React from "react"; | ||
|
||
import { SITE_CONTENT_MAX_WIDTH } from "../../constants"; | ||
import { WhatsNew } from "./WhatsNew"; | ||
|
||
const NewSection: React.FC = (): React.ReactElement => { | ||
return ( | ||
<Box display="flex" justifyContent="center"> | ||
<Box | ||
element="NEW_SECTION" | ||
display="flex" | ||
flexDirection="row" | ||
// width="100%" | ||
justifyContent="space-between" | ||
paddingY="space200" | ||
width="size120" | ||
maxWidth={SITE_CONTENT_MAX_WIDTH} | ||
> | ||
<WhatsNew showExternal href="#"> | ||
We're hiring a Product Designer! <Anchor href="#">Apply here</Anchor> | ||
</WhatsNew> | ||
<WhatsNew href="#"> | ||
Read more about our <Anchor href="#">latest release</Anchor> | ||
</WhatsNew> | ||
<WhatsNew href="#"> | ||
Check out <Anchor href="#">our roadmap</Anchor> | ||
</WhatsNew> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
export { NewSection }; |
27 changes: 27 additions & 0 deletions
27
packages/paste-website/src/components/homepage/SectionSeparator.tsx
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,27 @@ | ||
import { Anchor } from "@twilio-paste/anchor"; | ||
import { Box } from "@twilio-paste/box"; | ||
import { Button } from "@twilio-paste/button"; | ||
import { Heading } from "@twilio-paste/heading"; | ||
import { ArrowForwardIcon } from "@twilio-paste/icons/esm/ArrowForwardIcon"; | ||
import { LinkExternalIcon } from "@twilio-paste/icons/esm/LinkExternalIcon"; | ||
import { LogoPasteIcon } from "@twilio-paste/icons/esm/LogoPasteIcon"; | ||
import { SearchIcon } from "@twilio-paste/icons/esm/SearchIcon"; | ||
import { Text } from "@twilio-paste/text"; | ||
import * as React from "react"; | ||
|
||
interface SectionSeparatorProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
const SectionSeparator: React.FC<SectionSeparatorProps> = ({ children }) => { | ||
return ( | ||
<Box width="100%"> | ||
<Text as="span" color="colorTextWeak" fontWeight="fontWeightSemibold"> | ||
{children} | ||
</Text> | ||
<Box borderStyle="dashed" borderColor="colorBorderWeaker" element="SECTION_SEPARATOR" /> | ||
</Box> | ||
); | ||
}; | ||
|
||
export { SectionSeparator }; |
28 changes: 28 additions & 0 deletions
28
packages/paste-website/src/components/homepage/Themeable.tsx
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,28 @@ | ||
import { Box } from "@twilio-paste/box"; | ||
import { Heading } from "@twilio-paste/heading"; | ||
import * as React from "react"; | ||
|
||
import { SITE_CONTENT_MAX_WIDTH } from "../../constants"; | ||
import { SectionSeparator } from "./SectionSeparator"; | ||
|
||
const Themeable: React.FC = (): React.ReactElement => { | ||
return ( | ||
<Box display="flex" justifyContent="center" marginY="space200"> | ||
<Box element="THEMEABLE" display="flex" flexDirection="column" width="100%" maxWidth={SITE_CONTENT_MAX_WIDTH}> | ||
<SectionSeparator>Themeable and composable</SectionSeparator> | ||
<Box paddingTop="space190" display="flex" flexDirection="row" justifyContent="space-between"> | ||
<Box>start from anywhere</Box> | ||
<Box>component and primitive builder</Box> | ||
</Box> | ||
<Box maxWidth="size40" alignSelf="center" textAlign="center"> | ||
<Heading as="h3" variant="heading30"> | ||
Built with your favorite technologies, Typescript + React + Figma | ||
</Heading> | ||
<Box>ts logo react logo figma logo</Box> | ||
</Box> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
export { Themeable }; |
51 changes: 51 additions & 0 deletions
51
packages/paste-website/src/components/homepage/WhatsNew.tsx
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,51 @@ | ||
import { Anchor } from "@twilio-paste/anchor"; | ||
import { Box } from "@twilio-paste/box"; | ||
import { Button } from "@twilio-paste/button"; | ||
import { Heading } from "@twilio-paste/heading"; | ||
import { ArrowForwardIcon } from "@twilio-paste/icons/esm/ArrowForwardIcon"; | ||
import { LinkExternalIcon } from "@twilio-paste/icons/esm/LinkExternalIcon"; | ||
import { LogoPasteIcon } from "@twilio-paste/icons/esm/LogoPasteIcon"; | ||
import { SearchIcon } from "@twilio-paste/icons/esm/SearchIcon"; | ||
import { Text } from "@twilio-paste/text"; | ||
import * as React from "react"; | ||
|
||
interface WhatsNewProps { | ||
children: React.ReactNode; | ||
showExternal?: boolean; | ||
href: string; | ||
} | ||
|
||
const WhatsNew: React.FC<WhatsNewProps> = ({ showExternal, href, children }) => { | ||
return ( | ||
<Box | ||
borderStyle="solid" | ||
borderColor="colorBorderWeaker" | ||
backgroundColor="colorBackgroundBody" | ||
borderRadius="borderRadius30" | ||
boxShadow="shadowLow" | ||
width="size40" | ||
zIndex="zIndex20" | ||
paddingY="space40" | ||
paddingX="space60" | ||
textAlign="left" | ||
display="flex" | ||
alignItems="center" | ||
columnGap="space30" | ||
justifyContent="space-between" | ||
element="WHATS_NEW" | ||
> | ||
<Heading as="h4" variant="heading40" marginBottom="space0"> | ||
{children} | ||
</Heading> | ||
<Button as="a" href={href} size="circle_small" variant="secondary"> | ||
{showExternal ? ( | ||
<LinkExternalIcon decorative={false} title="external link" /> | ||
) : ( | ||
<ArrowForwardIcon decorative={false} title="internal link" /> | ||
)} | ||
</Button> | ||
</Box> | ||
); | ||
}; | ||
|
||
export { WhatsNew }; |
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