Add backdrop blur to hero text area
This commit is contained in:
parent
4473d1a331
commit
b04bef50a9
@ -109,7 +109,12 @@ const IndexPage = ({ data: { allFile: { edges } } }) => {
|
|||||||
: <div className="landscape:h-screen portrait:h-two-thirds-vw w-full" style={{gridArea: '1/1' }}></div> }
|
: <div className="landscape:h-screen portrait:h-two-thirds-vw w-full" style={{gridArea: '1/1' }}></div> }
|
||||||
<div className="relative grid place-items-center" style={{gridArea: '1/1'}}>
|
<div className="relative grid place-items-center" style={{gridArea: '1/1'}}>
|
||||||
<div className="m-0 sm:m-3 flex flex-col items-end">
|
<div className="m-0 sm:m-3 flex flex-col items-end">
|
||||||
<section className={classnames('rounded-xl md:px-6 px-4 md:py-5 py-3', isClient && 'border-2 border-vibrant-light bg-vibrant-dark-75')}>
|
<section
|
||||||
|
className={classnames(
|
||||||
|
'rounded-xl md:px-6 px-4 md:py-5 py-3', isClient &&
|
||||||
|
'border-2 border-vibrant-light bg-vibrant-dark bg-opacity-60 backdrop-filter backdrop-blur-lg'
|
||||||
|
)}
|
||||||
|
>
|
||||||
<div className="mx-auto">
|
<div className="mx-auto">
|
||||||
<h1 className={classnames('font-black text-4xl sm:text-5xl md:text-6xl', isClient && 'text-vibrant-light')}>Chuck Dries</h1>
|
<h1 className={classnames('font-black text-4xl sm:text-5xl md:text-6xl', isClient && 'text-vibrant-light')}>Chuck Dries</h1>
|
||||||
<h2 className={classnames('text-xl md:text-2xl', isClient && 'text-vibrant')}>Full stack software engineer & hobbyist photographer</h2>
|
<h2 className={classnames('text-xl md:text-2xl', isClient && 'text-vibrant')}>Full stack software engineer & hobbyist photographer</h2>
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
scroll-padding: theme('spacing.6');
|
scroll-padding: theme('spacing.6');
|
||||||
}
|
}
|
||||||
@variants responsive {
|
@variants responsive {
|
||||||
|
|
||||||
.h-two-thirds-vw {
|
.h-two-thirds-vw {
|
||||||
height: 67vw;
|
height: 67vw;
|
||||||
}
|
}
|
||||||
|
@ -33,20 +33,62 @@ module.exports = {
|
|||||||
extend: {
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
vibrant: {
|
vibrant: {
|
||||||
DEFAULT: 'rgb(var(--vibrant))',
|
DEFAULT: ({ opacityVariable, opacityValue }) => {
|
||||||
light: 'rgb(var(--light-vibrant))',
|
if (opacityValue !== undefined) {
|
||||||
dark: 'rgb(var(--dark-vibrant))',
|
return `rgba(var(--vibrant), ${opacityValue})`;
|
||||||
'75': 'rgba(var(--vibrant), .8)',
|
}
|
||||||
'light-75': 'rgba(var(--light-vibrant), .8)',
|
if (opacityVariable !== undefined) {
|
||||||
'dark-75': 'rgba(var(--dark-vibrant), .8)',
|
return `rgba(var(--vibrant), var(${opacityVariable}, 1))`;
|
||||||
|
}
|
||||||
|
return 'rgb(var(--vibrant))';
|
||||||
|
},
|
||||||
|
light: ({ opacityVariable, opacityValue }) => {
|
||||||
|
if (opacityValue !== undefined) {
|
||||||
|
return `rgba(var(--light-vibrant), ${opacityValue})`;
|
||||||
|
}
|
||||||
|
if (opacityVariable !== undefined) {
|
||||||
|
return `rgba(var(--light-vibrant), var(${opacityVariable}, 1))`;
|
||||||
|
}
|
||||||
|
return 'rgb(var(--light-vibrant))';
|
||||||
|
},
|
||||||
|
dark: ({ opacityVariable, opacityValue }) => {
|
||||||
|
if (opacityValue !== undefined) {
|
||||||
|
return `rgba(var(--dark-vibrant), ${opacityValue})`;
|
||||||
|
}
|
||||||
|
if (opacityVariable !== undefined) {
|
||||||
|
return `rgba(var(--dark-vibrant), var(${opacityVariable}, 1))`;
|
||||||
|
}
|
||||||
|
return 'rgb(var(--dark-vibrant))';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
muted: {
|
muted: {
|
||||||
DEFAULT: 'rgb(var(--muted))',
|
DEFAULT: ({ opacityVariable, opacityValue }) => {
|
||||||
light: 'rgb(var(--light-muted))',
|
if (opacityValue !== undefined) {
|
||||||
dark: 'rgb(var(--dark-muted))',
|
return `rgba(var(--muted), ${opacityValue})`;
|
||||||
'75': 'rgba(var(--muted), .8)',
|
}
|
||||||
'light-75': 'rgba(var(--light-muted), .8)',
|
if (opacityVariable !== undefined) {
|
||||||
'dark-75': 'rgba(var(--dark-muted), .8)',
|
return `rgba(var(--muted), var(${opacityVariable}, 1))`;
|
||||||
|
}
|
||||||
|
return 'rgb(var(--muted))';
|
||||||
|
},
|
||||||
|
light: ({ opacityVariable, opacityValue }) => {
|
||||||
|
if (opacityValue !== undefined) {
|
||||||
|
return `rgba(var(--light-muted), ${opacityValue})`;
|
||||||
|
}
|
||||||
|
if (opacityVariable !== undefined) {
|
||||||
|
return `rgba(var(--light-muted), var(${opacityVariable}, 1))`;
|
||||||
|
}
|
||||||
|
return 'rgb(var(--light-muted))';
|
||||||
|
},
|
||||||
|
dark: ({ opacityVariable, opacityValue }) => {
|
||||||
|
if (opacityValue !== undefined) {
|
||||||
|
return `rgba(var(--dark-muted), ${opacityValue})`;
|
||||||
|
}
|
||||||
|
if (opacityVariable !== undefined) {
|
||||||
|
return `rgba(var(--dark-muted), var(${opacityVariable}, 1))`;
|
||||||
|
}
|
||||||
|
return 'rgb(var(--dark-muted))';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user