Skip to content

Commit 1944848

Browse files
committed
Add grass backdrop
1 parent 295c7b4 commit 1944848

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Diff for: src/components/layout/Footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Footer = () => {
66
return (
77
<div className="flex items-center justify-center w-[calc(100%_+_4rem)] pt-16 mt-auto text-cr-primary-contrast">
88
<footer className="flex flex-col w-full gap-4 p-8 max-w-7xl rounded-t-2xl bg-cr-primary image-star">
9-
<div className="flex flex-col items-center gap-2 p-2 rounded-2xl bg-white/20 sm:flex-row backdrop-blur-[1.25px]">
9+
<div className="flex flex-col items-center gap-2 p-2 rounded-2xl bg-cr-primary-contrast/20 border border-cr-primary-contrast/20 backdrop-glass sm:flex-row">
1010
<div className="flex items-center gap-2">
1111
<img
1212
className="w-12 h-12 rotate-30"

Diff for: src/pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const FrontPage: Page = ({ pathname }) => {
7979
</div>
8080
</section>
8181
<section aria-label="introduction" className="flex flex-col gap-12 p-8 text-lg -mx-8 md:mx-0 motion-safe:transition-[margin] text-center rounded-2xl xl:flex-row text-cr-primary-contrast image-star bg-cr-primary">
82-
<Heading.H2 id="introduction" className="flex p-4 flex-col items-center justify-center w-full rounded-2xl text-cr-primary-contrast bg-cr-primary-contrast/30 backdrop-blur-[1.25px] border border-cr-primary-contrast/20 xl:p-0 xl:w-1/2">
82+
<Heading.H2 id="introduction" className="flex p-4 flex-col items-center justify-center w-full rounded-2xl text-cr-primary-contrast bg-cr-primary-contrast/30 backdrop-glass border border-cr-primary-contrast/20 xl:p-0 xl:w-1/2">
8383
<span className="text-2xl">
8484
Introducing...
8585
</span>

Diff for: tailwind.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ module.exports = {
4747
"background-image": "url('/images/textures/star.svg')",
4848
"background-size": "2rem 2rem",
4949
"background-position": "50% 50%"
50+
},
51+
".backdrop-glass": {
52+
"--tw-backdrop-blur": "blur(1.25px);",
53+
"--tw-backdrop-saturate": "saturate(180%)",
54+
"-webkit-backdrop-filter": "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);",
55+
"backdrop-filter": "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);"
5056
}
5157
});
5258
addUtilities({

0 commit comments

Comments
 (0)