Skip to content

Commit

Permalink
Refactor layout styles for better readability and maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKowalczyk committed Sep 28, 2024
1 parent 48bd49b commit 002186e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<main className="mx-auto min-h-screen max-w-2xl">{children}</main>
<div className="noise pointer-events-none absolute inset-0" />
<div className="amazing-rays" />
{/* <div className="amazing-rays pointer-events-none relative -mb-10 -ml-16 -mt-56 flex -rotate-45 justify-center overflow-hidden">
{/* <div className="amazing-rays pointer-events-none relative -mb-10 -ml-16 -mt-56 flex -rotate-12 justify-center overflow-hidden">
<div className="h-56 w-16 bg-red-500"></div>
<div className="h-64 w-16 bg-yellow-500"></div>
<div className="h-72 w-16 bg-cyan-500"></div>
Expand Down
17 changes: 6 additions & 11 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,17 @@ body[data-scroll-locked] {
}

.noise {
@apply bg-repeat opacity-20;
background-image: url(/assets/noise.png);
background-repeat: repeat;
background-size: 182px;
opacity: 0.02;
display: var(--hidden);
}

.amazing-rays {
pointer-events: none;
position: absolute;
inset: 0;
@apply pointer-events-none absolute inset-0 bg-no-repeat opacity-30;
display: var(--hidden);
background-size: 1589px 383px;
background-repeat: no-repeat;
background-position: calc(50% + 90px) top;
opacity: 0.3;
filter: hue-rotate(540deg) saturate(7.3);
animation: rotate-hue 20s ease-out infinite;
background-image: url("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYRSURBVHgBtVbJjiRXFT1viCGHyDmzs7q6qhtojNQthIRBwkJIlkDwBe01v8AXmP4FfoAVG7OCJSt6CRIbgwHJdquH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7cWO5UHxVLdDk51x53ksdjwWtPLznFkebORQ4S0KYgbvAWYJjyPrnPaKx9ccKVJaYgrpKAqnXVCxUgy8jyULpMHwopWJIMIwdR35EIeMs2afKcCu5hwU8y2IUwREFeI68EGvpgjPciw/IvZG5EyPs8VX2BCRrciNRlCJdrN6fznypSoVItxcUeO8qQ4tVGobKtnZOdIOnLaDXVBQ49MwBeSLJ8KW1zJkWuNhoah3lhsSMpjgm5EvwuStLEpnd6MSpplKtY6P5JP8x6e7xJGztJ2GBwLRIe9HaIqsc1vSIMGzPrr9rq2kJIrdUKFZDsn0Z46gxENwnk+JzeZmQxzlxGTsq45L46isyLBTNcixbqH3DcPoxT19hySz8HkCobrz9J+zUI+QaV4rLARHqeEwVPiyIlTNAIXJOtqsCJ5psJk6pg9Nx17UsQiN7XEsaPXZNG425mh2jwhl6WRUezQWJUzZ3/VfAkV/8YJ8sxiTcicU1svYokZ35JRdeINdbpFVuQ9O971cZolYpslidHD48Deul9Nk+9/b4kKvevIXx7AXLWPxB5xcU14gvwdQN8r5xA1oH8MVu/KUuQVmgFBc3uih/E4qLkXMWMHYWvoi9ciXnBTT/8zvpni/kjh4dW3tb0KuYy3LsbOxQf+HqEpKG89XJF6mLQmOxDkE87H3PuIeeOjGlc//BkvfnJ4qP/42587ds20+VqFfD7YQ9ryzbt0Uu+l5C6OPDesbCYsDrfCSBkREaSIfK5FRZvahIq4/qK21+3pynjz7+S1xwpjSTauVoeTx8u2P53TkxmvsKnndh1vMroO/PdKkl7GN0akDGqSkv9L+7fpuO5/LMtk9B26wC9VrV/jpW3fPkzd73/9wO11cf0WotyXee8Z9rw8fwSaTRDb+HSqhQAAAABJRU5ErkJggg==");
Expand All @@ -73,19 +68,19 @@ body[data-scroll-locked] {
position: absolute;
top: 0px;
opacity: 0.2;
filter: hue-rotate(600deg) saturate(8) blur(26px);
filter: hue-rotate(600deg) saturate(8);
animation: rotate-hue 20s ease-out infinite;
scale: 2;
scale: 3;
left: 0;
right: 0;
}
@keyframes rotate-hue {
0% {
filter: hue-rotate(600deg) saturate(8) blur(26px);
filter: hue-rotate(600deg) saturate(8) blur(15px);
}
to {
filter: hue-rotate(180deg) saturate(8) blur(26px);
filter: hue-rotate(180deg) saturate(8) blur(15px);
}
} */

0 comments on commit 002186e

Please sign in to comment.