@campxdev/react-blueprint 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.storybook/main.ts +4 -3
  2. package/.storybook/preview.tsx +30 -13
  3. package/package.json +3 -1
  4. package/src/components/DataDisplay/DataTable/DataTable.stories.tsx +15 -6
  5. package/src/components/DataDisplay/DataTable/DataTable.tsx +21 -25
  6. package/src/components/DataDisplay/DataTable/TablePagination.tsx +22 -0
  7. package/src/components/DataDisplay/styles.tsx +5 -0
  8. package/src/components/Layout/LayoutWrapper/LayoutWrapper.stories.tsx +44 -8
  9. package/src/components/Layout/LayoutWrapper/LayoutWrapper.tsx +49 -49
  10. package/src/components/Layout/LayoutWrapper/styles.tsx +52 -0
  11. package/src/components/Layout/PageContent/PageContent.tsx +26 -0
  12. package/src/components/Layout/SideNavigation/SideNavigation.tsx +1 -5
  13. package/src/components/Layout/SideNavigation/styles/styles.tsx +1 -58
  14. package/src/components/export.ts +2 -0
  15. package/src/store/activeStore.ts +1 -0
  16. package/src/components/Layout/ComponentBackground/ComponentBackground.tsx +0 -83
  17. package/src/components/Layout/ComponentBackground/DefaultBackground.tsx +0 -12
  18. package/src/components/Layout/ComponentBackground/PaperBackground.tsx +0 -12
  19. package/src/components/Layout/SideNavigation/SideNavigation.stories.tsx +0 -30
  20. package/src/components/Typography/Typography.stories.tsx +0 -95
  21. package/src/stories/Button.stories.ts +0 -52
  22. package/src/stories/Button.tsx +0 -48
  23. package/src/stories/Configure.mdx +0 -364
  24. package/src/stories/Header.stories.ts +0 -33
  25. package/src/stories/Header.tsx +0 -56
  26. package/src/stories/Page.stories.ts +0 -32
  27. package/src/stories/Page.tsx +0 -73
  28. package/src/stories/assets/accessibility.png +0 -0
  29. package/src/stories/assets/accessibility.svg +0 -5
  30. package/src/stories/assets/addon-library.png +0 -0
  31. package/src/stories/assets/assets.png +0 -0
  32. package/src/stories/assets/avif-test-image.avif +0 -0
  33. package/src/stories/assets/context.png +0 -0
  34. package/src/stories/assets/discord.svg +0 -15
  35. package/src/stories/assets/docs.png +0 -0
  36. package/src/stories/assets/figma-plugin.png +0 -0
  37. package/src/stories/assets/github.svg +0 -3
  38. package/src/stories/assets/share.png +0 -0
  39. package/src/stories/assets/styling.png +0 -0
  40. package/src/stories/assets/testing.png +0 -0
  41. package/src/stories/assets/theming.png +0 -0
  42. package/src/stories/assets/tutorials.svg +0 -12
  43. package/src/stories/assets/youtube.svg +0 -4
  44. package/src/stories/button.css +0 -30
  45. package/src/stories/header.css +0 -32
  46. package/src/stories/page.css +0 -69
