Skip to content

Commit eee772a

Browse files
committed
change the background of landing page
1 parent ff3dd40 commit eee772a

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

src/design/Layouts/FullScreen.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const FullScreen = () => {
1717
maxWidth: "100vw",
1818
width: "100%",
1919
overflowX: "hidden",
20-
backgroundColor: Colors.primary.main,
20+
backgroundColor: `${Colors.darkpurple}`,
2121
transition: "background 0.3s ease-in-out",
2222
backdropFilter: "blur(2.5px)",
2323
borderBottom: `2px solid ${Colors.primary.dark}`,
@@ -42,7 +42,7 @@ const FullScreen = () => {
4242
}}
4343
onClick={() => navigate("/")}
4444
>
45-
<Typography variant="h1" sx={{ color: Colors.white }}>
45+
<Typography variant="h1" sx={{ color: Colors.yellow }}>
4646
NeuroJSON.io
4747
</Typography>
4848
<Typography variant="h2">Free Data Worth Sharing</Typography>
@@ -99,6 +99,7 @@ const FullScreen = () => {
9999
lineHeight={"1.5rem"}
100100
letterSpacing={"0.05rem"}
101101
sx={{
102+
color: Colors.white,
102103
transition: "color 0.3s ease, transform 0.3s ease",
103104
"&:hover": {
104105
color: Colors.white,
@@ -121,7 +122,10 @@ const FullScreen = () => {
121122
height: "calc(100vh - 6rem)",
122123
boxSizing: "border-box",
123124
marginTop: "6rem",
124-
backgroundColor: Colors.lightGray,
125+
// backgroundColor: Colors.lightGray,
126+
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3CradialGradient id='a' gradientUnits='objectBoundingBox'%3E%3Cstop offset='0' stop-color='%23000000'/%3E%3Cstop offset='1' stop-color='%235865F2'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='750' x2='1550' y2='750'%3E%3Cstop offset='0' stop-color='%232c3379'/%3E%3Cstop offset='1' stop-color='%235865F2'/%3E%3C/linearGradient%3E%3Cpath id='s' fill='url(%23b)' d='M1549.2 51.6c-5.4 99.1-20.2 197.6-44.2 293.6c-24.1 96-57.4 189.4-99.3 278.6c-41.9 89.2-92.4 174.1-150.3 253.3c-58 79.2-123.4 152.6-195.1 219c-71.7 66.4-149.6 125.8-232.2 177.2c-82.7 51.4-170.1 94.7-260.7 129.1c-90.6 34.4-184.4 60-279.5 76.3C192.6 1495 96.1 1502 0 1500c96.1-2.1 191.8-13.3 285.4-33.6c93.6-20.2 185-49.5 272.5-87.2c87.6-37.7 171.3-83.8 249.6-137.3c78.4-53.5 151.5-114.5 217.9-181.7c66.5-67.2 126.4-140.7 178.6-218.9c52.3-78.3 96.9-161.4 133-247.9c36.1-86.5 63.8-176.2 82.6-267.6c18.8-91.4 28.6-184.4 29.6-277.4c0.3-27.6 23.2-48.7 50.8-48.4s49.5 21.8 49.2 49.5c0 0.7 0 1.3-0.1 2L1549.2 51.6z'/%3E%3Cg id='g'%3E%3Cuse href='%23s' transform='scale(0.12) rotate(60)'/%3E%3Cuse href='%23s' transform='scale(0.2) rotate(10)'/%3E%3Cuse href='%23s' transform='scale(0.25) rotate(40)'/%3E%3Cuse href='%23s' transform='scale(0.3) rotate(-20)'/%3E%3Cuse href='%23s' transform='scale(0.4) rotate(-30)'/%3E%3Cuse href='%23s' transform='scale(0.5) rotate(20)'/%3E%3Cuse href='%23s' transform='scale(0.6) rotate(60)'/%3E%3Cuse href='%23s' transform='scale(0.7) rotate(10)'/%3E%3Cuse href='%23s' transform='scale(0.835) rotate(-40)'/%3E%3Cuse href='%23s' transform='scale(0.9) rotate(40)'/%3E%3Cuse href='%23s' transform='scale(1.05) rotate(25)'/%3E%3Cuse href='%23s' transform='scale(1.2) rotate(8)'/%3E%3Cuse href='%23s' transform='scale(1.333) rotate(-60)'/%3E%3Cuse href='%23s' transform='scale(1.45) rotate(-30)'/%3E%3Cuse href='%23s' transform='scale(1.6) rotate(10)'/%3E%3C/g%3E%3C/defs%3E%3Cg transform='translate(400 0)'%3E%3Cg transform='translate(0 375)'%3E%3Ccircle fill='url(%23a)' r='3000'/%3E%3Cg opacity='0.5'%3E%3Ccircle fill='url(%23a)' r='2000'/%3E%3Ccircle fill='url(%23a)' r='1800'/%3E%3Ccircle fill='url(%23a)' r='1700'/%3E%3Ccircle fill='url(%23a)' r='1651'/%3E%3Ccircle fill='url(%23a)' r='1450'/%3E%3Ccircle fill='url(%23a)' r='1250'/%3E%3Ccircle fill='url(%23a)' r='1175'/%3E%3Ccircle fill='url(%23a)' r='900'/%3E%3Ccircle fill='url(%23a)' r='750'/%3E%3Ccircle fill='url(%23a)' r='500'/%3E%3Ccircle fill='url(%23a)' r='380'/%3E%3Ccircle fill='url(%23a)' r='250'/%3E%3C/g%3E%3Cg transform='rotate(-273.6 0 0)'%3E%3Cuse href='%23g' transform='rotate(10)'/%3E%3Cuse href='%23g' transform='rotate(120)'/%3E%3Cuse href='%23g' transform='rotate(240)'/%3E%3C/g%3E%3Ccircle fill-opacity='0.99' fill='url(%23a)' r='3000'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,
127+
backgroundAttachment: "fixed",
128+
backgroundSize: "cover",
125129
overflow: "auto",
126130
}}
127131
>

src/design/theme.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { purple } from "@mui/material/colors";
12
import { createTheme } from "@mui/material/styles";
23

34
const primary = {
@@ -22,6 +23,10 @@ export const Colors = {
2223
error: "#D9534F",
2324
textPrimary: "#212121",
2425
textSecondary: "#494747",
26+
green: "#02DEC4",
27+
yellow: "#FFDD31",
28+
purple: "#5865F2",
29+
darkpurple: "#282C56",
2530
primary,
2631
secondary,
2732
};

src/pages/Home.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const Home: React.FC = () => {
7777
position: "absolute",
7878
top: "6%",
7979
left: "5%",
80-
backgroundColor: "rgba(255, 255, 255, 0.8)",
80+
backgroundColor: "none",
8181
padding: "1.5rem",
8282
borderRadius: "8px",
8383
boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)",
@@ -87,11 +87,11 @@ const Home: React.FC = () => {
8787
<Typography
8888
variant="h3"
8989
gutterBottom
90-
sx={{ color: Colors.primary.dark }}
90+
sx={{ color: Colors.white }}
9191
>
9292
Discover NeuroJSON IO
9393
</Typography>
94-
<Typography variant="body1" sx={{ color: Colors.textSecondary }}>
94+
<Typography variant="body1" sx={{ color: Colors.white }}>
9595
Efficiently manage and explore your CouchDB databases and datasets
9696
with ease.
9797
</Typography>
@@ -101,7 +101,7 @@ const Home: React.FC = () => {
101101
<Button
102102
variant="contained"
103103
sx={{
104-
backgroundColor: Colors.primary.main,
104+
backgroundColor: Colors.green,
105105
color: Colors.white,
106106
"&:hover": {
107107
backgroundColor: Colors.primary.dark,

0 commit comments

Comments
 (0)