Skip to content

Commit 70d3aab

Browse files
committed
Add Pricing Addons component with real-time pricing and features
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 75d4e26 commit 70d3aab

7 files changed

Lines changed: 713 additions & 1 deletion

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import React from "react";
2+
const AcademyIcon = ({ width = "32px", height = "32px", primaryFill, secondaryFill }) => {
3+
return (
4+
<svg
5+
fill={primaryFill}
6+
width={width}
7+
height={height}
8+
viewBox="0 0 22 22"
9+
xmlns="http://www.w3.org/2000/svg"
10+
data-name="Layer 1"
11+
>
12+
{/*middle-part*/}
13+
<path
14+
fill={secondaryFill}
15+
d="M3.8,7.5v9h-1.7c-.3,0-.6.3-.6.6v.9h19.5v-.9c0-.3-.3-.6-.6-.6h-1.7V7.5h-3v9h-3V7.5h-3v9h-3V7.5h-3Z"
16+
/>
17+
{/*bottom-part*/}
18+
<path
19+
fill={primaryFill}
20+
d="M21.4,18.8H1.1c-.6,0-1.1.5-1.1,1.1v.8c0,.2.2.4.4.4h21.8c.2,0,.4-.2.4-.4v-.8c0-.6-.5-1.1-1.1-1.1Z"
21+
/>
22+
{/*head-part*/}
23+
<path
24+
fill={primaryFill}
25+
d="M22.5,4.5v.8c0,.2-.2.4-.4.4h-1.1v.6c0,.3-.3.6-.6.6H2.1c-.3,0-.6-.3-.6-.6v-.6H.4c-.2,0-.4-.2-.4-.4v-.8c0-.2,0-.3.2-.3L11.1,0c0,0,.2,0,.3,0l10.9,4.1c.1,0,.2.2.2.3Z"
26+
/>
27+
</svg>
28+
);
29+
};
30+
export default AcademyIcon;
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
import { createTheme } from "@mui/material/styles";
2+
3+
// Layer5 brand colors based on their design system
4+
export const layer5Theme = createTheme({
5+
palette: {
6+
primary: {
7+
main: "#00B39F", // Layer5 signature green
8+
light: "#00D3C7",
9+
dark: "#00A08F",
10+
contrastText: "#ffffff",
11+
},
12+
secondary: {
13+
main: "#5C5C5C",
14+
light: "#8A8A8A",
15+
dark: "#2E2E2E",
16+
contrastText: "#ffffff",
17+
},
18+
background: {
19+
default: "#FAFAFA",
20+
paper: "#ffffff",
21+
},
22+
text: {
23+
primary: "#1A202C",
24+
secondary: "#4A5568",
25+
},
26+
success: {
27+
main: "#38A169",
28+
light: "#68D391",
29+
dark: "#2F855A",
30+
},
31+
info: {
32+
main: "#00B39F",
33+
light: "#00D3C7",
34+
dark: "#00A08F",
35+
},
36+
},
37+
typography: {
38+
fontFamily: "\"Inter\", \"Roboto\", \"Helvetica\", \"Arial\", sans-serif",
39+
h1: {
40+
fontSize: "2.5rem",
41+
fontWeight: 700,
42+
lineHeight: 1.2,
43+
},
44+
h2: {
45+
fontSize: "2rem",
46+
fontWeight: 600,
47+
lineHeight: 1.3,
48+
},
49+
h3: {
50+
fontSize: "1.5rem",
51+
fontWeight: 600,
52+
lineHeight: 1.4,
53+
},
54+
body1: {
55+
fontSize: "1rem",
56+
lineHeight: 1.5,
57+
},
58+
body2: {
59+
fontSize: "0.875rem",
60+
lineHeight: 1.5,
61+
},
62+
},
63+
shape: {
64+
borderRadius: 8,
65+
},
66+
components: {
67+
MuiButton: {
68+
styleOverrides: {
69+
root: {
70+
textTransform: "none",
71+
fontWeight: 600,
72+
borderRadius: 8,
73+
padding: "10px 24px",
74+
},
75+
contained: {
76+
boxShadow: "0 2px 8px rgba(0, 179, 159, 0.2)",
77+
"&:hover": {
78+
boxShadow: "0 4px 16px rgba(0, 179, 159, 0.3)",
79+
},
80+
},
81+
},
82+
},
83+
MuiCard: {
84+
styleOverrides: {
85+
root: {
86+
borderRadius: 12,
87+
boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
88+
border: "1px solid rgba(0, 179, 159, 0.1)",
89+
},
90+
},
91+
},
92+
MuiSlider: {
93+
styleOverrides: {
94+
root: {
95+
color: "#00B39F",
96+
height: 8,
97+
},
98+
thumb: {
99+
height: 24,
100+
width: 24,
101+
backgroundColor: "#00B39F",
102+
border: "2px solid currentColor",
103+
"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible": {
104+
boxShadow: "0 0 0 8px rgba(0, 179, 159, 0.16)",
105+
},
106+
},
107+
track: {
108+
height: 8,
109+
borderRadius: 4,
110+
},
111+
rail: {
112+
height: 8,
113+
borderRadius: 4,
114+
backgroundColor: "#E2E8F0",
115+
},
116+
},
117+
},
118+
MuiSwitch: {
119+
styleOverrides: {
120+
switchBase: {
121+
"&.Mui-checked": {
122+
color: "#00B39F",
123+
"& + .MuiSwitch-track": {
124+
backgroundColor: "#00B39F",
125+
},
126+
},
127+
},
128+
},
129+
},
130+
},
131+
});

0 commit comments

Comments
 (0)