@@ -1,83 +0,0 @@
1
- import {
2
- Stack,
3
- Switch,
4
- SxProps,
5
- ToggleButton,
6
- ToggleButtonGroup,
7
- } from "@mui/material";
8
- import { ReactNode, useState } from "react";
9
- import { MuiThemeProvider } from "../../../themes/MuiThemeProvider";
10
- import { darkTheme, lightTheme } from "../../../themes/export";
11
- import { Typography } from "../../Typography/Typography";
12
- import { DefaultBackground } from "./DefaultBackground";
13
- import { PaperBackground } from "./PaperBackground";
14
-
15
- export enum ComponentBackgroundTypes {
16
- DEFAULT = "default",
17
- PAPER = "paper",
18
- }
19
-
20
- export type ComponentBackgroundProps = {
21
- children: ReactNode;
22
- sx?: SxProps;
23
- };
24
-
25
- export const BackgroundComponent = ({
26
- children,
27
- backgroundType,
28
- sx,
29
- }: {
30
- children: ReactNode;
31
- backgroundType: ComponentBackgroundTypes;
32
- sx?: SxProps;
33
- }) => {
34
- switch (backgroundType) {
35
- case ComponentBackgroundTypes.DEFAULT:
36
- return <DefaultBackground sx={sx}>{children}</DefaultBackground>;
37
- case ComponentBackgroundTypes.PAPER:
38
- return <PaperBackground sx={sx}>{children}</PaperBackground>;
39
- default:
40
- return <DefaultBackground sx={sx}>{children}</DefaultBackground>;
41
- }
42
- };
43
-
44
- export const ComponentBackground = ({
45
- children,
46
- sx,
47
- }: ComponentBackgroundProps) => {
48
- const [darkMode, setDarkMode] = useState(false);
49
- const [backgroundType, setBackgroundType] =
50
- useState<ComponentBackgroundTypes>(ComponentBackgroundTypes.DEFAULT);
51
-
52
- return (
53
- <MuiThemeProvider theme={darkMode ? darkTheme : lightTheme}>
54
- <BackgroundComponent backgroundType={backgroundType} sx={sx}>
55
- {children}
56
- <Stack gap={2} direction="row" marginTop="50px">
57
- <Switch
58
- onChange={(e) => {
59
- setDarkMode(e.target.checked);
60
- }}
61
- />
62
- <Typography variant="label1">Dark Mode</Typography>
63
- <ToggleButtonGroup
64
- color="primary"
65
- value={backgroundType}
66
- exclusive
67
- onChange={(e, v) => {
68
- setBackgroundType(v);
69
- }}
70
- aria-label="Platform"
71
- >
72
- <ToggleButton value={ComponentBackgroundTypes.DEFAULT}>
73
- DEFAULT
74
- </ToggleButton>
75
- <ToggleButton value={ComponentBackgroundTypes.PAPER}>
76
- PAPER
77
- </ToggleButton>
78
- </ToggleButtonGroup>
79
- </Stack>
80
- </BackgroundComponent>
81
- </MuiThemeProvider>
82
- );
83
- };
@@ -1,12 +0,0 @@
1
- import { Box, styled } from "@mui/material";
2
-
3
- export const DefaultBackground = styled(Box)(({ theme }) => ({
4
- minHeight: "150px",
5
- backgroundColor: theme.palette.background.default,
6
- minWidth: "600px",
7
- display: "flex",
8
- flexDirection: "column",
9
- justifyContent: "center",
10
- alignItems: "center",
11
- padding: "50px",
12
- }));
@@ -1,12 +0,0 @@
1
- import { Box, styled } from "@mui/material";
2
-
3
- export const PaperBackground = styled(Box)(({ theme }) => ({
4
- minHeight: "150px",
5
- backgroundColor: theme.palette.background.paper,
6
- minWidth: "600px",
7
- display: "flex",
8
- flexDirection: "column",
9
- justifyContent: "center",
10
- alignItems: "center",
11
- padding: "50px",
12
- }));
@@ -1,30 +0,0 @@
1
- import React from "react";
2
- import { Meta, StoryObj } from "@storybook/react";
3
- import { SideNavigation, SideNavigationProps } from "./SideNavigation";
4
-
5
- // Define the default export with Meta type including the component type
6
- const meta: Meta<typeof SideNavigation> = {
7
- title: "Layout/SideNavigation",
8
- component: SideNavigation,
9
- tags: ["autodocs"],
10
- argTypes: {
11
- menu: {
12
- control: "object",
13
- description: "Menu items to be displayed in the side navigation.",
14
- },
15
- },
16
- };
17
-
18
- export default meta;
19
- type Story = StoryObj<typeof SideNavigation>;
20
-
21
- // Primary story
22
- export const Primary: Story = {
23
- render: (args: SideNavigationProps) => <SideNavigation {...args} />,
24
- args: {
25
- menu: [
26
- { label: "Item 1", path: "/" },
27
- { label: "Item 2", path: "/item2" },
28
- ],
29
- },
30
- };
@@ -1,95 +0,0 @@
1
- // Import React and other necessary elements
2
- import { Meta } from "@storybook/react";
3
-
4
- // Make sure your childrenField import is correct
5
-
6
- import { Typography, TypographyProps } from "./Typography";
7
-
8
- // Define the default export with Meta type including the component type
9
- export default {
10
- title: "Typography",
11
- component: Typography,
12
- tags: ["autodocs"],
13
- argTypes: {
14
- variant: {
15
- control: "select",
16
- options: ["h1", "h2", "h3", "h4", "fieldLabel"],
17
- description: "The Typography Variant to use",
18
- },
19
- },
20
- } as Meta<typeof Typography>;
21
-
22
- // Define stories directly as objects with render function
23
- export const H6 = {
24
- render: (args: TypographyProps) => (
25
- <Typography {...args}>{args.children}</Typography>
26
- ),
27
- args: {
28
- variant: "h6",
29
- children: "Heading 6",
30
- },
31
- };
32
-
33
- export const Subtitle1 = {
34
- render: (args: TypographyProps) => <Typography {...args} />,
35
- args: {
36
- variant: "subtitle1",
37
- children: "Subtitle 1",
38
- },
39
- };
40
-
41
- export const Subtitle2 = {
42
- render: (args: TypographyProps) => <Typography {...args} />,
43
- args: {
44
- variant: "subtitle2",
45
- children: "Subtitle 2",
46
- },
47
- };
48
-
49
- export const Subtitle3 = {
50
- render: (args: TypographyProps) => <Typography {...args} />,
51
- args: {
52
- variant: "subtitle3",
53
- children: "Subtitle 3",
54
- },
55
- };
56
-
57
- export const Body1 = {
58
- render: (args: TypographyProps) => <Typography {...args} />,
59
- args: {
60
- variant: "body1",
61
- children: "Body 1",
62
- },
63
- };
64
-
65
- export const Body2 = {
66
- render: (args: TypographyProps) => <Typography {...args} />,
67
- args: {
68
- variant: "body2",
69
- children: "Body 2",
70
- },
71
- };
72
-
73
- export const Caption = {
74
- render: (args: TypographyProps) => <Typography {...args} />,
75
- args: {
76
- variant: "caption",
77
- children: "Caption",
78
- },
79
- };
80
-
81
- export const Label1 = {
82
- render: (args: TypographyProps) => <Typography {...args} />,
83
- args: {
84
- variant: "label1",
85
- children: "Label 1",
86
- },
87
- };
88
-
89
- export const Label2 = {
90
- render: (args: TypographyProps) => <Typography {...args} />,
91
- args: {
92
- variant: "label2",
93
- children: "Label 2",
94
- },
95
- };
@@ -1,52 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { fn } from '@storybook/test';
3
- import { Button } from './Button';
4
-
5
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
6
- const meta = {
7
- title: 'Example/Button',
8
- component: Button,
9
- parameters: {
10
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
11
- layout: 'centered',
12
- },
13
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
14
- tags: ['autodocs'],
15
- // More on argTypes: https://storybook.js.org/docs/api/argtypes
16
- argTypes: {
17
- backgroundColor: { control: 'color' },
18
- },
19
- // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
20
- args: { onClick: fn() },
21
- } satisfies Meta<typeof Button>;
22
-
23
- export default meta;
24
- type Story = StoryObj<typeof meta>;
25
-
26
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
27
- export const Primary: Story = {
28
- args: {
29
- primary: true,
30
- label: 'Button',
31
- },
32
- };
33
-
34
- export const Secondary: Story = {
35
- args: {
36
- label: 'Button',
37
- },
38
- };
39
-
40
- export const Large: Story = {
41
- args: {
42
- size: 'large',
43
- label: 'Button',
44
- },
45
- };
46
-
47
- export const Small: Story = {
48
- args: {
49
- size: 'small',
50
- label: 'Button',
51
- },
52
- };
@@ -1,48 +0,0 @@
1
- import React from 'react';
2
- import './button.css';
3
-
4
- interface ButtonProps {
5
- /**
6
- * Is this the principal call to action on the page?
7
- */
8
- primary?: boolean;
9
- /**
10
- * What background color to use
11
- */
12
- backgroundColor?: string;
13
- /**
14
- * How large should the button be?
15
- */
16
- size?: 'small' | 'medium' | 'large';
17
- /**
18
- * Button contents
19
- */
20
- label: string;
21
- /**
22
- * Optional click handler
23
- */
24
- onClick?: () => void;
25
- }
26
-
27
- /**
28
- * Primary UI component for user interaction
29
- */
30
- export const Button = ({
31
- primary = false,
32
- size = 'medium',
33
- backgroundColor,
34
- label,
35
- ...props
36
- }: ButtonProps) => {
37
- const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
38
- return (
39
- <button
40
- type="button"
41
- className={['storybook-button', `storybook-button--${size}`, mode].join(' ')}
42
- style={{ backgroundColor }}
43
- {...props}
44
- >
45
- {label}
46
- </button>
47
- );
48
- };
@@ -1,364 +0,0 @@
1
- import { Meta } from "@storybook/blocks";
2
-
3
- import Github from "./assets/github.svg";
4
- import Discord from "./assets/discord.svg";
5
- import Youtube from "./assets/youtube.svg";
6
- import Tutorials from "./assets/tutorials.svg";
7
- import Styling from "./assets/styling.png";
8
- import Context from "./assets/context.png";
9
- import Assets from "./assets/assets.png";
10
- import Docs from "./assets/docs.png";
11
- import Share from "./assets/share.png";
12
- import FigmaPlugin from "./assets/figma-plugin.png";
13
- import Testing from "./assets/testing.png";
14
- import Accessibility from "./assets/accessibility.png";
15
- import Theming from "./assets/theming.png";
16
- import AddonLibrary from "./assets/addon-library.png";
17
-
18
- export const RightArrow = () => <svg
19
- viewBox="0 0 14 14"
20
- width="8px"
21
- height="14px"
22
- style={{
23
- marginLeft: '4px',
24
- display: 'inline-block',
25
- shapeRendering: 'inherit',
26
- verticalAlign: 'middle',
27
- fill: 'currentColor',
28
- 'path fill': 'currentColor'
29
- }}
30
- >
31
- <path d="m11.1 7.35-5.5 5.5a.5.5 0 0 1-.7-.7L10.04 7 4.9 1.85a.5.5 0 1 1 .7-.7l5.5 5.5c.2.2.2.5 0 .7Z" />
32
- </svg>
33
-
34
- <Meta title="Configure your project" />
35
-
36
- <div className="sb-container">
37
- <div className='sb-section-title'>
38
- # Configure your project
39
-
40
- Because Storybook works separately from your app, you'll need to configure it for your specific stack and setup. Below, explore guides for configuring Storybook with popular frameworks and tools. If you get stuck, learn how you can ask for help from our community.
41
- </div>
42
- <div className="sb-section">
43
- <div className="sb-section-item">
44
- <img
45
- src={Styling}
46
- alt="A wall of logos representing different styling technologies"
47
- />
48
- <h4 className="sb-section-item-heading">Add styling and CSS</h4>
49
- <p className="sb-section-item-paragraph">Like with web applications, there are many ways to include CSS within Storybook. Learn more about setting up styling within Storybook.</p>
50
- <a
51
- href="https://storybook.js.org/docs/react/configure/styling-and-css"
52
- target="_blank"
53
- >Learn more<RightArrow /></a>
54
- </div>
55
- <div className="sb-section-item">
56
- <img
57
- src={Context}
58
- alt="An abstraction representing the composition of data for a component"
59
- />
60
- <h4 className="sb-section-item-heading">Provide context and mocking</h4>
61
- <p className="sb-section-item-paragraph">Often when a story doesn't render, it's because your component is expecting a specific environment or context (like a theme provider) to be available.</p>
62
- <a
63
- href="https://storybook.js.org/docs/react/writing-stories/decorators#context-for-mocking"
64
- target="_blank"
65
- >Learn more<RightArrow /></a>
66
- </div>
67
- <div className="sb-section-item">
68
- <img src={Assets} alt="A representation of typography and image assets" />
69
- <div>
70
- <h4 className="sb-section-item-heading">Load assets and resources</h4>
71
- <p className="sb-section-item-paragraph">To link static files (like fonts) to your projects and stories, use the
72
- `staticDirs` configuration option to specify folders to load when
73
- starting Storybook.</p>
74
- <a
75
- href="https://storybook.js.org/docs/react/configure/images-and-assets"
76
- target="_blank"
77
- >Learn more<RightArrow /></a>
78
- </div>
79
- </div>
80
- </div>
81
- </div>
82
- <div className="sb-container">
83
- <div className='sb-section-title'>
84
- # Do more with Storybook
85
-
86
- Now that you know the basics, let's explore other parts of Storybook that will improve your experience. This list is just to get you started. You can customise Storybook in many ways to fit your needs.
87
- </div>
88
-
89
- <div className="sb-section">
90
- <div className="sb-features-grid">
91
- <div className="sb-grid-item">
92
- <img src={Docs} alt="A screenshot showing the autodocs tag being set, pointing a docs page being generated" />
93
- <h4 className="sb-section-item-heading">Autodocs</h4>
94
- <p className="sb-section-item-paragraph">Auto-generate living,
95
- interactive reference documentation from your components and stories.</p>
96
- <a
97
- href="https://storybook.js.org/docs/react/writing-docs/autodocs"
98
- target="_blank"
99
- >Learn more<RightArrow /></a>
100
- </div>
101
- <div className="sb-grid-item">
102
- <img src={Share} alt="A browser window showing a Storybook being published to a chromatic.com URL" />
103
- <h4 className="sb-section-item-heading">Publish to Chromatic</h4>
104
- <p className="sb-section-item-paragraph">Publish your Storybook to review and collaborate with your entire team.</p>
105
- <a
106
- href="https://storybook.js.org/docs/react/sharing/publish-storybook#publish-storybook-with-chromatic"
107
- target="_blank"
108
- >Learn more<RightArrow /></a>
109
- </div>
110
- <div className="sb-grid-item">
111
- <img src={FigmaPlugin} alt="Windows showing the Storybook plugin in Figma" />
112
- <h4 className="sb-section-item-heading">Figma Plugin</h4>
113
- <p className="sb-section-item-paragraph">Embed your stories into Figma to cross-reference the design and live
114
- implementation in one place.</p>
115
- <a
116
- href="https://storybook.js.org/docs/react/sharing/design-integrations#embed-storybook-in-figma-with-the-plugin"
117
- target="_blank"
118
- >Learn more<RightArrow /></a>
119
- </div>
120
- <div className="sb-grid-item">
121
- <img src={Testing} alt="Screenshot of tests passing and failing" />
122
- <h4 className="sb-section-item-heading">Testing</h4>
123
- <p className="sb-section-item-paragraph">Use stories to test a component in all its variations, no matter how
124
- complex.</p>
125
- <a
126
- href="https://storybook.js.org/docs/react/writing-tests"
127
- target="_blank"
128
- >Learn more<RightArrow /></a>
129
- </div>
130
- <div className="sb-grid-item">
131
- <img src={Accessibility} alt="Screenshot of accessibility tests passing and failing" />
132
- <h4 className="sb-section-item-heading">Accessibility</h4>
133
- <p className="sb-section-item-paragraph">Automatically test your components for a11y issues as you develop.</p>
134
- <a
135
- href="https://storybook.js.org/docs/react/writing-tests/accessibility-testing"
136
- target="_blank"
137
- >Learn more<RightArrow /></a>
138
- </div>
139
- <div className="sb-grid-item">
140
- <img src={Theming} alt="Screenshot of Storybook in light and dark mode" />
141
- <h4 className="sb-section-item-heading">Theming</h4>
142
- <p className="sb-section-item-paragraph">Theme Storybook's UI to personalize it to your project.</p>
143
- <a
144
- href="https://storybook.js.org/docs/react/configure/theming"
145
- target="_blank"
146
- >Learn more<RightArrow /></a>
147
- </div>
148
- </div>
149
- </div>
150
- </div>
151
- <div className='sb-addon'>
152
- <div className='sb-addon-text'>
153
- <h4>Addons</h4>
154
- <p className="sb-section-item-paragraph">Integrate your tools with Storybook to connect workflows.</p>
155
- <a
156
- href="https://storybook.js.org/integrations/"
157
- target="_blank"
158
- >Discover all addons<RightArrow /></a>
159
- </div>
160
- <div className='sb-addon-img'>
161
- <img src={AddonLibrary} alt="Integrate your tools with Storybook to connect workflows." />
162
- </div>
163
- </div>
164
-
165
- <div className="sb-section sb-socials">
166
- <div className="sb-section-item">
167
- <img src={Github} alt="Github logo" className="sb-explore-image"/>
168
- Join our contributors building the future of UI development.
169
-
170
- <a
171
- href="https://github.com/storybookjs/storybook"
172
- target="_blank"
173
- >Star on GitHub<RightArrow /></a>
174
- </div>
175
- <div className="sb-section-item">
176
- <img src={Discord} alt="Discord logo" className="sb-explore-image"/>
177
- <div>
178
- Get support and chat with frontend developers.
179
-
180
- <a
181
- href="https://discord.gg/storybook"
182
- target="_blank"
183
- >Join Discord server<RightArrow /></a>
184
- </div>
185
- </div>
186
- <div className="sb-section-item">
187
- <img src={Youtube} alt="Youtube logo" className="sb-explore-image"/>
188
- <div>
189
- Watch tutorials, feature previews and interviews.
190
-
191
- <a
192
- href="https://www.youtube.com/@chromaticui"
193
- target="_blank"
194
- >Watch on YouTube<RightArrow /></a>
195
- </div>
196
- </div>
197
- <div className="sb-section-item">
198
- <img src={Tutorials} alt="A book" className="sb-explore-image"/>
199
- <p>Follow guided walkthroughs on for key workflows.</p>
200
-
201
- <a
202
- href="https://storybook.js.org/tutorials/"
203
- target="_blank"
204
- >Discover tutorials<RightArrow /></a>
205
- </div>
206
- </div>
207
-
208
- <style>
209
- {`
210
- .sb-container {
211
- margin-bottom: 48px;
212
- }
213
-
214
- .sb-section {
215
- width: 100%;
216
- display: flex;
217
- flex-direction: row;
218
- gap: 20px;
219
- }
220
-
221
- img {
222
- object-fit: cover;
223
- }
224
-
225
- .sb-section-title {
226
- margin-bottom: 32px;
227
- }
228
-
229
- .sb-section a:not(h1 a, h2 a, h3 a) {
230
- font-size: 14px;
231
- }
232
-
233
- .sb-section-item, .sb-grid-item {
234
- flex: 1;
235
- display: flex;
236
- flex-direction: column;
237
- }
238
-
239
- .sb-section-item-heading {
240
- padding-top: 20px !important;
241
- padding-bottom: 5px !important;
242
- margin: 0 !important;
243
- }
244
- .sb-section-item-paragraph {
245
- margin: 0;
246
- padding-bottom: 10px;
247
- }
248
-
249
- .sb-chevron {
250
- margin-left: 5px;
251
- }
252
-
253
- .sb-features-grid {
254
- display: grid;
255
- grid-template-columns: repeat(2, 1fr);
256
- grid-gap: 32px 20px;
257
- }
258
-
259
- .sb-socials {
260
- display: grid;
261
- grid-template-columns: repeat(4, 1fr);
262
- }
263
-
264
- .sb-socials p {
265
- margin-bottom: 10px;
266
- }
267
-
268
- .sb-explore-image {
269
- max-height: 32px;
270
- align-self: flex-start;
271
- }
272
-
273
- .sb-addon {
274
- width: 100%;
275
- display: flex;
276
- align-items: center;
277
- position: relative;
278
- background-color: #EEF3F8;
279
- border-radius: 5px;
280
- border: 1px solid rgba(0, 0, 0, 0.05);
281
- background: #EEF3F8;
282
- height: 180px;
283
- margin-bottom: 48px;
284
- overflow: hidden;
285
- }
286
-
287
- .sb-addon-text {
288
- padding-left: 48px;
289
- max-width: 240px;
290
- }
291
-
292
- .sb-addon-text h4 {
293
- padding-top: 0px;
294
- }
295
-
296
- .sb-addon-img {
297
- position: absolute;
298
- left: 345px;
299
- top: 0;
300
- height: 100%;
301
- width: 200%;
302
- overflow: hidden;
303
- }
304
-
305
- .sb-addon-img img {
306
- width: 650px;
307
- transform: rotate(-15deg);
308
- margin-left: 40px;
309
- margin-top: -72px;
310
- box-shadow: 0 0 1px rgba(255, 255, 255, 0);
311
- backface-visibility: hidden;
312
- }
313
-
314
- @media screen and (max-width: 800px) {
315
- .sb-addon-img {
316
- left: 300px;
317
- }
318
- }
319
-
320
- @media screen and (max-width: 600px) {
321
- .sb-section {
322
- flex-direction: column;
323
- }
324
-
325
- .sb-features-grid {
326
- grid-template-columns: repeat(1, 1fr);
327
- }
328
-
329
- .sb-socials {
330
- grid-template-columns: repeat(2, 1fr);
331
- }
332
-
333
- .sb-addon {
334
- height: 280px;
335
- align-items: flex-start;
336
- padding-top: 32px;
337
- overflow: hidden;
338
- }
339
-
340
- .sb-addon-text {
341
- padding-left: 24px;
342
- }
343
-
344
- .sb-addon-img {
345
- right: 0;
346
- left: 0;
347
- top: 130px;
348
- bottom: 0;
349
- overflow: hidden;
350
- height: auto;
351
- width: 124%;
352
- }
353
-
354
- .sb-addon-img img {
355
- width: 1200px;
356
- transform: rotate(-12deg);
357
- margin-left: 0;
358
- margin-top: 48px;
359
- margin-bottom: -40px;
360
- margin-left: -24px;
361
- }
362
- }
363
- `}
364
- </style>