Skip to content

Commit

Permalink
fix: use inline CSS classes to remove jsx attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
armanmoztar committed Jan 4, 2025
1 parent acaa864 commit 030287a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
36 changes: 36 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,42 @@
color: #61dafb;
}

.background-container {
position: absolute;
inset: 0;
z-index: -1;
}

.background-container::before {
content: "";
position: absolute;
inset: 0;
z-index: -10;
height: 100%;
width: 100%;
background: linear-gradient(
0deg,
rgba(34, 112, 195, 0.47524947478991597) 0%,
rgba(110, 255, 27, 0) 100%
);
}

.background-container::after {
content: "";
position: absolute;
inset: 0;
z-index: -9;
height: 100%;
width: 100%;
background-size: 20px 20px;
mask-image: radial-gradient(
ellipse 80% 50% at 50% 0%,
#000 70%,
transparent 110%
);
}


@keyframes App-logo-spin {
from {
transform: rotate(0deg);
Expand Down
36 changes: 0 additions & 36 deletions src/Portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,42 +357,6 @@ const Portfolio = () => {
<Projects />
</div>

{/* Custom background styles */}
<style jsx>{`
.background-container {
position: absolute;
inset: 0;
z-index: -1;
}
.background-container::before {
content: "";
position: absolute;
inset: 0;
z-index: -10;
height: 100%;
width: 100%;
background: linear-gradient(
0deg,
rgba(34, 112, 195, 0.47524947478991597) 0%,
rgba(110, 255, 27, 0) 100%
);
}
.background-container::after {
content: "";
position: absolute;
inset: 0;
z-index: -9;
height: 100%;
width: 100%;
background-size: 20px 20px;
mask-image: radial-gradient(
ellipse 80% 50% at 50% 0%,
#000 70%,
transparent 110%
);
}
`}</style>

{/* Background container */}
<div className="background-container"></div>
</div>
Expand Down

0 comments on commit 030287a

Please # to comment.