()
| 55 | const TITLE = "Simple CSS Button examples for your new project!"; |
| 56 | |
| 57 | export default function ButtonPage() { |
| 58 | |
| 59 | const copyCss = (css) => () => { |
| 60 | navigator.clipboard.writeText(css) |
| 61 | toast.dark('🚀 CSS Copied!'); |
| 62 | } |
| 63 | |
| 64 | return ( |
| 65 | <> |
| 66 | <HeaderSection |
| 67 | pageTitle="Copy & Paste CSS - Buttons Design" |
| 68 | metaTitle="CSS Buttons examples" |
| 69 | metaDescription="Find inspiration with a curated list of simple CSS Buttons design examples for your next project. Just Copy and Past the CSS of every button element!" |
| 70 | metaUrl={SITE_URL} |
| 71 | metaImage="https://i.imgur.com/6PUOmTB.png" |
| 72 | heroTitle="Simple CSS Button examples" |
| 73 | heroSubtitle="Find the inspiration for your new button design. Click on an element to copy the CSS!" |
| 74 | page="BUTTONS" |
| 75 | gradientContainer={ |
| 76 | { |
| 77 | backgroundColor: "#85FFBD", |
| 78 | backgroundImage: "linear-gradient(45deg, #85FFBD 0%, #FFFB7D 100%)" |
| 79 | } |
| 80 | } |
| 81 | /> |
| 82 | <Layout |
| 83 | title={TITLE} |
| 84 | url={SITE_URL} |
| 85 | > |
| 86 | <CompanyName>The Buttton element</CompanyName> |
| 87 | <InfoText> |
| 88 | The Button is one of the most important design elements of your website. |
| 89 | It will help to guide your visitors inside your application. |
| 90 | That's why your button needs to reflect the importance of a specif action and contrast with other page elements. |
| 91 | On a landing page, your CTA needs to be seen immediately so that your user knows what to if he is interested in your product. |
| 92 | Most of the time you will need 3 different button designs. |
| 93 | One is the primary action in a solid color to emphasize the main action of a page. |
| 94 | The secondary action with a transparent background and a solid border, and a text button for less important actions. |
| 95 | Here you will a selection of button designs from other brands to help you find inspiration for your new button design. |
| 96 | </InfoText> |
| 97 | <Flex style={{ alignItems: "start" }}> |
| 98 | {BUTTONS.map((el, i) => ( |
| 99 | <div key={i} style={{ marginRight: "72px" }}> |
| 100 | <CompanyName>{el.company} {el.designSystemUrl && (<DesignSystemLink rel="nofollow" target="_blank" href={el.designSystemUrl} >🔗 Design System</DesignSystemLink>)} </CompanyName> |
| 101 | <CompanyContainer> |
| 102 | {el.elements.map((b, j) => ( |
| 103 | <div key={j} style={{ marginRight: "24px" }}> |
| 104 | <StyledButton onClick={copyCss(b.css)} css={b.css} >Copy css</StyledButton> |
| 105 | </div> |
| 106 | ))} |
| 107 | </CompanyContainer> |
| 108 | </div> |
| 109 | ))} |
| 110 | </Flex> |
| 111 | </Layout> |
| 112 | <Footer /> |
| 113 | </> |
| 114 | ) |
nothing calls this directly
no outgoing calls
no test coverage detected