├── static
├── now.json
└── launch.png
├── .firebaserc
├── src
├── fonts
│ ├── BlendaScript.otf
│ └── font.css
├── images
│ ├── avatar
│ │ ├── boy.png
│ │ ├── girl.png
│ │ └── girl2.png
│ ├── showcase
│ │ ├── anteelo.png
│ │ └── italic.png
│ ├── hero-illustration
│ │ └── card-img.png
│ ├── icons
│ │ ├── intro1.svg
│ │ ├── open.svg
│ │ ├── intro4.svg
│ │ ├── intro3.svg
│ │ ├── doc.svg
│ │ ├── intro2.svg
│ │ ├── colors.svg
│ │ └── components.svg
│ ├── logo-sketch.svg
│ ├── atomize-icon.svg
│ ├── feature-icons
│ │ ├── 4.svg
│ │ ├── 2.svg
│ │ ├── 1.svg
│ │ ├── 5.svg
│ │ ├── 6.svg
│ │ └── 3.svg
│ └── react.svg
├── components
│ ├── common
│ │ ├── ColorList.js
│ │ ├── DocsWrapper.js
│ │ ├── ColorDiv.js
│ │ ├── ShowCodeButton.js
│ │ ├── codeTheme.js
│ │ └── InfoCodeSidebar.js
│ ├── utilitiesSidebarComponent
│ │ ├── IconName.js
│ │ ├── IsOpen.js
│ │ ├── OnExit.js
│ │ ├── OnClose.js
│ │ ├── OnEnter.js
│ │ ├── IconSize.js
│ │ ├── OnExited.js
│ │ ├── Disabled.js
│ │ ├── IsLoading.js
│ │ ├── OnEntering.js
│ │ ├── OnExiting.js
│ │ ├── Undetermine.js
│ │ ├── TargetHover.js
│ │ ├── ActiveShadow.js
│ │ ├── ActiveColor.js
│ │ ├── InactiveShadow.js
│ │ ├── IconColor.js
│ │ ├── InactiveColor.js
│ │ ├── Overflow.js
│ │ ├── FocusBg.js
│ │ ├── Width.js
│ │ ├── Height.js
│ │ ├── MaxWidth.js
│ │ ├── MinWidth.js
│ │ ├── FocusBorderColor.js
│ │ ├── MaxHeight.js
│ │ ├── MinHeight.js
│ │ ├── IconHoverColor.js
│ │ ├── TagUtility.js
│ │ ├── DropdownMenuUtil.js
│ │ ├── Direction.js
│ │ ├── FocusTextColor.js
│ │ ├── FocusShadow.js
│ │ ├── Cursor.js
│ │ ├── Prefix.js
│ │ ├── Suffix.js
│ │ ├── FlexWrap.js
│ │ ├── Transform.js
│ │ ├── OpenSuffix.js
│ │ ├── CloseSuffix.js
│ │ ├── TextTransform.js
│ │ ├── TextDecor.js
│ │ ├── FlexDir.js
│ │ ├── Position.js
│ │ ├── BackgroundImage.js
│ │ ├── Responsive.js
│ │ ├── BackgroundPosition.js
│ │ ├── TextColor.js
│ │ ├── BackgroundSize.js
│ │ ├── FlexGrow.js
│ │ ├── Border.js
│ │ ├── Justify.js
│ │ ├── HoverTextColor.js
│ │ ├── TextAlign.js
│ │ ├── FontFamily.js
│ │ ├── Align.js
│ │ ├── TextWeight.js
│ │ ├── Shadows.js
│ │ ├── Display.js
│ │ ├── BorderColor.js
│ │ ├── Transition.js
│ │ ├── HoverShadow.js
│ │ ├── Margin.js
│ │ ├── Padding.js
│ │ ├── TextSize.js
│ │ ├── Background.js
│ │ ├── Order.js
│ │ ├── Rounded.js
│ │ ├── BorderRadius.js
│ │ └── Flex.js
│ ├── homepage
│ │ ├── uicomponents
│ │ │ ├── Notification.js
│ │ │ ├── Buttons.js
│ │ │ ├── UserEdit.js
│ │ │ ├── CardComponent.js
│ │ │ ├── LoginForm.js
│ │ │ └── FollowCard.js
│ │ └── craft.css
│ ├── image.js
│ ├── font.css
│ ├── functions
│ │ ├── CurrentDeviceDocs.js
│ │ └── ScrollToDocs.js
│ ├── theme-setup
│ │ ├── Breakpoints.js
│ │ ├── AvailableColors.js
│ │ ├── FontFamily.js
│ │ ├── FontSize.js
│ │ ├── Shadows.js
│ │ ├── ColumnCount.js
│ │ ├── BorderRadius.js
│ │ └── Transition.js
│ ├── layout.js
│ ├── atoms
│ │ ├── TextDocs.js
│ │ ├── DivDocs.js
│ │ └── ImageDocs.js
│ ├── seo.js
│ ├── grid-components
│ │ └── ContainerDocs.js
│ └── introduction
│ │ └── Intro.js
├── pages
│ ├── docs
│ │ └── react
│ │ │ ├── functions.js
│ │ │ ├── grid.js
│ │ │ ├── molecules.js
│ │ │ ├── theme.js
│ │ │ ├── atoms.js
│ │ │ ├── intro.js
│ │ │ ├── showcase.js
│ │ │ ├── spacing.js
│ │ │ ├── ui-templates.js
│ │ │ └── responsive.js
│ ├── 404.js
│ └── index.js
└── html.js
├── .prettierrc
├── firebase.json
├── gatsby-node.js
├── gatsby-browser.js
├── gatsby-ssr.js
├── LICENSE
├── .gitignore
├── package.json
├── 404.html
├── gatsby-config.js
└── index.html
/static/now.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 2,
3 | "alias": ["atomizecode.com"]
4 | }
5 |
--------------------------------------------------------------------------------
/.firebaserc:
--------------------------------------------------------------------------------
1 | {
2 | "projects": {
3 | "default": "atomize-6455e"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/static/launch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/proksh/atomize-docs/HEAD/static/launch.png
--------------------------------------------------------------------------------
/src/fonts/BlendaScript.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/proksh/atomize-docs/HEAD/src/fonts/BlendaScript.otf
--------------------------------------------------------------------------------
/src/images/avatar/boy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/proksh/atomize-docs/HEAD/src/images/avatar/boy.png
--------------------------------------------------------------------------------
/src/images/avatar/girl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/proksh/atomize-docs/HEAD/src/images/avatar/girl.png
--------------------------------------------------------------------------------
/src/images/avatar/girl2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/proksh/atomize-docs/HEAD/src/images/avatar/girl2.png
--------------------------------------------------------------------------------
/src/images/showcase/anteelo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/proksh/atomize-docs/HEAD/src/images/showcase/anteelo.png
--------------------------------------------------------------------------------
/src/images/showcase/italic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/proksh/atomize-docs/HEAD/src/images/showcase/italic.png
--------------------------------------------------------------------------------
/src/fonts/font.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: "headings";
3 | font-weight: 600;
4 | src: url("./BlendaScript.otf");
5 | }
6 |
--------------------------------------------------------------------------------
/src/images/hero-illustration/card-img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/proksh/atomize-docs/HEAD/src/images/hero-illustration/card-img.png
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "endOfLine": "lf",
3 | "semi": false,
4 | "singleQuote": false,
5 | "tabWidth": 2,
6 | "trailingComma": "es5"
7 | }
8 |
--------------------------------------------------------------------------------
/firebase.json:
--------------------------------------------------------------------------------
1 | {
2 | "hosting": {
3 | "public": "public",
4 | "ignore": [
5 | "firebase.json",
6 | "**/.*",
7 | "**/node_modules/**"
8 | ]
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/gatsby-node.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Implement Gatsby's Node APIs in this file.
3 | *
4 | * See: https://www.gatsbyjs.org/docs/react/node-apis/
5 | */
6 |
7 | // You can delete this file if you're not using it
8 |
--------------------------------------------------------------------------------
/gatsby-browser.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Implement Gatsby's Browser APIs in this file.
3 | *
4 | * See: https://www.gatsbyjs.org/docs/react/browser-apis/
5 | */
6 |
7 | // You can delete this file if you're not using it
8 |
--------------------------------------------------------------------------------
/gatsby-ssr.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
3 | *
4 | * See: https://www.gatsbyjs.org/docs/react/ssr-apis/
5 | */
6 |
7 | // You can delete this file if you're not using it
8 |
--------------------------------------------------------------------------------
/src/images/icons/intro1.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/images/icons/open.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/images/icons/intro4.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/images/icons/intro3.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/images/icons/doc.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/components/common/ColorList.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div } from "atomize"
3 |
4 | import ColorDiv from "./ColorDiv.js"
5 |
6 | const ColorList = ({ colorName, ...rest }) => {
7 | return (
8 |
9 | {[9, 8, 7, 6, 5, 4, 3, 2, 1].map(number => (
10 |
15 | ))}
16 |
17 | )
18 | }
19 |
20 | export default ColorList
21 |
--------------------------------------------------------------------------------
/src/components/common/DocsWrapper.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text } from "atomize"
3 | import Sidebar from "../../components/common/Sidebar"
4 |
5 | const DocsWrapper = ({ siteTitle, children }) => (
6 |
7 |
8 |
15 | {children}
16 |
17 |
18 | )
19 |
20 | export default DocsWrapper
21 |
--------------------------------------------------------------------------------
/src/images/icons/intro2.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/IconName.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const shadowCode1 = `// Add
7 | name="Add"
8 |
9 | // Dribbble
10 | name="Dribbble"`
11 |
12 | const IconName = () => {
13 | return (
14 |
15 |
16 | Icon name are to given in name props. You can click on the icon to copy
17 | the code.
18 |
19 |
20 | )
21 | }
22 |
23 | export default IconName
24 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/IsOpen.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// Open
7 | isOpen={true}
8 |
9 | // Closed
10 | isOpen={false}`
11 |
12 | const IsOpen = () => {
13 | return (
14 |
15 |
16 | isOpen is a booleon props which is used for the open state.
17 |
18 |
19 | )
20 | }
21 |
22 | export default IsOpen
23 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/OnExit.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// on exit
7 | onExit={() => console.log('exit')}`
8 |
9 | const OnExit = () => {
10 | return (
11 |
12 |
13 | onExit is a function will be fired when the component starts
14 | exit.
15 |
16 |
17 | )
18 | }
19 |
20 | export default OnExit
21 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/OnClose.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// on close
7 | onClose={() => console.log('closing')}`
8 |
9 | const OnClose = () => {
10 | return (
11 |
12 |
13 | onClose is a function will be fired when the component is
14 | closing.
15 |
16 |
17 | )
18 | }
19 |
20 | export default OnClose
21 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/OnEnter.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// on enter
7 | onEnter={() => console.log('enter')}`
8 |
9 | const OnEnter = () => {
10 | return (
11 |
12 |
13 | onEnter is a function will be fired when the component starts
14 | to enter.
15 |
16 |
17 | )
18 | }
19 |
20 | export default OnEnter
21 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/IconSize.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const shadowCode1 = `// px
7 | size="20px"
8 |
9 | // rem
10 | size="1rem"
11 |
12 | // %
13 | size="100%"`
14 |
15 | const IconSize = () => {
16 | return (
17 |
18 |
19 | Icon Size are to given as {"size={value}"} . Default value is
20 | 24px.
21 |
22 |
23 | )
24 | }
25 |
26 | export default IconSize
27 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/OnExited.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// on exited
7 | onExited={() => console.log('exited')}`
8 |
9 | const OnExited = () => {
10 | return (
11 |
12 |
13 | onExited is a function will be fired when the component has
14 | been exited.
15 |
16 |
17 | )
18 | }
19 |
20 | export default OnExited
21 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Disabled.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// disabled
7 | disabled={true}
8 |
9 | // Not disabled
10 | disabled={false}`
11 |
12 | const Disabled = () => {
13 | return (
14 |
15 |
16 | disabled is a booleon props which is used for the disabled
17 | state.
18 |
19 |
20 | )
21 | }
22 |
23 | export default Disabled
24 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/IsLoading.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// loading
7 | isLoading={true}
8 |
9 | // Not loading
10 | isLoading={false}`
11 |
12 | const IsLoading = () => {
13 | return (
14 |
15 |
16 | isLoading is a booleon props which is used for the loading
17 | state.
18 |
19 |
20 | )
21 | }
22 |
23 | export default IsLoading
24 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/OnEntering.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// on enter
7 | onEntering={() => console.log('entering')}`
8 |
9 | const OnEnter = () => {
10 | return (
11 |
12 |
13 | onEntering is a function which will be fired when the
14 | component is entering (i.e. during animation).
15 |
16 |
17 | )
18 | }
19 |
20 | export default OnEnter
21 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/OnExiting.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// on exiting
7 | onExiting={() => console.log('exiting')}`
8 |
9 | const OnExiting = () => {
10 | return (
11 |
12 |
13 | onExiting is a function will be fired when the component is
14 | exiting (i.e. during exit animation).
15 |
16 |
17 | )
18 | }
19 |
20 | export default OnExiting
21 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Undetermine.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// undetermine
7 | undetermine={true}
8 |
9 | // Not undetermine
10 | undetermine={false}`
11 |
12 | const Undetermine = () => {
13 | return (
14 |
15 |
16 | undetermine is a booleon props which is used for the
17 | undetermine state.
18 |
19 |
20 | )
21 | }
22 |
23 | export default Undetermine
24 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/TargetHover.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// hover target
7 | targetHover={true}
8 |
9 | // click target
10 | targetHover={false}`
11 |
12 | const TargetHover = () => {
13 | return (
14 |
15 |
16 | targethover is a booleon props which is used for changing the
17 | target from click to hover.
18 |
19 |
20 | )
21 | }
22 |
23 | export default TargetHover
24 |
--------------------------------------------------------------------------------
/src/pages/docs/react/functions.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import ScrollToDocs from "../../../components/functions/ScrollToDocs"
3 | import CurrentDeviceDocs from "../../../components/functions/CurrentDeviceDocs"
4 |
5 | import Layout from "../../../components/layout"
6 | import SEO from "../../../components/seo"
7 | import DocsWrapper from "../../../components/common/DocsWrapper"
8 |
9 | const Functions = () => (
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 | )
21 |
22 | export default Functions
23 |
--------------------------------------------------------------------------------
/src/components/common/ColorDiv.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text } from "atomize"
3 |
4 | const ColorDiv = ({ colorName, shade = "" }) => {
5 | return (
6 |
7 |
14 |
20 | {colorName}
21 |
22 | {shade}
23 |
24 |
25 | )
26 | }
27 |
28 | export default ColorDiv
29 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/ActiveShadow.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// Responsive
7 | activeShadow={{ xs: '3', sm: '2' }}
8 |
9 | // 2
10 | activeShadow="2"
11 |
12 | // 3
13 | activeShadow="3"
14 |
15 | // 4
16 | activeShadow="4"`
17 |
18 | const ActiveShadow = () => {
19 | return (
20 |
21 |
22 | activeShadow is used for the shadow when state is active.
23 |
24 |
25 | )
26 | }
27 |
28 | export default ActiveShadow
29 |
--------------------------------------------------------------------------------
/src/pages/docs/react/grid.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import ContainerDocs from "../../../components/grid-components/ContainerDocs"
4 | import RowColDocs from "../../../components/grid-components/RowColDocs"
5 |
6 | import Layout from "../../../components/layout"
7 | import SEO from "../../../components/seo"
8 | import DocsWrapper from "../../../components/common/DocsWrapper"
9 |
10 | const Grid = () => (
11 |
12 |
16 |
17 |
18 |
19 |
20 |
21 | )
22 |
23 | export default Grid
24 |
--------------------------------------------------------------------------------
/src/components/common/ShowCodeButton.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Button } from "atomize"
3 |
4 | const ShowCodeButton = ({ selectedValue, onClick, value }) => {
5 | return (
6 | onClick(value)}
8 | pos="absolute"
9 | top="0"
10 | right="-2.5rem"
11 | p={{ x: "0.25rem" }}
12 | h="1.75rem"
13 | w="1.75rem"
14 | textSize="tiny"
15 | textColor={selectedValue === value ? "white" : "medium"}
16 | bg={selectedValue === value ? "info800" : "white"}
17 | hoverBg={!selectedValue && "gray500"}
18 | rounded="circle"
19 | shadow="3"
20 | >
21 | {"< >"}
22 |
23 | )
24 | }
25 |
26 | export default ShowCodeButton
27 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/ActiveColor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// info
7 | activeColor="info800"
8 |
9 | // success
10 | activeColor="success800"
11 |
12 | // warning
13 | activeColor="warning800"
14 |
15 | // danger
16 | activeColor="danger800"`
17 |
18 | const ActiveColor = () => {
19 | return (
20 |
21 |
22 | activeColor is used for the color when state is active.
23 |
24 |
25 | )
26 | }
27 |
28 | export default ActiveColor
29 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/InactiveShadow.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// Responsive
7 | inactiveShadow={{ xs: '3', sm: '2' }}
8 |
9 | // 2
10 | inactiveShadow="2"
11 |
12 | // 3
13 | inactiveShadow="3"
14 |
15 | // 4
16 | inactiveShadow="4"`
17 |
18 | const InactiveShadow = () => {
19 | return (
20 |
21 |
22 | inactiveShadow is used for the shadow when state is inactive.
23 |
24 |
25 | )
26 | }
27 |
28 | export default InactiveShadow
29 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/IconColor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const shadowCode1 = `// info700
7 | color="info700"
8 |
9 | // warning700
10 | color="warning700"
11 |
12 | // danger700
13 | color="danger700"
14 |
15 | // success700
16 | color="success700"`
17 |
18 | const IconColor = () => {
19 | return (
20 |
21 |
22 | Icon color are to given as {"color={value}"} . Value can be
23 | any color from the theme.
24 |
25 |
26 | )
27 | }
28 |
29 | export default IconColor
30 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/InactiveColor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// info
7 | inactiveColor="info800"
8 |
9 | // success
10 | inactiveColor="success800"
11 |
12 | // warning
13 | inactiveColor="warning800"
14 |
15 | // danger
16 | inactiveColor="danger800"`
17 |
18 | const InactiveColor = () => {
19 | return (
20 |
21 |
22 | inactiveColor is used for the color when state is not active.
23 |
24 |
25 | )
26 | }
27 |
28 | export default InactiveColor
29 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Overflow.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const cursorCode1 = `// Directional
7 | overflow="visible scroll"
8 |
9 | // scroll
10 | overflow="scroll"
11 |
12 | // hidden
13 | overflow="hidden"
14 |
15 | // visible
16 | overflow="visible"
17 |
18 | // auto
19 | overflow="auto"`
20 |
21 | const Overflow = () => {
22 | return (
23 |
24 |
25 | Overflow can be defined by {"overflow={value}"}
26 |
27 |
28 | )
29 | }
30 |
31 | export default Overflow
32 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/FocusBg.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// bg warning
7 | focusBg="warning700"
8 |
9 | // bg info
10 | focusBg="info700"
11 |
12 | // bg danger
13 | focusBg="danger700"
14 |
15 | // bg success
16 | focusBg="success700"`
17 |
18 | const FocusBackground = () => {
19 | return (
20 |
21 |
22 | focusBg can be used to specify the background color on focus.
23 |
24 |
25 | )
26 | }
27 |
28 | export default FocusBackground
29 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Width.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// Normal Width
7 | w="3rem"
8 |
9 | // Responsive Width
10 | w={{ xs: 'auto', md: '100vw' }}`
11 |
12 | const Width = () => {
13 | return (
14 |
15 |
16 | To keep the design under 8px grid, we keep the html font size to 16px.
17 | Though you can use any value to height & width. We recommend using{" "}
18 | rem to specify Height & Width.
19 |
20 |
21 | )
22 | }
23 |
24 | export default Width
25 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Height.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// Normal Height
7 | h="3rem"
8 |
9 | // Responsive Height
10 | h={{ xs: 'auto', md: '100vh' }}`
11 |
12 | const Height = () => {
13 | return (
14 |
15 |
16 | To keep the design under 8px grid, we keep the html font size to 16px.
17 | Though you can use any value to height & width. We recommend using{" "}
18 | rem to specify Height & Width.
19 |
20 |
21 | )
22 | }
23 |
24 | export default Height
25 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/MaxWidth.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// Normal Width
7 | maxW="3rem"
8 |
9 | // Responsive Width
10 | maxW={{ xs: 'auto', md: '100vw' }}`
11 |
12 | const MaxWidth = () => {
13 | return (
14 |
15 |
16 | To keep the design under 8px grid, we keep the html font size to 16px.
17 | Though you can use any value to height & width. We recommend using{" "}
18 | rem to specify Height & Width.
19 |
20 |
21 | )
22 | }
23 |
24 | export default MaxWidth
25 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/MinWidth.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// Normal Width
7 | minW="3rem"
8 |
9 | // Responsive Width
10 | minW={{ xs: 'auto', md: '100vw' }}`
11 |
12 | const MinWidth = () => {
13 | return (
14 |
15 |
16 | To keep the design under 8px grid, we keep the html font size to 16px.
17 | Though you can use any value to height & width. We recommend using{" "}
18 | rem to specify Height & Width.
19 |
20 |
21 | )
22 | }
23 |
24 | export default MinWidth
25 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/FocusBorderColor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const borderCode2 = `// Info
7 | foucsBorderColor="info800"
8 |
9 | // Warning
10 | foucsBorderColor="warning800"
11 |
12 | // Danger
13 | foucsBorderColor="danger800"
14 |
15 | // Success
16 | foucsBorderColor="success800"`
17 |
18 | const FocusBorderColor = () => {
19 | return (
20 |
21 |
22 | focusBorderColor can be given to change the border color on
23 | focus.
24 |
25 |
26 | )
27 | }
28 |
29 | export default FocusBorderColor
30 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/MaxHeight.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// Normal Height
7 | maxH="3rem"
8 |
9 | // Responsive Height
10 | maxH={{ xs: 'auto', md: '100vh' }}`
11 |
12 | const MaxHeight = () => {
13 | return (
14 |
15 |
16 | To keep the design under 8px grid, we keep the html font size to 16px.
17 | Though you can use any value to height & width. We recommend using{" "}
18 | rem to specify Height & Width.
19 |
20 |
21 | )
22 | }
23 |
24 | export default MaxHeight
25 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/MinHeight.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// Normal Height
7 | minH="3rem"
8 |
9 | // Responsive Height
10 | minH={{ xs: 'auto', md: '100vh' }}`
11 |
12 | const MinHeight = () => {
13 | return (
14 |
15 |
16 | To keep the design under 8px grid, we keep the html font size to 16px.
17 | Though you can use any value to height & width. We recommend using{" "}
18 | rem to specify Height & Width.
19 |
20 |
21 | )
22 | }
23 |
24 | export default MinHeight
25 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/IconHoverColor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const shadowCode1 = `// info700
7 | hoverColor="info700"
8 |
9 | // warning700
10 | hoverColor="warning700"
11 |
12 | // danger700
13 | hoverColor="danger700"
14 |
15 | // success700
16 | hoverColor="success700"`
17 |
18 | const IconHoverColor = () => {
19 | return (
20 |
21 |
22 | Icon color can be changed on hover by {"hoverColor={value}"} .
23 | Value can be any color from the theme.
24 |
25 |
26 | )
27 | }
28 |
29 | export default IconHoverColor
30 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/TagUtility.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag, Row, Col } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const shadowCode1 = `// Span
8 | tag="span"
9 |
10 | // Label
11 | tag="label"
12 |
13 | // h1
14 | tag="h1"
15 |
16 | // header
17 | tag="header"
18 |
19 | // section
20 | tag="section"`
21 |
22 | const TagUtility = () => {
23 | return (
24 |
25 |
26 | Tag can be given in order to change the default tag to some other by{" "}
27 | {"tag={value}"}
28 |
29 |
30 | )
31 | }
32 |
33 | export default TagUtility
34 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/DropdownMenuUtil.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// Menu
7 | menu={
8 |
9 | {["Option 1", "Option 2", "Option 3"].map((name, index) => (
10 |
11 | {name}
12 |
13 | ))}
14 |
15 | }`
16 |
17 | const DropdownMenuUtil = () => {
18 | return (
19 |
20 |
21 | menu is used define the content inside the dropdown menu. It
22 | must be wrapped around the {" "} .
23 |
24 |
25 | )
26 | }
27 |
28 | export default DropdownMenuUtil
29 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Direction.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// bottomleft
7 | direction="bottomleft"
8 |
9 | // bottomright
10 | direction="bottomright"
11 |
12 | // topright
13 | direction="topright"
14 |
15 | // topleft
16 | direction="topleft"
17 |
18 | // righttop
19 | direction="righttop"
20 |
21 | // lefttop
22 | direction="lefttop"`
23 |
24 | const Direction = () => {
25 | return (
26 |
27 |
28 | direction is used to specify the direction in which menu
29 | opens. Its values can be any one of below.
30 |
31 |
32 | )
33 | }
34 |
35 | export default Direction
36 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/FocusTextColor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Text, Tag, Div } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const textCode1 = `// Responsive
8 | focusTextColor={{ xs: 'medium', md: 'black' }}
9 |
10 | // info700
11 | focusTextColor="info700"
12 |
13 | // warning700
14 | focusTextColor="warning700"
15 |
16 | // danger700
17 | focusTextColor="danger700"
18 |
19 | // success700
20 | focusTextColor="success700"`
21 |
22 | const FocusTextColor = () => {
23 | return (
24 |
25 |
26 | Focus Text Color can be changed by passing{" "}
27 | {"focusTextColor={value}"} .
28 |
29 |
30 | )
31 | }
32 |
33 | export default FocusTextColor
34 |
--------------------------------------------------------------------------------
/src/pages/404.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 |
4 | import { Div, Text, Button } from "atomize"
5 | import Layout from "../components/layout"
6 | import SEO from "../components/seo"
7 |
8 | const NotFoundPage = () => (
9 |
10 |
11 |
19 |
20 | Not Found
21 |
22 |
23 | You just hit a route that doesn't exist... the sadness.
24 |
25 |
26 |
27 | Go to Home
28 |
29 |
30 |
31 |
32 | )
33 |
34 | export default NotFoundPage
35 |
--------------------------------------------------------------------------------
/src/pages/docs/react/molecules.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import DropdownDocs from "../../../components/molecules/DropdownDocs"
4 | import ModalDocs from "../../../components/molecules/ModalDocs"
5 | import SideDrawerDocs from "../../../components/molecules/SideDrawerDocs"
6 | import NotificationDocs from "../../../components/molecules/NotificationDocs"
7 |
8 | import Layout from "../../../components/layout"
9 | import SEO from "../../../components/seo"
10 | import DocsWrapper from "../../../components/common/DocsWrapper"
11 |
12 | const Molecules = () => (
13 |
14 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | )
26 |
27 | export default Molecules
28 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/FocusShadow.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag, Row, Col } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const shadowCode1 = `// Responsive
8 | focusShadow={{ xs: '4', md: '3', lg: '1' }}
9 |
10 | // Shadow 1
11 | focusShadow="1"
12 |
13 | // Shadow 2
14 | focusShadow="2"
15 |
16 | // Shadow 3
17 | focusShadow="3"
18 |
19 | // Shadow 4
20 | focusShadow="4"
21 |
22 | // Shadow 5
23 | focusShadow="5"`
24 |
25 | const FocusShadow = () => {
26 | return (
27 |
28 |
29 | Focus Shadow can be changed through {"focusShadow={value}"} .
30 | You can edit or add shadows by
31 | using theme.
32 |
33 |
34 | )
35 | }
36 |
37 | export default FocusShadow
38 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Cursor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const cursorCode1 = `// not-allowed
7 | cursor="not-allowed"
8 |
9 | // pointer
10 | cursor="pointer"
11 |
12 | // crosshair
13 | cursor="crosshair"`
14 |
15 | const Cursor = () => {
16 | return (
17 |
18 |
19 | Cursor can be defined by {"cursor={value}"}
20 |
21 |
22 | not-allowed
23 |
24 |
25 | pointer
26 |
27 |
28 | crosshair
29 |
30 |
31 | )
32 | }
33 |
34 | export default Cursor
35 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Prefix.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const displayCode1 = `// Left Icon
7 | prefix={
8 |
15 | }
16 |
17 | // Right Icon
18 | prefix={
19 |
26 | }`
27 |
28 | const Prefix = () => {
29 | return (
30 |
31 |
32 | prefix is used to place something before the component.
33 | Generally used to place the icons with the component.
34 |
35 |
36 | )
37 | }
38 |
39 | export default Prefix
40 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Suffix.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const displayCode1 = `// Left Icon
7 | suffix={
8 |
15 | }
16 |
17 | // Right Icon
18 | suffix={
19 |
26 | }`
27 |
28 | const Suffix = () => {
29 | return (
30 |
31 |
32 | suffix is used to place something after the component.
33 | Generally used to place the icons with the component.
34 |
35 |
36 | )
37 | }
38 |
39 | export default Suffix
40 |
--------------------------------------------------------------------------------
/src/images/logo-sketch.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/FlexWrap.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// Wrap
7 | flexWrap="wrap"
8 |
9 | // No Wrap
10 | flexWrap="nowrap"
11 |
12 | // Reverse Wrap
13 | flexWrap="wrap-reverse"
14 |
15 | // Responsive Flex Wrap
16 | flexWrap={{ xs: 'nowrap', md: 'wrap' }}`
17 |
18 | const FlexWrap = () => {
19 | return (
20 | <>
21 |
22 |
23 | flexWrap is equivalent to flex-wrap . It is used to define
24 | weather the blocks inside the flex needs to be wraped when their size
25 | is greater than it.
26 |
27 |
28 | Note: flexWrap only works when display flex .
29 |
30 |
31 | >
32 | )
33 | }
34 |
35 | export default FlexWrap
36 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Transform.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const transformCode1 = `// Responsive Transform
7 | transform={{ xs: 'translateY(50%)', md: 'translateY(0)' }}
8 |
9 | // Translate
10 | transform='translate(50%, 50%)'
11 |
12 | // Scale
13 | transform='scale(1.3, 1)'
14 |
15 | // Skew
16 | transform='skew(1.1, 1.5)'`
17 |
18 | const Transform = () => {
19 | return (
20 |
21 |
22 | Transform can be defined by {"transform={value}"}
23 |
24 | {/* */}
32 |
33 | )
34 | }
35 |
36 | export default Transform
37 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/OpenSuffix.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const displayCode1 = `// Left Icon
7 | openSuffix={
8 |
15 | }
16 |
17 | // Right Icon
18 | openSuffix={
19 |
26 | }`
27 |
28 | const OpenSuffix = () => {
29 | return (
30 |
31 |
32 | openSuffix is used to place something after the component
33 | when the component is active. Generally used to place the icons with the
34 | component.
35 |
36 |
37 | )
38 | }
39 |
40 | export default OpenSuffix
41 |
--------------------------------------------------------------------------------
/src/images/atomize-icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/CloseSuffix.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const displayCode1 = `// Left Icon
7 | closeSuffix={
8 |
15 | }
16 |
17 | // Right Icon
18 | closeSuffix={
19 |
26 | }`
27 |
28 | const CloseSuffix = () => {
29 | return (
30 |
31 |
32 | closeSuffix is used to place something after the component
33 | when the component is inactive. Generally used to place the icons with
34 | the component.
35 |
36 |
37 | )
38 | }
39 |
40 | export default CloseSuffix
41 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/TextTransform.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Text, Tag, Div } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const textCode1 = `// uppercase
8 | textTransform="uppercase"
9 |
10 | // lowercase
11 | textTransform="lowercase"
12 |
13 | // capitalize
14 | textTransform="capitalize"`
15 |
16 | const TextTransform = () => {
17 | return (
18 |
19 |
20 | Text Transform can be given to text by{" "}
21 | {"textTransform={value}"} .
22 |
23 |
24 |
25 | uppercase
26 |
27 |
28 | lowercase
29 |
30 |
31 | capitalize
32 |
33 |
34 | )
35 | }
36 |
37 | export default TextTransform
38 |
--------------------------------------------------------------------------------
/src/components/homepage/uicomponents/Notification.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import { Text, Div, Icon } from "atomize"
4 |
5 | const Notification = ({ ...rest }) => (
6 |
21 |
22 |
28 | Notification Message
29 |
30 |
31 |
32 | )
33 |
34 | Notification.defaultProps = {
35 | pos: { xs: "static", md: "absolute" },
36 | m: { xs: "1rem", md: "0" },
37 | d: { xs: "none", lg: "flex" },
38 | }
39 |
40 | export default Notification
41 |
--------------------------------------------------------------------------------
/src/images/icons/colors.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/components/image.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { useStaticQuery, graphql } from "gatsby"
3 | import Img from "gatsby-image"
4 |
5 | /*
6 | * This component is built using `gatsby-image` to automatically serve optimized
7 | * images with lazy loading and reduced file sizes. The image is loaded using a
8 | * `useStaticQuery`, which allows us to load the image from directly within this
9 | * component, rather than having to pass the image data down from pages.
10 | *
11 | * For more information, see the docs:
12 | * - `gatsby-image`: https://gatsby.dev/gatsby-image
13 | * - `useStaticQuery`: https://www.gatsbyjs.org/docs/react/use-static-query/
14 | */
15 |
16 | const Image = () => {
17 | const data = useStaticQuery(graphql`
18 | query {
19 | placeholderImage: file(relativePath: { eq: "gatsby-astronaut.png" }) {
20 | childImageSharp {
21 | fluid(maxWidth: 300) {
22 | ...GatsbyImageSharpFluid
23 | }
24 | }
25 | }
26 | }
27 | `)
28 |
29 | return
30 | }
31 |
32 | export default Image
33 |
--------------------------------------------------------------------------------
/src/images/feature-icons/4.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/pages/index.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import Layout from "../components/layout"
4 | import SEO from "../components/seo"
5 | import Header from "../components/common/header"
6 | import HeroSection from "../components/homepage/HeroSection"
7 | import Introducing from "../components/homepage/Introducing"
8 | import Features from "../components/homepage/Features"
9 | import Craft from "../components/homepage/Craft"
10 | import DesignDevelopment from "../components/homepage/DesignDevelopment"
11 | import GetStartedBanner from "../components/homepage/GetStartedBanner"
12 | import Footer from "../components/homepage/Footer"
13 |
14 | const IndexPage = () => (
15 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | )
30 |
31 | export default IndexPage
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 gatsbyjs
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/TextDecor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Text, Tag, Div } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const textCode1 = `// none
8 | textDecor="none"
9 |
10 | // overline
11 | textDecor="overline"
12 |
13 | // line-through
14 | textDecor="line-through"
15 |
16 | // underline
17 | textDecor="underline"`
18 |
19 | const TextDecor = () => {
20 | return (
21 |
22 |
23 | Text Decoration can be given to text by {"textDecor={value}"}
24 | .
25 |
26 |
27 | overline
28 |
29 |
30 | line-through
31 |
32 |
33 | underline
34 |
35 |
36 | none
37 |
38 |
39 | )
40 | }
41 |
42 | export default TextDecor
43 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/FlexDir.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// Row
7 | flexDir="row"
8 |
9 | // Column
10 | flexDir="column"
11 |
12 | // Column in mobile, Row in large device
13 | flexDir={{ xs: 'column', lg: 'row' }}`
14 |
15 | const FlexDir = () => {
16 | return (
17 | <>
18 |
19 |
20 | Flex Direction is equivalent to flex-direction .
21 |
22 |
31 |
32 | Note: Align only works when display is flex
33 |
34 |
35 | >
36 | )
37 | }
38 |
39 | export default FlexDir;
40 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Position.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const positionCode1 = `// Responsive
7 | pos={{ xs: 'fixed', lg: 'static' }}
8 |
9 | // Static
10 | pos="static"
11 |
12 | // Relative
13 | pos="relative"
14 |
15 | // Absolute
16 | pos="absolute"
17 | top="0"
18 | right="0"
19 |
20 | // Fixed
21 | pos="fixed"
22 | top="50%"
23 | left="5rem"`
24 |
25 | const Position = () => {
26 | return (
27 |
28 |
29 | Position of the elements can be given by {"pos={value}"} .
30 | top, left, right, bottom can also be given with appropriate pos.
31 |
32 |
42 |
43 | )
44 | }
45 |
46 | export default Position
47 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/BackgroundImage.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const backgroundCode = `// With background Image
8 | bgImg="https://images.unsplash.com/photo-1561212024-cb9ad0c33195?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&dpr=1&auto=format&fit=crop&w=2199&h=594&q=80"
9 | bgSize="cover"
10 | bgPos="center"`
11 |
12 | const BackgroundImage = () => {
13 | return (
14 |
15 |
16 | An image can also be given in the background by{" "}
17 | {"bgImg={value}"} , {"bgSize={value}"} &{" "}
18 | {"bgPos={value}"}
19 |
20 |
21 |
27 |
28 | )
29 | }
30 |
31 | export default BackgroundImage
32 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Responsive.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Row, Col, Text, Tag, Icon } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const responsiveCode = `// Values are given as
7 | {
8 | xs: { 'value for mobile devices & larger' },
9 | sm: { 'value for larger mobile & larger' },
10 | md: { 'value for tablets & larger' },
11 | lg: { 'value for small desktop & larger' },
12 | xl: { 'value for large desktop' }
13 | }`
14 |
15 | class Responsive extends React.Component {
16 | render() {
17 | return (
18 |
19 |
20 |
21 | Responsive
22 |
23 |
24 | Almost all the property can be made responsive by passing an array
25 | of xs , sm , md , lg &{" "}
26 | xl to the end value.
27 |
28 |
29 |
30 | )
31 | }
32 | }
33 |
34 | export default Responsive
35 |
--------------------------------------------------------------------------------
/src/components/homepage/uicomponents/Buttons.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import { Button, Div, Icon } from "atomize"
4 |
5 | const Buttons = () => (
6 |
16 | {[
17 | { icon: "HeartSolid", color: "danger700" },
18 | { icon: "Eye", color: "info700" },
19 | { icon: "EditSolid", color: "warning700" },
20 | { icon: "Attachment", color: "success700" },
21 | { icon: "Play", color: "danger700" },
22 | { icon: "Download", color: "info700" },
23 | ].map((button, index) => (
24 |
35 |
36 |
37 | ))}
38 |
39 | )
40 |
41 | export default Buttons
42 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/BackgroundPosition.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// Center
7 | bgPos="center"
8 |
9 | // Top
10 | bgPos="top"
11 |
12 | // Bottom
13 | bgPos="bottom"
14 |
15 | // in %
16 | bgPos="50%, 10%"`
17 |
18 | const BackgroundPosition = () => {
19 | return (
20 |
21 |
22 | bgPos can be specified along with bgImg as {"bgPos={value}"}
23 |
24 |
25 |
26 | {["center", "top", "bottom", "50%, 10%"].map(value => (
27 |
28 |
34 |
35 | ))}
36 |
37 |
38 |
39 | )
40 | }
41 |
42 | export default BackgroundPosition
43 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Runtime data
9 | pids
10 | *.pid
11 | *.seed
12 | *.pid.lock
13 |
14 | # Directory for instrumented libs generated by jscoverage/JSCover
15 | lib-cov
16 |
17 | # Coverage directory used by tools like istanbul
18 | coverage
19 |
20 | # nyc test coverage
21 | .nyc_output
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Bower dependency directory (https://bower.io/)
27 | bower_components
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (http://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # Typescript v1 declaration files
40 | typings/
41 |
42 | # Optional npm cache directory
43 | .npm
44 |
45 | # Optional eslint cache
46 | .eslintcache
47 |
48 | # Optional REPL history
49 | .node_repl_history
50 |
51 | # Output of 'npm pack'
52 | *.tgz
53 |
54 | # dotenv environment variables file
55 | .env
56 |
57 | # gatsby files
58 | .cache/
59 | public
60 |
61 | # Mac files
62 | .DS_Store
63 |
64 | # Yarn
65 | yarn-error.log
66 | .pnp/
67 | .pnp.js
68 |
69 | # Yarn Integrity file
70 | .yarn-integrity
71 |
72 |
73 | .firebase/
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/TextColor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Text, Tag, Div } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const textCode1 = `// Responsive
8 | textColor={{ xs: 'medium', md: 'black' }}
9 |
10 | // info700
11 | textColor="info700"
12 |
13 | // warning700
14 | textColor="warning700"
15 |
16 | // danger700
17 | textColor="danger700"
18 |
19 | // success700
20 | textColor="success700"`
21 |
22 | const TextColor = () => {
23 | return (
24 |
25 |
26 | Text Color can be changed by passing {"textColor={value}"} .
27 |
28 |
29 |
30 | Info700
31 |
32 |
33 | Warning700
34 |
35 |
36 | Danger700
37 |
38 |
39 | Success700
40 |
41 |
42 | )
43 | }
44 |
45 | export default TextColor
46 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/BackgroundSize.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const backgroundCode = `// Contain
7 | bgSize="contain"
8 | bgRepeat="no-repeat"
9 |
10 | // Cover
11 | bgSize="cover"
12 |
13 | // Auto
14 | bgSize="auto"`
15 |
16 | const BackgroundSize = () => {
17 | return (
18 |
19 |
20 | bgPos can be specified along with bgImg as {"bgPos={value}"}
21 |
22 |
23 |
24 | {["contain", "cover", "auto"].map(value => (
25 |
26 |
34 |
35 | ))}
36 |
37 |
38 |
39 | )
40 | }
41 |
42 | export default BackgroundSize
43 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/FlexGrow.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// Flex Grow
7 | flexGrow="1"
8 |
9 | // Responsive Flex Grow
10 | flexGrow={{ xs: '1', sm: '4', md: '2', lg: '3', xl: '2' }}`
11 |
12 | const FlexGrow = () => {
13 | return (
14 | <>
15 |
16 |
17 | flexGrow is equivalent to flex-grow .
18 |
19 |
26 |
27 | flexGrow="1"
28 |
29 |
30 | flexGrow="2"
31 |
32 |
33 |
34 | Note: flexGrow only works when display is flex of the outer
35 | component.
36 |
37 |
38 | >
39 | )
40 | }
41 |
42 | export default FlexGrow
43 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Border.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag, Row, Col } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const borderCode1 = `// 1px solid
8 | border="1px solid"
9 | borderColor="black"
10 |
11 | // 2px solid
12 | border="2px solid"
13 | borderColor="black"
14 |
15 | // 1px dashed
16 | border="1px dashed"
17 | borderColor="black"
18 |
19 | // 2px dashed
20 | border="2px dashed"
21 | borderColor="black"`
22 |
23 | const Border = () => {
24 | return (
25 |
26 |
27 | Border can be defined by using 2 properties - i.e.,{" "}
28 | {"border={value}"} & {"borderColor={value}"} .
29 |
30 |
31 |
32 |
33 | {["1px solid", "2px solid", "1px dashed", "2px dashed"].map(value => (
34 |
35 |
41 |
42 | ))}
43 |
44 |
45 |
46 | )
47 | }
48 |
49 | export default Border
50 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Justify.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const code = `// center
7 | justify="center"
8 |
9 | // flex-start
10 | justify="flex-start"
11 |
12 | // flex-end
13 | justify="flex-end"
14 |
15 | // space-between
16 | justify="space-between"
17 |
18 | // space-around
19 | justify="space-around"
20 |
21 | // space-around on mobile, center on large device
22 | justify={{ xs: "space-around", lg: "center" }}
23 | `
24 |
25 | const Justify = () => {
26 | return (
27 |
28 |
29 | It is equivalent to justify-content of css. justify property can be
30 | given by using {"justify={value}"} .
31 |
32 |
33 |
43 |
44 | Note: justify only works when display is flex
45 |
46 |
47 | )
48 | }
49 |
50 | export default Justify
51 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/HoverTextColor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Text, Tag, Div } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const textCode1 = `// Responsive
8 | hoverTextColor={{ xs: 'medium', md: 'black' }}
9 |
10 | // info700
11 | hoverTextColor="info700"
12 |
13 | // warning700
14 | hoverTextColor="warning700"
15 |
16 | // danger700
17 | hoverTextColor="danger700"
18 |
19 | // success700
20 | hoverTextColor="success700"`
21 |
22 | const HoverTextColor = () => {
23 | return (
24 |
25 |
26 | Hover Text Color can be changed by passing{" "}
27 | {"hoverTextColor={value}"} .
28 |
29 |
30 |
31 | Info700
32 |
33 |
34 | Warning700
35 |
36 |
37 | Danger700
38 |
39 |
40 | Success700
41 |
42 |
43 | )
44 | }
45 |
46 | export default HoverTextColor
47 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/TextAlign.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Text, Tag, Div } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const textCode1 = `// Responsive
8 | textAlign={{ xs: "center", lg: "left" }}
9 |
10 | // left
11 | textAlign="left"
12 |
13 | // center
14 | textAlign="center"
15 |
16 | // right
17 | textAlign="right"
18 |
19 | // justify
20 | textAlign="justify"`
21 |
22 | const TextTransform = () => {
23 | return (
24 |
25 |
26 | TextAlign can be given to text by {"textAlign={value}"} .
27 |
28 |
29 |
30 | This is left align text
31 |
32 |
33 | This is center aligned text
34 |
35 |
36 | This is right aligned text
37 |
38 |
39 | This text is justified, and you need to pass textAlign as justify for
40 | it.
41 |
42 |
43 | )
44 | }
45 |
46 | export default TextTransform
47 |
--------------------------------------------------------------------------------
/src/components/font.css:
--------------------------------------------------------------------------------
1 | /** Ultra Light */
2 | @font-face {
3 | font-family: "San Francisco";
4 | font-weight: 100;
5 | src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff");
6 | }
7 |
8 | /** Thin */
9 | @font-face {
10 | font-family: "San Francisco";
11 | font-weight: 200;
12 | src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-thin-webfont.woff");
13 | }
14 |
15 | /** Regular */
16 | @font-face {
17 | font-family: "San Francisco";
18 | font-weight: 300;
19 | src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff");
20 | }
21 |
22 | /** Medium */
23 | @font-face {
24 | font-family: "San Francisco";
25 | font-weight: 500;
26 | src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-medium-webfont.woff");
27 | }
28 |
29 | /** Semi Bold */
30 | @font-face {
31 | font-family: "San Francisco";
32 | font-weight: 600;
33 | src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-semibold-webfont.woff");
34 | }
35 |
36 | /** Bold */
37 | @font-face {
38 | font-family: "San Francisco";
39 | font-weight: 700;
40 | src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-bold-webfont.woff");
41 | }
42 |
--------------------------------------------------------------------------------
/src/images/feature-icons/2.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/FontFamily.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Icon, Text, Tag } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const textCode1 = `// Responsive Font Family
8 | fontFamily={{ xs: 'primmary', xs: 'secondary' }}
9 |
10 | // Primary
11 | fontFamily="primary"
12 |
13 | // Secondary
14 | fontFamily="secondary"
15 |
16 | // Code
17 | fontFamily="code"`
18 |
19 | const FontFamily = () => {
20 | return (
21 |
22 |
23 | There are three types of font family available by deafult -{" "}
24 | primary , secondary & code . This font
25 | family can be provided by fontFamily prop to the component.
26 | You can edit or add a new font{" "}
27 | varible by using theme.
28 |
29 |
30 |
31 | primary
32 |
33 |
34 | secondary
35 |
36 |
37 | code
38 |
39 |
40 | )
41 | }
42 |
43 | export default FontFamily
44 |
--------------------------------------------------------------------------------
/src/pages/docs/react/theme.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import AvailableColors from "../../../components/theme-setup/AvailableColors"
4 | import AddEditColors from "../../../components/theme-setup/AddEditColors"
5 | import ColumnCount from "../../../components/theme-setup/ColumnCount"
6 | import ContainerGutterWidth from "../../../components/theme-setup/ContainerGutterWidth"
7 | import Shadows from "../../../components/theme-setup/Shadows"
8 | import BorderRadius from "../../../components/theme-setup/BorderRadius"
9 | import FontSize from "../../../components/theme-setup/FontSize"
10 | import FontFamily from "../../../components/theme-setup/FontFamily"
11 | import Transition from "../../../components/theme-setup/Transition"
12 |
13 | import Layout from "../../../components/layout"
14 | import SEO from "../../../components/seo"
15 | import DocsWrapper from "../../../components/common/DocsWrapper"
16 |
17 | const Molecules = () => (
18 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | )
36 |
37 | export default Molecules
38 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Align.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const displayCode1 = `// center
7 | align="center"
8 |
9 | // flex-start
10 | align="flex-start"
11 |
12 | // flex-end
13 | align="flex-end"
14 |
15 | // space-between
16 | align="space-between"
17 |
18 | // space-around
19 | align="space-around"
20 |
21 | // space-around on mobile, center on large device
22 | align={{ xs: "space-around", lg: "center" }}
23 | `
24 |
25 | const Align = () => {
26 | return (
27 |
28 |
29 | It is equivalent to align-items of css. Align property can be given by
30 | using {"align={value}"} .
31 |
32 |
33 |
45 |
46 | Note: Align only works when display is flex
47 |
48 |
49 | )
50 | }
51 |
52 | export default Align
53 |
--------------------------------------------------------------------------------
/src/images/feature-icons/1.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/components/homepage/uicomponents/UserEdit.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import { Text, Div, Icon } from "atomize"
4 |
5 | import boy from "../../../images/avatar/boy.png"
6 |
7 | const UserEdit = ({ ...rest }) => (
8 |
27 |
28 |
37 |
38 | John Doe
39 |
40 | UI/UX Designer
41 |
42 |
43 |
44 |
51 |
52 | )
53 |
54 | UserEdit.defaultProps = {
55 | pos: { xs: "static", md: "absolute" },
56 | m: { xs: "1rem", md: "0" },
57 | d: { xs: "none", lg: "flex" },
58 | }
59 |
60 | export default UserEdit
61 |
--------------------------------------------------------------------------------
/src/images/icons/components.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/components/homepage/craft.css:
--------------------------------------------------------------------------------
1 | .translate-container {
2 | position: absolute;
3 | top: 45%;
4 | left: 1rem;
5 | right: 1rem;
6 | overflow: hidden;
7 | z-index: 10;
8 | padding-left: 0.5rem;
9 | padding-right: 0.5rem;
10 | }
11 |
12 | .translate-container:before {
13 | content: "";
14 | position: absolute;
15 | top: 0;
16 | left: 0;
17 | right: 0;
18 | height: 2rem;
19 | background-image: linear-gradient(
20 | rgba(247, 245, 244, 1),
21 | rgba(247, 245, 244, 0)
22 | );
23 | filter: invert(1);
24 | z-index: 10;
25 | }
26 |
27 | .translate-container:after {
28 | content: "";
29 | position: absolute;
30 | bottom: 0;
31 | left: 0;
32 | right: 0;
33 | height: 2rem;
34 | background-image: linear-gradient(
35 | rgba(255, 255, 255, 0),
36 | rgba(255, 255, 255, 1)
37 | );
38 | z-index: 10;
39 | }
40 |
41 | .translate-container .translate {
42 | animation: mymove 6s linear infinite;
43 | }
44 |
45 | @media (min-width: 576px) {
46 | .translate-container {
47 | top: 50%;
48 | transform: translateY(-50%);
49 | left: auto;
50 | right: 0;
51 | width: 18rem;
52 | }
53 |
54 | .translate-container:before {
55 | background-image: linear-gradient(
56 | rgba(255, 255, 255, 1),
57 | rgba(255, 255, 255, 0)
58 | );
59 | filter: invert(0);
60 | }
61 | }
62 |
63 | @keyframes mymove {
64 | from {
65 | transform: translateY(0);
66 | }
67 | to {
68 | transform: translateY(-100%);
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/src/components/functions/CurrentDeviceDocs.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const scrollToDocsCode1 = `// perform function only when device is xl
7 | import { Button, currentDevice } from "atomize";
8 |
9 | const CurrentDecieAlert = () => {
10 |
11 | componentDidMount() {
12 | const deviceSize = currentDevice()
13 | deviceSize === "xl" && this.deviceIsXL()
14 | }
15 |
16 | deviceIsXL = () => {
17 | alert("Current device is xl")
18 | }
19 |
20 | render() {
21 | return (
22 | {/* Your Component */}
23 | )
24 | }
25 | }`
26 |
27 | class CurrentDeviceDocs extends React.Component {
28 | render() {
29 | return (
30 |
36 |
37 | CurrentDevice
38 |
39 |
40 | currentDevice function can be used to find the current
41 | device name according to the devices in responsiveness, i.e. it
42 | returns a string from xs , sm , md ,{" "}
43 | lg or xl according to the current device in use.
44 |
45 |
46 | )
47 | }
48 | }
49 |
50 | export default CurrentDeviceDocs
51 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/TextWeight.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Text, Tag, Div } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const textCode1 = `// Responsive
8 | textWeight={{ xs: '400', md: '500' }}
9 |
10 | // 300
11 | textWeight="300"
12 |
13 | // 400
14 | textWeight="400"
15 |
16 | // 500
17 | textWeight="500"
18 |
19 | // 600
20 | textWeight="600"
21 |
22 | // 700
23 | textWeight="700"
24 |
25 | // 800
26 | textWeight="800"
27 |
28 | // 900
29 | textWeight="900"`
30 |
31 | const TextWeight = () => {
32 | return (
33 |
34 |
35 | Weight can be given to text by {"textWeight={value}"} .
36 |
37 |
38 |
39 | 300
40 |
41 |
42 | 400
43 |
44 |
45 | 500
46 |
47 |
48 | 600
49 |
50 |
51 | 700
52 |
53 |
54 | 800
55 |
56 |
57 | 900
58 |
59 |
60 | )
61 | }
62 |
63 | export default TextWeight
64 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Shadows.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag, Row, Col } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const shadowCode1 = `// Responsive
8 | shadow={{ xs: '4', md: '3', lg: '1' }}
9 |
10 | // Shadow 1
11 | shadow="1"
12 |
13 | // Shadow 2
14 | shadow="2"
15 |
16 | // Shadow 3
17 | shadow="3"
18 |
19 | // Shadow 4
20 | shadow="4"
21 |
22 | // Shadow 5
23 | shadow="5"`
24 |
25 | const Shadows = () => {
26 | return (
27 |
28 |
29 | 5 shadows are available through {"shadow={value}"} .Hover
30 | Shadow can be changed through {"hoverShadow={value}"} . You
31 | can edit or add shadows by using
32 | theme.
33 |
34 |
35 |
36 | {[1, 2, 3, 4, 5].map(index => (
37 |
38 |
48 | {index}
49 |
50 |
51 | ))}
52 |
53 |
54 |
55 | )
56 | }
57 |
58 | export default Shadows
59 |
--------------------------------------------------------------------------------
/src/components/common/codeTheme.js:
--------------------------------------------------------------------------------
1 | var codeTheme = {
2 | plain: {
3 | color: "#393A34",
4 | backgroundColor: "#f7f8f9",
5 | },
6 | styles: [
7 | {
8 | types: ["comment", "prolog", "doctype", "cdata"],
9 | style: {
10 | color: "#999988",
11 | fontStyle: "italic",
12 | },
13 | },
14 | {
15 | types: ["namespace"],
16 | style: {
17 | opacity: 0.7,
18 | },
19 | },
20 | {
21 | types: ["string", "attr-value"],
22 | style: {
23 | color: "#e3116c",
24 | },
25 | },
26 | {
27 | types: ["punctuation", "operator"],
28 | style: {
29 | color: "#393A34",
30 | },
31 | },
32 | {
33 | types: [
34 | "entity",
35 | "url",
36 | "symbol",
37 | "number",
38 | "boolean",
39 | "variable",
40 | "constant",
41 | "property",
42 | "regex",
43 | "inserted",
44 | ],
45 | style: {
46 | color: "#36acaa",
47 | },
48 | },
49 | {
50 | types: ["atrule", "keyword", "attr-name", "selector"],
51 | style: {
52 | color: "#00a4db",
53 | },
54 | },
55 | {
56 | types: ["function", "deleted", "tag"],
57 | style: {
58 | color: "#d73a49",
59 | },
60 | },
61 | {
62 | types: ["function-variable"],
63 | style: {
64 | color: "#6f42c1",
65 | },
66 | },
67 | {
68 | types: ["tag", "selector", "keyword"],
69 | style: {
70 | color: "#00009f",
71 | },
72 | },
73 | ],
74 | }
75 |
76 | export default codeTheme
77 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Display.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const displayCode1 = `// Inline-block
7 | d="inline-block"
8 |
9 | // Flex
10 | d="flex"
11 |
12 | // None on Mobile, Flex on Desktop
13 | d={{ xs: "none", md: "flex" }}
14 |
15 | // Block on Mobile, Flex on Desktop
16 | d={{ xs: "block", md: "flex" }}`
17 |
18 | const Display = () => {
19 | return (
20 |
21 |
22 | Display property can be given by using {"d={value}"}
23 |
24 |
25 |
31 | inline-block
32 |
33 |
39 | flex
40 |
41 |
47 | none on mobile, flex on desktop
48 |
49 |
55 | block on mobile, flex on desktop
56 |
57 |
58 | )
59 | }
60 |
61 | export default Display
62 |
--------------------------------------------------------------------------------
/src/pages/docs/react/atoms.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import DivDocs from "../../../components/atoms/DivDocs"
4 | import TextDocs from "../../../components/atoms/TextDocs"
5 | import IconDocs from "../../../components/atoms/IconDocs"
6 | import ButtonDocs from "../../../components/atoms/ButtonDocs"
7 | import InputDocs from "../../../components/atoms/InputDocs"
8 | import CheckboxDocs from "../../../components/atoms/CheckboxDocs"
9 | import RadioboxDocs from "../../../components/atoms/RadioboxDocs"
10 | import SwitchDocs from "../../../components/atoms/SwitchDocs"
11 | import ImageDocs from "../../../components/atoms/ImageDocs"
12 | import TagDocs from "../../../components/atoms/TagDocs"
13 | import AnchorDocs from "../../../components/atoms/AnchorDocs"
14 | import CollapseDocs from "../../../components/atoms/CollapseDocs"
15 |
16 | import Layout from "../../../components/layout"
17 | import SEO from "../../../components/seo"
18 | import DocsWrapper from "../../../components/common/DocsWrapper"
19 |
20 | const Atoms = () => (
21 |
22 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | )
42 |
43 | export default Atoms
44 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/BorderColor.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag, Row, Col } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const borderCode2 = `// Info
8 | borderColor="info700"
9 | hoverBorderColor="info800"
10 |
11 | // Warning
12 | borderColor="warning700"
13 | hoverBorderColor="warning800"
14 |
15 | // Danger
16 | borderColor="danger700"
17 | hoverBorderColor="danger800"
18 |
19 | // Success
20 | borderColor="success700"
21 | hoverBorderColor="success800"`
22 |
23 | const BorderColor = () => {
24 | return (
25 |
26 |
27 | Color can be any value of color from the theme. You can{" "}
28 | edit or add more colors{" "}
29 | values by theme. Border Color can also be changed on hover by passing{" "}
30 | {"hoverBorderColor={value}"} to the component.
31 |
32 |
33 |
34 |
35 | {["info", "warning", "danger", "success"].map(value => (
36 |
37 |
44 |
45 | ))}
46 |
47 |
48 |
49 | )
50 | }
51 |
52 | export default BorderColor
53 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Transition.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const transitionCode1 = `// Changing the transition value
8 |
18 | Hover Me
19 |
`
20 |
21 | class Transition extends React.Component {
22 | render() {
23 | return (
24 |
25 |
26 | Transition
27 |
28 |
29 | You can pass transition to the element to add a transition
30 | effect between its css states and the default transition will be
31 | applied. You can edit
32 | this default trasition value by changing the in the theme.
33 |
34 |
35 |
45 | Hover Me
46 |
47 |
48 | )
49 | }
50 | }
51 |
52 | export default Transition
53 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/HoverShadow.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag, Row, Col } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const shadowCode1 = `// Responsive
8 | hoverShadow={{ xs: '4', md: '3', lg: '1' }}
9 |
10 | // Shadow 1
11 | hoverShadow="1"
12 |
13 | // Shadow 2
14 | hoverShadow="2"
15 |
16 | // Shadow 3
17 | hoverShadow="3"
18 |
19 | // Shadow 4
20 | hoverShadow="4"
21 |
22 | // Shadow 5
23 | hoverShadow="5"`
24 |
25 | const HoverShadow = () => {
26 | return (
27 |
28 |
29 | Hover Shadow can be changed through {"hoverShadow={value}"} .
30 | You can edit or add shadows by
31 | using theme.
32 |
33 |
34 |
35 | {[1, 2, 3, 4, 5].map(index => (
36 |
37 |
49 | {index}
50 |
51 |
52 | ))}
53 |
54 |
55 |
56 | )
57 | }
58 |
59 | export default HoverShadow
60 |
--------------------------------------------------------------------------------
/src/images/feature-icons/5.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/components/theme-setup/Breakpoints.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col, ThemeProvider } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const theme = {
7 | grid: {
8 | colCount: 9,
9 | },
10 | }
11 |
12 | const breakpointsCode1 = `// Changing the Column Count through theme provider
13 | import {
14 | ThemeProvider,
15 | Div,
16 | Row,
17 | Col } from "atomize";
18 |
19 | const theme = {
20 | grid: {
21 | breakpoints: {
22 | xs: 0,
23 | sm: 576,
24 | md: 768,
25 | lg: 992,
26 | xl: 1200
27 | },
28 | }
29 | };
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | `
40 |
41 | const Breakpoints = () => {
42 | return (
43 | <>
44 |
45 |
46 | Breakpoints
47 |
48 |
49 | Breakpoints are the device widths in px at which the device name
50 | changes for lg , md , sm &{" "}
51 | xs . By default these widths are 1200 ,{" "}
52 | 992 , 768 & 576 respectively.
53 |
54 |
55 | These default values can be modified by ThemeProvider as
56 | shown.
57 |
58 |
59 | >
60 | )
61 | }
62 |
63 | export default Breakpoints
64 |
--------------------------------------------------------------------------------
/src/components/homepage/uicomponents/CardComponent.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import girl2 from "../../../images/avatar/girl2.png"
4 | import cardImg from "../../../images/hero-illustration/card-img.png"
5 |
6 | import { Button, Text, Div, Icon } from "atomize"
7 |
8 | class CardComponent extends React.Component {
9 | state = {
10 | liked: false,
11 | }
12 |
13 | render() {
14 | const { liked } = this.state
15 | return (
16 |
29 |
36 |
37 |
38 |
47 |
Meagan Fisher
48 |
49 |
this.setState({ liked: !liked })}
52 | name={liked ? "HeartSolid" : "Heart"}
53 | color={liked ? "danger700" : "black"}
54 | size="18px"
55 | cursor="pointer"
56 | />
57 |
58 |
59 | )
60 | }
61 | }
62 |
63 | export default CardComponent
64 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "gatsby-starter-default",
3 | "private": true,
4 | "description": "A simple starter to get up and dicon eveloping quickly with Gatsby",
5 | "version": "0.1.0",
6 | "author": "Kyle Mathews ",
7 | "dependencies": {
8 | "atomize": "^1.0.10",
9 | "gatsby": "^2.10.0",
10 | "gatsby-image": "^2.2.1",
11 | "gatsby-plugin-htaccess": "^1.1.1",
12 | "gatsby-plugin-manifest": "^2.2.0",
13 | "gatsby-plugin-offline": "^2.2.0",
14 | "gatsby-plugin-react-helmet": "^3.1.0",
15 | "gatsby-plugin-robots-txt": "^1.5.0",
16 | "gatsby-plugin-sharp": "^2.2.1",
17 | "gatsby-plugin-sitemap": "^2.2.3",
18 | "gatsby-plugin-styletron": "^4.1.2",
19 | "gatsby-source-filesystem": "^2.1.0",
20 | "gatsby-transformer-sharp": "^2.2.0",
21 | "prism-react-renderer": "^0.1.6",
22 | "prop-types": "^15.7.2",
23 | "react": "^16.8.6",
24 | "react-dom": "^16.8.6",
25 | "react-helmet": "^5.2.1",
26 | "react-id-swiper": "^2.3.1",
27 | "react-transition-group": "^4.1.1",
28 | "swiper": "^4.5.0"
29 | },
30 | "devDependencies": {
31 | "prettier": "^1.18.2"
32 | },
33 | "keywords": [
34 | "gatsby"
35 | ],
36 | "license": "MIT",
37 | "scripts": {
38 | "build": "gatsby build",
39 | "dev": "gatsby develop --host=0.0.0.0",
40 | "deploy": "gatsby clean && gatsby build && cd public && now --target production",
41 | "format": "prettier --write src/**/*.{js,jsx}",
42 | "start": "npm run develop",
43 | "serve": "gatsby serve",
44 | "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
45 | },
46 | "repository": {
47 | "type": "git",
48 | "url": "https://github.com/gatsbyjs/gatsby-starter-default"
49 | },
50 | "bugs": {
51 | "url": "https://github.com/gatsbyjs/gatsby/issues"
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/src/components/theme-setup/AvailableColors.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Anchor, scrollTo } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 | import ColorList from "../common/ColorList"
6 | import ColorDiv from "../common/ColorDiv"
7 |
8 | const AvailableColors = () => {
9 | return (
10 | <>
11 |
12 |
13 | Available Colors
14 |
15 |
16 | The available colors come by default in atomize react are given below.
17 | The name of the color can be used for any color props in atomize. You
18 | can also{" "}
19 | scrollTo("#addEditColors")}>
20 | edit or add your own colors
21 | {" "}
22 | to this palette.
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | >
42 | )
43 | }
44 |
45 | export default AvailableColors
46 |
--------------------------------------------------------------------------------
/src/components/layout.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import PropTypes from "prop-types"
3 | import { StaticQuery, graphql } from "gatsby"
4 | import "./font.css"
5 | // import "./wow.css"
6 |
7 | import { StyleReset, ThemeProvider, Div } from "atomize"
8 |
9 | const theme = {
10 | fontFamily: {
11 | primary:
12 | '"SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"',
13 | secondary:
14 | '"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"',
15 | code: "'Fira Mono','Roboto Mono', monospace",
16 | },
17 | grid: {
18 | containerMaxWidth: {
19 | xl: "1184px",
20 | },
21 | },
22 | textSize: {
23 | size: {
24 | display3: "48px",
25 | },
26 | height: {
27 | display3: "56px",
28 | },
29 | },
30 | colors: {
31 | brandgray: "#F7F5F4",
32 | },
33 | }
34 |
35 | class Layout extends React.Component {
36 | render() {
37 | const { children } = this.props
38 |
39 | return (
40 | (
51 |
52 |
53 |
54 | {children}
55 |
56 |
57 | )}
58 | />
59 | )
60 | }
61 | }
62 |
63 | Layout.propTypes = {
64 | children: PropTypes.node.isRequired,
65 | }
66 |
67 | export default Layout
68 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Margin.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const marginCode1 = `// With Single Value
7 | m="3rem"
8 |
9 | // With Responsive Values
10 | m={{ xs: "3rem", md: "5rem" }}
11 | `
12 |
13 | const marginCode2 = `// Directional margin
14 | m={{ l: '2rem', r: '3rem', y: '5rem' }}
15 |
16 | // Directional margin with responsive
17 | m={{
18 | l: '2rem',
19 | r: { xs: '1rem', md: '3rem' },
20 | y: '5rem'
21 | }}
22 | `
23 |
24 | const Margin = () => {
25 | return (
26 | <>
27 |
28 |
29 | Margin can be given to any element by using{" "}
30 | {"m={value}"} as props. To keep the
31 | design under 8px grid, we keep the html font size to 16px. Though you
32 | can use any value to padding & margin. We recommend using{" "}
33 | rem to specify Padding & Margin.
34 |
35 |
36 |
39 |
40 |
41 |
42 |
43 | An array with l ,r ,t ,b ,
44 | x & y can be given to have padding in left,
45 | right, top, bottom, horizontal & vertical directions respectively.
46 |
47 |
48 |
51 |
52 | >
53 | )
54 | }
55 |
56 | export default Margin
57 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Padding.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const paddingCode1 = `// With Single Value
7 | p="3rem"
8 |
9 | // With Responsive Values
10 | p={{ xs: "3rem", md: "5rem" }}
11 | `
12 |
13 | const paddingCode2 = `// Directional padding
14 | p={{ l: '2rem', r: '3rem', y: '5rem' }}
15 |
16 | // Directional padding with responsive
17 | p={{
18 | l: '2rem',
19 | r: { xs: '1rem', md: '3rem' },
20 | y: '5rem'
21 | }}
22 | `
23 |
24 | const Padding = () => {
25 | return (
26 | <>
27 |
28 |
29 | Padding can be given to any element by using{" "}
30 | {"p={value}"} as props. To keep the
31 | design under 8px grid, we keep the html font size to 16px. Though you
32 | can use any value to padding & margin. We recommend using{" "}
33 | rem to specify Padding & Margin.
34 |
35 |
36 |
39 |
40 |
41 |
42 | An array with l ,r ,t ,b ,
43 | x & y can be given to have padding in left,
44 | right, top, bottom, horizontal & vertical directions respectively.
45 |
46 |
49 |
50 | >
51 | )
52 | }
53 |
54 | export default Padding
55 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/TextSize.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Text, Tag, Div } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const textCode1 = `// Responsive
8 | textSize={{ xs: "tiny", md: "body" }}
9 |
10 | // tiny
11 | textSize="tiny"
12 |
13 | // caption
14 | textSize="caption"
15 |
16 | // body
17 | textSize="body"
18 |
19 | // paragraph
20 | textSize="paragraph"
21 |
22 | // subheader
23 | textSize="subheader"
24 |
25 | // title
26 | textSize="title"
27 |
28 | // heading
29 | textSize="heading"
30 |
31 | // display1
32 | textSize="display1"
33 |
34 | // display2
35 | textSize="display2"
36 |
37 | // display3
38 | textSize="display3"`
39 |
40 | const TextSize = () => {
41 | return (
42 |
43 |
44 | Size can be given to text by {"textSize={value}"} . Where
45 | value is the size defined in theme. You can{" "}
46 | add or edit sizes by using theme.
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | )
63 | }
64 |
65 | export default TextSize
66 |
67 | const FontRow = ({ size }) => {
68 | return (
69 |
70 |
{size}
71 |
Typography
72 |
73 | )
74 | }
75 |
--------------------------------------------------------------------------------
/404.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Page Not Found
7 |
8 |
23 |
24 |
25 |
26 |
404
27 |
Page Not Found
28 |
The specified file was not found on this website. Please check the URL for mistakes and try again.
29 |
Why am I seeing this?
30 |
This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html file in your project's configured public directory.
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/src/images/feature-icons/6.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/gatsby-config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | siteMetadata: {
3 | title: `Atomize React`,
4 | description: `Atomize is a UI design framework that helps designers and developers design well-structured, scalable and more consistent interfaces for the web. It is based on Atomic design methodology which has atoms and molecules as reusable building blocks.`,
5 | author: `@proksh`,
6 | siteUrl: `https://atomizecode.com/`,
7 | },
8 | plugins: [
9 | {
10 | resolve: "gatsby-plugin-styletron",
11 | options: {
12 | prefix: "",
13 | },
14 | },
15 | {
16 | resolve: "gatsby-plugin-htaccess",
17 | options: {
18 | RewriteBase: true,
19 | https: true,
20 | www: true,
21 | SymLinksIfOwnerMatch: true,
22 | },
23 | },
24 | {
25 | resolve: "gatsby-plugin-robots-txt",
26 | options: {
27 | host: "https://atomizecode.com/",
28 | sitemap: "https://atomizecode.com/sitemap.xml",
29 | policy: [{ userAgent: "*", allow: "/" }],
30 | },
31 | },
32 | `gatsby-plugin-sitemap`,
33 | `gatsby-plugin-react-helmet`,
34 | {
35 | resolve: `gatsby-source-filesystem`,
36 | options: {
37 | name: `images`,
38 | path: `${__dirname}/src/images`,
39 | },
40 | },
41 | `gatsby-transformer-sharp`,
42 | `gatsby-plugin-sharp`,
43 | {
44 | resolve: `gatsby-plugin-manifest`,
45 | options: {
46 | name: `gatsby-starter-default`,
47 | short_name: `starter`,
48 | start_url: `/`,
49 | background_color: `#ffffff`,
50 | theme_color: `#ffffff`,
51 | display: `minimal-ui`,
52 | icon: `src/images/atomize-icon.svg`, // This path is relative to the root of the site.
53 | },
54 | },
55 | // this (optional) plugin enables Progressive Web App + Offline functionality
56 | // To learn more, visit: https://gatsby.dev/offline
57 | // `gatsby-plugin-offline`,
58 | ],
59 | }
60 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Background.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag, Col, Row } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const backgroundCode = `// bg warning
8 | bg="warning700"
9 | hoverBg="warning700"
10 |
11 | // bg info
12 | bg="info700"
13 | hoverBg="info700"
14 |
15 | // bg danger
16 | bg="danger700"
17 | hoverBg="danger700"
18 |
19 | // bg success
20 | bg="success700"
21 | hoverBg="success700"`
22 |
23 | const Background = () => {
24 | return (
25 |
26 |
27 | Background and Hover Background can be given by{" "}
28 | {"bg={value}"} and {"hoverBg={value}"}
29 | respectively where value can be any color from the theme. You can{" "}
30 | edit or add color using
31 | theme.
32 |
33 |
34 |
35 |
36 |
37 |
43 |
44 |
45 |
46 |
47 |
48 |
54 |
55 |
56 |
62 |
63 |
64 |
65 |
66 | )
67 | }
68 |
69 | export default Background
70 |
--------------------------------------------------------------------------------
/src/components/atoms/TextDocs.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 | import AvailableProps from "../common/AvailableProps"
6 |
7 | const addEditColorsCode1 = `// Creating a h1
8 | import { Text } from "atomize";
9 |
10 |
11 | This is h1 of display1 size
12 |
13 | `
14 |
15 | const TextDocs = () => {
16 | return (
17 |
18 |
19 | Text
20 |
21 |
22 | {" "} is by default equal to {""}
. To
23 | change that tag {"tag"} props can be passed to the component.
24 |
25 |
26 |
27 | This is h1 of display1 size
28 |
29 |
30 |
70 |
71 | )
72 | }
73 |
74 | export default TextDocs
75 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Order.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col } from "atomize"
3 |
4 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
5 |
6 | const code = `// responsive order
7 | order={{ xs: 4, md: 1 }}
8 |
9 | // values in order
10 | order={1}
11 | order={3}
12 |
13 | // Above Example
14 |
20 |
21 | 1
22 |
23 |
24 | 2
25 |
26 |
27 | 3
28 |
29 |
30 | 4
31 |
32 |
`
33 |
34 | const Justify = () => {
35 | return (
36 |
37 |
38 | Flex Order can be given to change the sequence of the elements by{" "}
39 | {"order={value}"} .
40 |
41 |
42 |
49 |
50 | 1
51 |
52 |
53 | 2
54 |
55 |
56 | 3
57 |
58 |
59 | 4
60 |
61 |
62 |
63 | Note: order only works when display is flex
64 |
65 |
66 | )
67 | }
68 |
69 | export default Justify
70 |
--------------------------------------------------------------------------------
/src/components/seo.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SEO component that queries for data with
3 | * Gatsby's useStaticQuery React hook
4 | *
5 | * See: https://www.gatsbyjs.org/docs/react/use-static-query/
6 | */
7 |
8 | import React from "react"
9 | import PropTypes from "prop-types"
10 | import Helmet from "react-helmet"
11 | import { useStaticQuery, graphql } from "gatsby"
12 |
13 | function SEO({ description, lang, meta, title }) {
14 | const { site } = useStaticQuery(
15 | graphql`
16 | query {
17 | site {
18 | siteMetadata {
19 | title
20 | description
21 | author
22 | }
23 | }
24 | }
25 | `
26 | )
27 |
28 | const metaDescription = description || site.siteMetadata.description
29 |
30 | return (
31 |
72 | )
73 | }
74 |
75 | SEO.defaultProps = {
76 | lang: `en`,
77 | meta: [],
78 | description: ``,
79 | }
80 |
81 | SEO.propTypes = {
82 | description: PropTypes.string,
83 | lang: PropTypes.string,
84 | meta: PropTypes.arrayOf(PropTypes.object),
85 | title: PropTypes.string.isRequired,
86 | }
87 |
88 | export default SEO
89 |
--------------------------------------------------------------------------------
/src/components/atoms/DivDocs.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 | import AvailableProps from "../common/AvailableProps"
6 |
7 | const addEditColorsCode1 = `// Creating a div
8 | import { Div } from "atomize";
9 |
10 |
16 | This is the div
17 |
18 | `
19 |
20 | const DivDocs = () => {
21 | return (
22 |
23 |
24 | Div
25 |
26 |
27 | {"
"} is equivalent to {"
"} .
28 |
29 |
30 |
31 | This is the div
32 |
33 |
34 |
89 |
90 | )
91 | }
92 |
93 | export default DivDocs
94 |
--------------------------------------------------------------------------------
/src/components/theme-setup/FontFamily.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Text, Tag, ThemeProvider } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const theme = {
7 | fontFamily: {
8 | primary: "equity-text, serif",
9 | },
10 | }
11 |
12 | const breakpointsCode1 = `// Changing the secondary font
13 | import { Text, ThemeProvider } from "atomize";
14 |
15 | const theme = {
16 | fontFamily: {
17 | primary: "equity-text, serif",
18 | }
19 | }
20 |
21 | ReactDOM.render(
22 |
23 |
24 | This is different font
25 |
26 |
27 | , mountNode
28 | );`
29 |
30 | const FontFamily = () => {
31 | return (
32 | <>
33 |
34 |
35 | Font Family
36 |
37 |
38 | There are three type of font families by Default.
39 |
40 |
41 |
42 | primary:
43 | {" "}
44 | -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica
45 | Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI
46 | Emoji","Segoe UI Symbol","Noto Color Emoji"
47 |
48 |
49 | secondary
50 |
51 | : serif
52 |
53 |
54 | code
55 |
56 | : "monospace"
57 |
58 |
59 |
60 |
61 | You can add or edit the font families of theme by using{" "}
62 | fontFamily in theme.
63 |
64 |
65 |
66 |
67 | This is different font
68 |
69 |
70 |
71 | >
72 | )
73 | }
74 |
75 | export default FontFamily
76 |
--------------------------------------------------------------------------------
/src/pages/docs/react/intro.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 |
4 | import Layout from "../../../components/layout"
5 | import SEO from "../../../components/seo"
6 | import { Text, Button, Div, Anchor, Icon } from "atomize"
7 | import DocsWrapper from "../../../components/common/DocsWrapper"
8 |
9 | const IntroDocs = () => (
10 |
11 |
15 |
16 |
17 |
18 | Advance Design System for React JS.
19 |
20 |
21 | {/*
22 | Installation
23 | */}
24 |
25 | Atomize is a collection of customizable and production-ready
26 | components for React JS.
27 |
28 |
35 | Try Demo on Sandbox
36 |
37 |
38 |
39 |
40 | Get Started
41 |
42 |
43 |
44 |
51 | Github
52 |
53 |
54 |
55 |
56 |
62 | You will need React v16.3 or above for atomize.
63 |
64 |
65 |
66 |
67 | )
68 |
69 | export default IntroDocs
70 |
--------------------------------------------------------------------------------
/src/components/homepage/uicomponents/LoginForm.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import { Text, Div, Icon, Anchor, Button, Input } from "atomize"
4 |
5 | const LoginForm = () => (
6 |
23 |
82 |
89 | Login
90 |
91 |
92 | )
93 |
94 | export default LoginForm
95 |
--------------------------------------------------------------------------------
/src/components/theme-setup/FontSize.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col, ThemeProvider } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const theme = {
7 | textSize: {
8 | size: {
9 | customSize: "25px",
10 | },
11 | height: {
12 | customSize: "34px",
13 | },
14 | },
15 | }
16 |
17 | const breakpointsCode1 = `// Providing a custom font size
18 | import { Text, ThemeProvider } from "atomize";
19 |
20 | const theme = {
21 | textSize: {
22 | size: {
23 | customSize: "25px"
24 | },
25 | height: {
26 | customSize: "34px"
27 | }
28 | }
29 | };
30 |
31 | ReactDOM.render(
32 |
33 | Custom Text Size
34 |
35 | , mountNode
36 | );`
37 |
38 | const FontSize = () => {
39 | return (
40 | <>
41 |
42 |
43 | Font Size
44 |
45 |
46 | The default theme font size present in atomize are tiny ,{" "}
47 | caption , body , paragraph ,{" "}
48 | subheader , title , heading ,{" "}
49 | display1 , display2 & display3 .
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | To add or edit a font size, both the size value and its{" "}
67 | lineheight of the textSize has to provided to
68 | theme as shown.
69 |
70 |
71 |
72 | customSize
73 |
74 |
75 | >
76 | )
77 | }
78 |
79 | export default FontSize
80 |
81 | const FontRow = ({ size }) => {
82 | return (
83 |
84 |
{size}
85 |
Typography
86 |
87 | )
88 | }
89 |
--------------------------------------------------------------------------------
/src/pages/docs/react/showcase.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import Layout from "../../../components/layout"
4 | import SEO from "../../../components/seo"
5 | import { Text, Div, Row, Col, Anchor } from "atomize"
6 | import DocsWrapper from "../../../components/common/DocsWrapper"
7 | import italic from "../../../images/showcase/italic.png"
8 | import anteelo from "../../../images/showcase/anteelo.png"
9 |
10 | const Showcase = () => (
11 |
12 |
16 |
17 |
18 |
19 | Who's using Atomize?
20 |
21 |
22 | Check out these apps built using Atomize. Send us a{" "}
23 | pull request to add
24 | your app to this list.
25 |
26 |
27 |
28 |
29 |
42 |
43 |
44 | Italic | Luxury without labels
45 |
46 |
47 |
48 | {/*
49 |
62 |
63 |
64 | Anteelo | Product Design Firm
65 | */}
66 |
67 |
68 |
69 |
70 |
71 | )
72 |
73 | export default Showcase
74 |
--------------------------------------------------------------------------------
/src/images/feature-icons/3.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/components/functions/ScrollToDocs.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Button, scrollTo } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const scrollToDocsCode1 = `// scroll to target
7 | import { Button, scrollTo } from "atomize";
8 |
9 | const YellowButton = () => {
10 | return (
11 | scrollTo("#yellowButton")}
14 | bg="info700"
15 | >
16 | Scroll To Yellow Button
17 |
18 | )
19 | }
20 | `
21 |
22 | const scrollToDocsCode2 = `// scroll To with offset and transition
23 | import { Button, scrollTo } from "atomize";
24 |
25 | const YellowButton = () => {
26 | return (
27 | scrollTo("#blueButton", 100, 0, 800)}
30 | bg="warning700"
31 | >
32 | Scroll To Blue Button
33 |
34 | )
35 | }
36 | `
37 |
38 | const ScrollToDocs = () => {
39 | return (
40 | <>
41 |
47 |
48 | Scroll To
49 |
50 |
51 | scrollTo function can be used to scroll to certain section
52 | with transition. This fuction can recieve 4 arguememnts{" "}
53 | targetQuery , offsetFromTop , nthQuerry {" "}
54 | & timeToReach . Out of these targetQuery is
55 | cumpulsory, offsetFromTop is 0 by default,{" "}
56 | nthQuerry is 0 by default & timeToReach is 600.
57 |
58 |
59 |
60 | scrollTo("#yellowButton")}
63 | bg="info700"
64 | >
65 | Scroll To Yellow Button
66 |
67 |
68 |
69 |
70 |
71 | Scroll with offset and different duration
72 |
73 |
74 | scrollTo("#blueButton", 100, 0, 800)}
77 | bg="warning700"
78 | >
79 | Scroll To Blue Button
80 |
81 |
82 |
83 | >
84 | )
85 | }
86 |
87 | export default ScrollToDocs
88 |
--------------------------------------------------------------------------------
/src/pages/docs/react/spacing.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import Layout from "../../../components/layout"
4 | import SEO from "../../../components/seo"
5 | import { Text, Button, Div, Anchor, Icon } from "atomize"
6 | import DocsWrapper from "../../../components/common/DocsWrapper"
7 | import Highlight, { defaultProps } from "prism-react-renderer"
8 |
9 | import codeTheme from "../../../components/common/codeTheme"
10 |
11 | const responsiveCode = `// Padding
12 | p={{ xs: '1rem', md: '4rem' }}
13 |
14 | // Padding Directional
15 | p={{ x: { xs: '1rem', md: '4rem' }, y: { xs: '2rem', md: '0rem' }}}
16 |
17 | // Margin
18 | m={{ xs: '1rem', md: '4rem' }}
19 |
20 | // Margin Directional
21 | m={{ x: { xs: '1rem', md: '4rem' }, y: { xs: '2rem', md: '0rem' }}}
22 |
23 | // Height
24 | h={{ xs: '1rem', md: '4rem' }}
25 |
26 | // Width
27 | h={{ xs: '1rem', md: '4rem' }}`
28 |
29 | const SpacingDocs = () => (
30 |
31 |
35 |
36 |
37 |
38 | Spacing.
39 |
40 |
41 | It is recommended to use 8 point grid in Atomize Design System.
42 | To Quantize the spacing, it is recommended to use spacing values in
43 | rem. html has default font-size of 16 points, and therefore, using{" "}
44 |
45 | 0.25rem, 0.5rem, 0.75rem, 1rem, 1.5rem, 2rem, 2.5rem, 3rem, etc.
46 | {" "}
47 | will quantize the value and follow 8 point grid.
48 |
49 |
50 | Example -
51 |
52 |
61 |
67 | {({ className, style, tokens, getLineProps, getTokenProps }) => (
68 |
69 | {tokens.map((line, i) => (
70 |
71 | {line.map((token, key) => (
72 |
73 | ))}
74 |
75 | ))}
76 |
77 | )}
78 |
79 |
80 |
81 |
82 |
83 | )
84 |
85 | export default SpacingDocs
86 |
--------------------------------------------------------------------------------
/src/components/theme-setup/Shadows.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col, ThemeProvider } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const theme = {
7 | shadows: {
8 | "new-shadow": "0 16px 24px -2px rgba(0, 0, 0, 0.08)",
9 | },
10 | }
11 |
12 | const breakpointsCode1 = `// Adding Your Shadow
13 | import {
14 | ThemeProvider,
15 | Div,
16 | Row,
17 | Col } from "atomize";
18 |
19 | const theme = {
20 | shadows: {
21 | "new-shadow": "0 16px 24px -2px rgba(0, 0, 0, 0.08)"
22 | }
23 | };
24 |
25 | ReactDOM.render(
26 |
27 |
37 | New Shadow
38 |
39 |
40 | , mountNode
41 | );`
42 |
43 | const Shadows = () => {
44 | return (
45 | <>
46 |
47 |
48 | Shadows
49 |
50 |
51 | There are 5 values of shadows present in atomize in default theme -
52 | that are 1 ,2 , 3 , 4 &{" "}
53 | 5 .
54 |
55 |
56 |
57 |
58 | {[1, 2, 3, 4, 5].map(index => (
59 |
60 |
70 | {index}
71 |
72 |
73 | ))}
74 |
75 |
76 |
77 |
78 | More shadows can be added to the design system by adding them to the{" "}
79 | shadows inside the theme.
80 |
81 |
82 |
83 |
93 | New Shadow
94 |
95 |
96 |
97 | >
98 | )
99 | }
100 |
101 | export default Shadows
102 |
--------------------------------------------------------------------------------
/src/components/grid-components/ContainerDocs.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 |
4 | import { Div, Text, Icon, Container } from "atomize"
5 |
6 | import InfoCodeRow from "../common/InfoCodeRow"
7 | import AvailableProps from "../common/AvailableProps"
8 |
9 | const containerDocsCode1 = `// Container
10 | import { Div, Container } from "atomize";
11 |
12 | ReactDOM.render(
13 |
14 | {/* your Content goes here */}
15 |
16 | , mountNode
17 | );`
18 |
19 | const ContainerDocs = () => {
20 | return (
21 |
22 |
23 | Container
24 |
25 |
26 | Containers are the most basic element for using our default grid system.
27 | Container max-width changes at each breakpoint defined in the theme to
28 | the max-width defined in each breakpoint. You can{" "}
29 | edit grid variables{" "}
30 | by using theme.
31 |
32 |
33 |
38 |
39 |
45 |
46 | You should avoid using padding, margin, width & max-width to
47 | container.
48 |
49 |
50 |
51 |
93 |
94 | )
95 | }
96 |
97 | export default ContainerDocs
98 |
--------------------------------------------------------------------------------
/src/components/homepage/uicomponents/FollowCard.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import girl from "../../../images/avatar/girl.png"
4 |
5 | import { Button, Text, Div, Icon } from "atomize"
6 |
7 | const FollowCard = ({ ...rest }) => (
8 |
26 |
27 |
52 |
58 | Meagan Fisher
59 |
60 |
66 | Engineering Manager
67 |
68 |
69 |
70 | }
79 | >
80 | Follow
81 |
82 | }
93 | >
94 | Message
95 |
96 |
97 |
98 | )
99 |
100 | FollowCard.defaultProps = {
101 | m: { xs: "1rem", md: "0" },
102 | pos: { xs: "static", md: "absolute" },
103 | d: "flex",
104 | maxW: "100%",
105 | }
106 |
107 | export default FollowCard
108 |
--------------------------------------------------------------------------------
/src/components/theme-setup/ColumnCount.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col, ThemeProvider } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const theme = {
7 | grid: {
8 | colCount: 9,
9 | },
10 | }
11 |
12 | const columnCountCode1 = `// Default Column count of 12
13 | import {
14 | Div,
15 | Row,
16 | Col } from "atomize";
17 |
18 | ReactDOM.render(
19 |
20 |
21 | {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (
22 |
23 |
24 |
25 | ))}
26 |
27 |
28 | , mountNode
29 | );`
30 |
31 | const columnCountCode2 = `// Changing the Column Count through theme provider
32 | import {
33 | ThemeProvider,
34 | Div,
35 | Row,
36 | Col } from "atomize";
37 |
38 | const theme = {
39 | colCount: 9
40 | };
41 |
42 | ReactDOM.render(
43 |
44 |
45 |
46 | {[1, 2, 3, 4, 5, 6, 7, 8, 9].map(index => (
47 |
48 |
49 |
50 | ))}
51 |
52 |
53 |
54 | , mountNode
55 | );`
56 |
57 | const ColumnCount = () => {
58 | return (
59 | <>
60 |
66 |
67 | Column Count
68 |
69 |
70 | Atomize has 12 column grid structure by default. You can
71 | edit this by providing it in theme.
72 |
73 |
74 |
75 |
76 | {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(index => (
77 |
78 |
79 |
80 | ))}
81 |
82 |
83 |
84 |
85 |
86 | You can change the column count by changing the colCount in
87 | theme using ThemeProvider.
88 |
89 |
90 |
91 |
92 |
93 | {[1, 2, 3, 4, 5, 6, 7, 8, 9].map(index => (
94 |
95 |
96 |
97 | ))}
98 |
99 |
100 |
101 |
102 | >
103 | )
104 | }
105 |
106 | export default ColumnCount
107 |
--------------------------------------------------------------------------------
/src/html.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import PropTypes from "prop-types"
3 |
4 | export default function HTML(props) {
5 | return (
6 |
7 |
8 |
9 |
10 |
14 |
18 |
22 |
23 | {/* Twitter Card data */}
24 |
25 |
26 |
27 |
28 |
29 |
33 |
34 | {/* Open Graph data */}
35 |
36 |
37 |
38 |
42 |
43 |
44 |
45 |
46 | {/* Google Analitics */}
47 |
51 |
60 |
61 | {props.headComponents}
62 |
63 |
64 | {props.preBodyComponents}
65 |
66 | This app works best with JavaScript enabled.
67 |
68 |
73 | {props.postBodyComponents}
74 |
75 |
76 | )
77 | }
78 |
79 | HTML.propTypes = {
80 | htmlAttributes: PropTypes.object,
81 | headComponents: PropTypes.array,
82 | bodyAttributes: PropTypes.object,
83 | preBodyComponents: PropTypes.array,
84 | body: PropTypes.string,
85 | postBodyComponents: PropTypes.array,
86 | }
87 |
--------------------------------------------------------------------------------
/src/components/theme-setup/BorderRadius.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col, ThemeProvider } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const theme = {
7 | rounded: {
8 | veryLarge: "18px",
9 | },
10 | }
11 |
12 | const breakpointsCode1 = `// Adding a custom border radius
13 | import {
14 | ThemeProvider,
15 | Div,
16 | Row,
17 | Col } from "atomize";
18 |
19 | const theme = {
20 | rounded: {
21 | veryLarge: "18px",
22 | }
23 | };
24 |
25 | ReactDOM.render(
26 |
27 |
36 | Custom Radius
37 |
38 |
39 | , mountNode
40 | );`
41 |
42 | const BorderRadius = () => {
43 | return (
44 | <>
45 |
46 |
47 | Border Radius
48 |
49 |
50 | By default border radius values available are 0 ,{" "}
51 | xs , sm , md , lg ,{" "}
52 | xl & circle having border radius of{" "}
53 | 0px , 2px , 4px , 6px ,{" "}
54 | 8px , 12px & 1000rem respectively.
55 |
56 |
57 |
58 |
59 | {["0", "xs", "sm", "md", "lg", "xl", "circle"].map(radius => (
60 |
61 |
72 | {radius}
73 |
74 |
75 | ))}
76 |
77 |
78 |
79 |
80 | You can customize the available or add your own border radius by
81 | providing rounded variable in the theme.
82 |
83 |
84 |
85 |
86 |
96 | Custom Radius
97 |
98 |
99 |
100 |
101 | >
102 | )
103 | }
104 |
105 | export default BorderRadius
106 |
--------------------------------------------------------------------------------
/src/pages/docs/react/ui-templates.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import Layout from "../../../components/layout"
4 | import SEO from "../../../components/seo"
5 | import { Text, Div, Row, Col, Icon, Anchor, Button } from "atomize"
6 | import DocsWrapper from "../../../components/common/DocsWrapper"
7 |
8 | const UITemplates = () => (
9 |
10 |
14 |
15 |
16 |
17 | UI tempalates coming soon
18 |
19 |
20 | Official UI templates build on Atomize React will be released very
21 | soon.
22 |
23 |
24 | }
33 | >
34 | Get notified
35 |
36 |
37 | {/*
38 | UI Templates
39 |
40 |
41 | To sell your own template at atomize or to recieve support for current
42 | one, you{" "}
43 | can reach out here.
44 |
45 |
46 |
47 |
51 |
65 |
66 |
67 |
68 | Blog Template
69 |
70 |
71 |
75 |
82 | Preview
83 |
84 |
85 |
Buy template
86 |
87 |
88 |
89 |
*/}
90 |
91 |
92 |
93 | )
94 |
95 | export default UITemplates
96 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Welcome to Firebase Hosting
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
32 |
33 |
34 |
35 |
Welcome
36 |
Firebase Hosting Setup Complete
37 |
You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!
38 |
Open Hosting Documentation
39 |
40 | Firebase SDK Loading…
41 |
42 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Rounded.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag, Row, Col } from "atomize"
4 |
5 | import InfoCodeSidebar from "../common/InfoCodeSidebar"
6 |
7 | const borderRadiusCode1 = `// Rounded 0
8 | rounded="0"
9 |
10 | // Rounded extra small
11 | rounded="xs"
12 |
13 | // Rounded small
14 | rounded="sm"
15 |
16 | // Rounded medium
17 | rounded="md"
18 |
19 | // Rounded large
20 | rounded="lg"
21 |
22 | // Rounded extra large
23 | rounded="xl"
24 |
25 | // Rounded circle
26 | rounded="circle"`
27 |
28 | const borderRadiusCode2 = `// Rounded top left
29 | rounded={{ tl: "circle"}}
30 |
31 | // Rounded top left & bottom right
32 | rounded={{ tl: "circle", br: "circle" }}
33 |
34 | // Rounded medium
35 | rounded={{ t: "circle" }}
36 |
37 | // Responsive
38 | rounded={{ t: { xs: "circle", md: 'xs'} }}`
39 |
40 | const Rounded = () => {
41 | return (
42 | <>
43 |
49 |
50 | Border Radius
51 |
52 |
53 | Border Radius can be defined by {"rounded={value}"} where
54 | value can be - '0', 'xs', 'sm', 'md', 'lg' or 'xl'. 'md' is the
55 | default border radius of buttons and other such elements. You can{" "}
56 | edit or add more rounded values
57 | by theme.
58 |
59 |
60 |
61 | {["0", "xs", "sm", "md", "lg", "xl", "circle"].map(value => (
62 |
63 |
64 |
65 | ))}
66 |
67 |
68 |
69 |
70 | Directional border Radius can also be given by passing an array to
71 | rounded of {"t"} , {"b"} , {"r"} ,{" "}
72 | {"l"} , {"tr"} , {"br"} ,{" "}
73 | {"tl"} & {"tb"} .
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
105 |
106 |
107 |
108 | >
109 | )
110 | }
111 |
112 | export default Rounded
113 |
--------------------------------------------------------------------------------
/src/components/theme-setup/Transition.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, ThemeProvider } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const theme = {
7 | transition: {
8 | custom: "transform 0.8s linear",
9 | },
10 | }
11 |
12 | const breakpointsCode1 = `// Changing the transition value
13 | import { Div, Text, Tag, Row, Col, ThemeProvider } from "atomize";
14 |
15 | const theme = {
16 | transition: {
17 | custom: "transform 0.8s linear"
18 | },
19 | };
20 |
21 | componentDidMount() {
22 | setInterval(this.toggleState, 1000)
23 | }
24 |
25 | toggleState() {
26 | const { animate } = this.state
27 | this.setState({ animate: !animate })
28 | }
29 |
30 | class Transition extends React.Component {
31 | constructor(props) {
32 | super(props)
33 |
34 | this.state = {
35 | animate: false,
36 | }
37 |
38 | this.toggleState = this.toggleState.bind(this)
39 | }
40 |
41 | render() {
42 | cosnt { animate } = this.state;
43 |
44 | return(
45 |
46 |
59 |
60 | )
61 | }
62 | }
63 |
64 | ReactDOM.render( , mountNode);`
65 |
66 | class Transition extends React.Component {
67 | constructor(props) {
68 | super(props)
69 |
70 | this.state = {
71 | animate1: false,
72 | animate2: false,
73 | }
74 |
75 | this.toggleState = this.toggleState.bind(this)
76 | }
77 |
78 | componentDidMount() {
79 | setInterval(this.toggleState, 1000)
80 | }
81 |
82 | toggleState() {
83 | const { animate1, animate2 } = this.state
84 | this.setState({ animate1: !animate1, animate2: !animate2 })
85 | }
86 |
87 | render() {
88 | const { animate1, animate2 } = this.state
89 |
90 | return (
91 |
92 |
93 | Transition
94 |
95 |
96 | Default value of transition is all 0.4s ease-in-out .
97 |
98 |
99 |
110 |
111 |
112 | You can edit this default transition value by changing the{" "}
113 | transition in the theme as shown.
114 |
115 |
116 |
117 |
128 |
129 |
130 | )
131 | }
132 | }
133 |
134 | export default Transition
135 |
--------------------------------------------------------------------------------
/src/components/atoms/ImageDocs.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Row, Col, Image } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 | import AvailableProps from "../common/AvailableProps"
6 |
7 | const imageDocCode1 = `// Images
8 | import { Image, Div, Row, Col } from "atomize";
9 |
10 | const BasicImages = () => {
11 | return (
12 |
13 |
14 |
15 |
16 |
17 |
23 |
24 |
25 | );
26 | }
27 | `
28 |
29 | class ImageDocs extends React.Component {
30 | constructor(props) {
31 | super(props)
32 |
33 | this.state = {
34 | selectedCode: imageDocCode1,
35 | }
36 |
37 | this.toggleSelectedCode = this.toggleSelectedCode.bind(this)
38 | }
39 |
40 | toggleSelectedCode(value) {
41 | this.setState({ selectedCode: value })
42 | }
43 |
44 | render() {
45 | const { selectedCode } = this.state
46 |
47 | return (
48 |
49 |
50 | Image
51 |
52 |
53 | You can use {' '} for rendering an
54 | image component, or if you want to maintain a constant ratio you can
55 | use it in background like
56 |
57 | {'
'}
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
72 |
73 |
74 |
75 |
76 |
111 |
112 | )
113 | }
114 | }
115 |
116 | export default ImageDocs
117 |
--------------------------------------------------------------------------------
/src/images/react.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/components/introduction/Intro.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Div, Text, Tag, Icon } from "atomize"
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow"
5 |
6 | const Intro = () => {
7 | return (
8 | <>
9 |
10 |
11 | Introduction
12 |
13 |
14 | Following the Atomize Design System specification, we developed a
15 | React UI library antd that contains a set of high quality components
16 | and demos for building rich, interactive user interfaces.
17 |
18 |
19 |
20 |
21 | Features
22 |
23 |
24 |
25 |
31 |
32 | An enterprise-class UI design language for web applications.
33 |
34 |
35 |
36 |
37 |
43 |
44 | A set of high-quality React components out of the box.
45 |
46 |
47 |
48 |
49 |
55 |
56 | Written in TypeScript with complete defined types.
57 |
58 |
59 |
60 |
61 |
67 |
68 | The whole package of development and design resources and tools.
69 |
70 |
71 |
72 |
73 |
74 | Environment Support
75 |
76 |
77 |
83 |
84 | Environment Support
85 |
86 |
87 |
88 |
94 |
95 | Modern browsers and Internet Explorer 9+ (with polyfills)
96 |
97 |
98 |
99 |
105 |
106 | Server-side Rendering.
107 |
108 |
109 |
110 | >
111 | )
112 | }
113 |
114 | export default Intro
115 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/BorderRadius.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import { Link } from "gatsby"
3 | import { Div, Text, Tag, Row, Col } from "atomize"
4 |
5 | import InfoCodeRow from "../common/InfoCodeRow"
6 |
7 | const borderRadiusCode1 = `// Rounded values
8 |
9 | {["0", "xs", "sm", "md", "lg", "xl"].map(value => (
10 |
11 |
12 |
13 | ))}
14 |
15 | `
16 |
17 | const borderRadiusCode2 = `// Directional Border Radius
18 |
19 |
20 |
21 |
22 |
23 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
47 |
48 |
`
49 |
50 | const BorderRadius = () => {
51 | return (
52 | <>
53 |
59 |
60 | Border Radius
61 |
62 |
63 | Border Radius can be defined by {"rounded={value}"} where
64 | value can be - '0', 'xs', 'sm', 'md', 'lg' or 'xl'. 'md' is the
65 | default border radius of buttons and other such elements. You can{" "}
66 | edit or add more rounded values
67 | by theme.
68 |
69 |
70 |
71 | {["0", "xs", "sm", "md", "lg", "xl", "circle"].map(value => (
72 |
73 |
74 |
75 | ))}
76 |
77 |
78 |
79 |
80 | Directional border Radius can also be given by passing an array to
81 | rounded of {"t"} , {"b"} , {"r"} ,{" "}
82 | {"l"} , {"tr"} , {"br"} ,{" "}
83 | {"tl"} & {"tb"} .
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
115 |
116 |
117 |
118 | >
119 | )
120 | }
121 |
122 | export default BorderRadius
123 |
--------------------------------------------------------------------------------
/src/pages/docs/react/responsive.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import Layout from "../../../components/layout"
4 | import SEO from "../../../components/seo"
5 | import { Text, Div } from "atomize"
6 | import DocsWrapper from "../../../components/common/DocsWrapper"
7 | import Highlight, { defaultProps } from "prism-react-renderer"
8 |
9 | import codeTheme from "../../../components/common/codeTheme"
10 |
11 | const responsiveCode = `{
12 | xs: { 'value for mobile devices & larger' },
13 | sm: { 'value for larger mobile & larger' },
14 | md: { 'value for tablets & larger' },
15 | lg: { 'value for small desktop & larger' },
16 | xl: { 'value for large desktop' }
17 | }`
18 |
19 | const exampleCode = `// Padding
20 | p={{ xs: '1rem', md: '4rem' }}
21 |
22 | // Padding Top
23 | p={{ t: {xs: '1rem', md: '4rem' }}}
24 |
25 | // border
26 | border={{ xs: '1px solid', lg: '2px dashed' }}
27 |
28 | // Border Top & Bottom
29 | border={
30 | t: { xs: '1px solid', lg: '2px dashed' }
31 | b: { xs: '1px solid', lg: '2px dashed' }
32 | }`
33 |
34 | const ResponsiveDocs = () => (
35 |
36 |
40 |
41 |
42 |
43 | Responsive.
44 |
45 |
46 | Atomize design system supports responsiveness for most of the props by
47 | just passing an array. Examples for a particular prop will be given in
48 | its detail.
49 |
50 |
51 | Array given to the end prop is like -
52 |
53 |
62 |
68 | {({ className, style, tokens, getLineProps, getTokenProps }) => (
69 |
70 | {tokens.map((line, i) => (
71 |
72 | {line.map((token, key) => (
73 |
74 | ))}
75 |
76 | ))}
77 |
78 | )}
79 |
80 |
81 |
82 | Examples -
83 |
84 |
93 |
99 | {({ className, style, tokens, getLineProps, getTokenProps }) => (
100 |
101 | {tokens.map((line, i) => (
102 |
103 | {line.map((token, key) => (
104 |
105 | ))}
106 |
107 | ))}
108 |
109 | )}
110 |
111 |
112 |
113 |
114 |
115 | )
116 |
117 | export default ResponsiveDocs
118 |
--------------------------------------------------------------------------------
/src/components/common/InfoCodeSidebar.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 |
3 | import Highlight, { defaultProps } from "prism-react-renderer"
4 | import { Div, Button, Notification, Icon } from "atomize"
5 | import codeTheme from "../../components/common/codeTheme"
6 |
7 | class InfoCodeSidebar extends React.Component {
8 | constructor(props) {
9 | super(props)
10 |
11 | this.state = {
12 | copied: false,
13 | }
14 | }
15 | copyUrlToClipboard = code => {
16 | const el = document.createElement("textarea")
17 | el.value = code
18 | el.setAttribute("readonly", "")
19 | el.style.position = "absolute"
20 | el.style.left = "-9999px"
21 | document.body.appendChild(el)
22 | const selected =
23 | document.getSelection().rangeCount > 0
24 | ? document.getSelection().getRangeAt(0)
25 | : false
26 | el.select()
27 | document.execCommand("copy")
28 | document.body.removeChild(el)
29 | if (selected) {
30 | document.getSelection().removeAllRanges()
31 | document.getSelection().addRange(selected)
32 | }
33 |
34 | // window.alert("Url Copied")
35 |
36 | this.setState({ copied: true })
37 | }
38 |
39 | render() {
40 | const { copied } = this.state
41 | const { children, code, border, id } = this.props
42 |
43 | return (
44 |
45 |
57 | }
58 | onClose={() => this.setState({ copied: false })}
59 | >
60 | Copied Successfully
61 |
62 |
63 |
64 | {children}
65 |
66 |
67 |
73 |
81 | {/* {code && (
82 |
this.copyUrlToClipboard(code)}
92 | >
93 | Copy Code
94 |
95 | )} */}
96 | {code && (
97 |
103 | {({
104 | className,
105 | style,
106 | tokens,
107 | getLineProps,
108 | getTokenProps,
109 | }) => (
110 |
111 | {tokens.map((line, i) => (
112 |
113 | {line.map((token, key) => (
114 |
115 | ))}
116 |
117 | ))}
118 |
119 | )}
120 |
121 | )}
122 |
123 |
124 |
125 | )
126 | }
127 | }
128 |
129 | export default InfoCodeSidebar
130 |
--------------------------------------------------------------------------------
/src/components/utilitiesSidebarComponent/Flex.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { Div, Text, Tag, Icon } from "atomize";
3 |
4 | import InfoCodeRow from "../common/InfoCodeRow";
5 |
6 | const flexCode1 = `// Complex structure can be easily made with flex
7 |
8 |
9 | {[1, 2, 3, 4].map(index => (
10 |
21 | {index}
22 |
23 | ))}
24 |
25 |
26 | {[1, 2, 3, 4].map(index => (
27 |
38 | {index}
39 |
40 | ))}
41 |
42 |
43 | `;
44 |
45 | const Flex = () => {
46 | return (
47 |
48 |
49 | Flex
50 |
51 |
52 |
53 | Flex properties are accessable when display is flex. These properties
54 | are -
55 |
56 |
57 |
63 | align is equivalent to align-items of css
64 |
65 |
66 |
72 | justify is equivalent to justify-content of css
73 |
74 |
75 |
81 | flexDir is equivalent to flex-direction of css
82 |
83 |
84 |
90 | flexGrow is equivalent to flex-grow of css
91 |
92 |
93 |
99 | flexWrap is equivalent to align-items of css
100 |
101 |
102 |
103 |
104 |
105 | {[1, 2, 3, 4].map(index => (
106 |
117 | {index}
118 |
119 | ))}
120 |
121 |
122 | {[1, 2, 3, 4].map(index => (
123 |
135 | {index}
136 |
137 | ))}
138 |
139 |
140 |
141 | );
142 | };
143 |
144 | export default Flex;
145 |
--------------------------------------------------------------------------------