Skip to content

Commit 459e4ad

Browse files
committed
Reverted changes
1 parent 8af3a67 commit 459e4ad

File tree

4 files changed

+40
-62
lines changed

4 files changed

+40
-62
lines changed

src/components/Features/Features.jsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ export function IconContainer(props) {
1111
//background: "linear-gradient(45deg, rgba(58,12,163,1) 0%, rgba(63,253,106,1) 100%)",
1212
backgroundPosition: "center",
1313
backgroundSize: "contain",
14-
//backgroundColor: "#10061E",
15-
//#46B875
16-
//#53258B
17-
//#10061E
1814
width: "80%",
1915
aspectRatio: "1 / 1",
2016
}}

src/components/Gallery/Gallery.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ export function Gallery() {
1414
const secondImages = images[galleryTab].items.slice(oneThird, oneThird * 2)
1515
const thirdImages = images[galleryTab].items.slice(oneThird * 2, images[galleryTab].items.length)
1616

17-
console.log(oneThird, firstImages, secondImages, thirdImages)
18-
19-
2017
const baseSeconds = 10
2118

2219
function renderImages(imageList, offset) {
Lines changed: 36 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,42 @@
1-
import { Box } from "@mui/material";
2-
import "./gradient.css";
1+
import {Box} from "@mui/material";
2+
import "./gradient.css"
3+
4+
import {Gradient} from './Gradient.js'
5+
import {useEffect} from "react";
36

4-
import { Gradient } from "./Gradient.js";
5-
import { useEffect } from "react";
67

78
export function MeshContainer(props) {
8-
useEffect(() => {
9-
// Create your instance
10-
const gradient = new Gradient();
11-
12-
// Call `initGradient` with the selector to your canvas
13-
// @ts-ignore
14-
gradient.initGradient("#gradient-canvas");
15-
}, []);
16-
17-
return (
18-
<Box
19-
sx={{
20-
position: "relative",
21-
width: "100%",
22-
height: "100%",
23-
backgroundPosition: "center",
24-
backgroundSize: "cover",
25-
}}
26-
>
27-
<Box
28-
sx={{
29-
width: "100%",
30-
height: "100%",
31-
position: "relative",
32-
zIndex: 2,
33-
}}
34-
>
35-
{props.children}
36-
</Box>
37-
<Box sx={{ background: "rgba(0,0,0,0.2)", boxShadow: "box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1)", filter: "blur(5px)" }}>
38-
<Box
39-
sx={{
40-
position: "absolute",
41-
zIndex: -100,
42-
height: "100%",
9+
10+
useEffect(() => {
11+
// Create your instance
12+
const gradient = new Gradient()
13+
14+
// Call `initGradient` with the selector to your canvas
15+
// @ts-ignore
16+
gradient.initGradient('#gradient-canvas')
17+
18+
}, [])
19+
20+
21+
return (
22+
<Box sx={{
23+
position: "relative",
4324
width: "100%",
44-
top: 0,
45-
left: 0,
46-
}}
47-
>
48-
<canvas
49-
id="gradient-canvas"
50-
data-transition-in
51-
style={{ height: "100%" }}
52-
/>
25+
height: "100%",
26+
backgroundPosition: "center",
27+
backgroundSize: "cover",
28+
}}>
29+
<Box sx={{
30+
width: "100%",
31+
height: "100%",
32+
position: "relative",
33+
zIndex: 2,
34+
}}>
35+
{props.children}
36+
</Box>
37+
<Box sx={{position: "absolute", zIndex:-100, height: "100%", width: "100%", top: 0, left: 0}}>
38+
<canvas id="gradient-canvas" data-transition-in style={{height: "100%"}} />
39+
</Box>
5340
</Box>
54-
</Box>
55-
</Box>
56-
);
41+
)
5742
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#gradient-canvas {
22
width:100%;
33
height:100%;
4-
--gradient-color-1: #110320;
5-
--gradient-color-2: #0B9D6A;
6-
--gradient-color-3: #3F58FC;
7-
--gradient-color-4: #3FFD6A;
4+
--gradient-color-1: #13101b;
5+
--gradient-color-2: #4cc9f0;
6+
--gradient-color-3: #3a0ca3;
7+
--gradient-color-4: #3DA4AB;
88
}

0 commit comments

Comments
 (0)