Skip to content

Commit

Permalink
Update layout
Browse files Browse the repository at this point in the history
  • Loading branch information
NayamAmarshe committed Feb 7, 2024
1 parent f43d8b3 commit 57a97e8
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 56 deletions.
56 changes: 1 addition & 55 deletions components/Background.jsx
Original file line number Diff line number Diff line change
@@ -1,61 +1,7 @@
import React from "react";

const Background = ({ ...rest }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
viewBox="0 0 800 450"
{...rest}
>
<defs>
<filter
id="bbblurry-filter"
x="-100%"
y="-100%"
width="400%"
height="400%"
filterUnits="objectBoundingBox"
primitiveUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feGaussianBlur
stdDeviation="130"
x="0%"
y="0%"
width="100%"
height="100%"
in="SourceGraphic"
edgeMode="none"
result="blur"
></feGaussianBlur>
</filter>
</defs>
<g filter="url(#bbblurry-filter)">
<ellipse
rx="219.5"
ry="215"
cx="614.6378451260654"
cy="228.07355707341975"
fill="hsl(37, 99%, 67%)"
></ellipse>
<ellipse
rx="219.5"
ry="215"
cx="183.14674932306463"
cy="352.1817377263849"
fill="hsl(316, 73%, 52%)"
></ellipse>
<ellipse
rx="219.5"
ry="215"
cx="196.29381491921163"
cy="48.65340354225853"
fill="hsl(185, 100%, 57%)"
></ellipse>
</g>
</svg>
);
return <img src="/background.svg" alt="Background" {...rest} />;
};

export default Background;
2 changes: 1 addition & 1 deletion components/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Layout = ({ children }) => {
<Navbar />
{/* LINKS CARDS */}
<ScrollingCards />
<Background className="pointer-events-none fixed z-50 h-full w-full opacity-20 mix-blend-hard-light" />
<Background className="pointer-events-none fixed z-50 h-full w-full object-cover opacity-20 mix-blend-hard-light" />
<main className="">{children}</main>
<script
defer
Expand Down
52 changes: 52 additions & 0 deletions public/background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 57a97e8

Please sign in to comment.