add back photo buttons
This commit is contained in:
parent
0ddc194481
commit
144c80f238
@ -48,7 +48,6 @@ function processColors(vibrantData, imagePath) {
|
|||||||
badContrast(DarkVibrant, Vibrant) ||
|
badContrast(DarkVibrant, Vibrant) ||
|
||||||
badContrast(DarkVibrant, LightMuted)
|
badContrast(DarkVibrant, LightMuted)
|
||||||
) {
|
) {
|
||||||
// DarkVibrant = DarkVibrant.darken();
|
|
||||||
if (badContrast(DarkVibrant, Vibrant)) {
|
if (badContrast(DarkVibrant, Vibrant)) {
|
||||||
Vibrant = Vibrant.brighten(2);
|
Vibrant = Vibrant.brighten(2);
|
||||||
}
|
}
|
||||||
|
@ -26,50 +26,47 @@ const getDifferentRand = (range, lastNs, iterations = 0) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ImageButtons = ({ isClient, image, shuffleImage }) => (
|
const ImageButtons = ({ isClient, image, shuffleImage }) => (
|
||||||
<div className="flex mx-6 justify-end">
|
<div className="flex mx-6 mb-4">
|
||||||
<div className="flex my-2 items-center flex-col">
|
|
||||||
<Link
|
|
||||||
className={classnames(
|
|
||||||
"z-20 hover:underline inline-block px-1 my-1 mr-2 text-md rounded-md border-2",
|
|
||||||
isClient &&
|
|
||||||
"text-muted-dark bg-muted-light hover:bg-muted border-muted-dark"
|
|
||||||
)}
|
|
||||||
id="image-link"
|
|
||||||
title="view image details"
|
|
||||||
to={`/photogallery/${image.base}/`}
|
|
||||||
>
|
|
||||||
<span className="icon-offset">
|
|
||||||
<ion-icon name="image"></ion-icon>
|
|
||||||
</span>
|
|
||||||
</Link>
|
|
||||||
<button
|
|
||||||
className={classnames(
|
|
||||||
"z-20 hover:underline inline-block px-1 my-1 mr-2 text-md rounded-md border-2",
|
|
||||||
isClient &&
|
|
||||||
"text-muted-dark bg-muted-light hover:bg-muted border-muted-dark"
|
|
||||||
)}
|
|
||||||
id="shuffle-button"
|
|
||||||
onClick={() => {
|
|
||||||
shuffleImage(image);
|
|
||||||
}}
|
|
||||||
title="shuffle image"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span className="icon-offset">
|
|
||||||
<ion-icon name="shuffle"></ion-icon>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<Link
|
<Link
|
||||||
className={classnames(
|
className={classnames(
|
||||||
"z-20 hover:underline p-3 px-5 py-4 my-3 text-md sm:text-lg rounded-md border-2 arrow-right-after font-bold font-serif",
|
"z-20 rounded-md text-md inline-block px-3 py-2 my-1 mr-2 text-md",
|
||||||
isClient &&
|
isClient &&
|
||||||
"text-muted-dark bg-muted-light border-muted-dark hover:bg-muted"
|
"text-muted-light bg-muted-dark hover:bg-muted blurred-or-opaque-bg-2"
|
||||||
|
)}
|
||||||
|
id="image-link"
|
||||||
|
title="view image details"
|
||||||
|
to={`/photogallery/${image.base}/`}
|
||||||
|
>
|
||||||
|
<span className="icon-offset">
|
||||||
|
<ion-icon name="image"></ion-icon>
|
||||||
|
</span>
|
||||||
|
</Link>
|
||||||
|
<button
|
||||||
|
className={classnames(
|
||||||
|
"z-20 rounded-md text-md inline-block px-3 py-2 my-1 mr-2 text-md",
|
||||||
|
isClient &&
|
||||||
|
"text-muted-light bg-muted-dark hover:bg-muted blurred-or-opaque-bg-2"
|
||||||
|
)}
|
||||||
|
id="shuffle-button"
|
||||||
|
onClick={() => {
|
||||||
|
shuffleImage(image);
|
||||||
|
}}
|
||||||
|
title="shuffle image"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<span className="icon-offset">
|
||||||
|
<ion-icon name="shuffle"></ion-icon>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<Link
|
||||||
|
className={classnames(
|
||||||
|
"self-center z-20 underline rounded-md px-4 py-2 text-md arrow-right-after font-bold font-serif",
|
||||||
|
isClient && "text-muted-light bg-muted-dark hover:bg-muted blurred-or-opaque-bg-2"
|
||||||
)}
|
)}
|
||||||
id="photogallery-link"
|
id="photogallery-link"
|
||||||
to="/photogallery/"
|
to="/photogallery/"
|
||||||
>
|
>
|
||||||
Gallery
|
Photography Gallery
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -152,6 +149,7 @@ const IndexPage = ({
|
|||||||
|
|
||||||
const vibrant = getVibrant(image);
|
const vibrant = getVibrant(image);
|
||||||
const ar = getAspectRatio(image);
|
const ar = getAspectRatio(image);
|
||||||
|
console.log("ar", ar);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
@ -191,10 +189,9 @@ const IndexPage = ({
|
|||||||
style={{ gridArea: "1/1" }}
|
style={{ gridArea: "1/1" }}
|
||||||
></div>
|
></div>
|
||||||
)}
|
)}
|
||||||
{/* <div className={classnames('relative grid', ar <= 1 ? 'place-items-end landscape:place-items-center' : 'place-items-end')} style={{gridArea: '1/1'}}> */}
|
|
||||||
<div
|
<div
|
||||||
className={classnames(
|
className={classnames(
|
||||||
"flex flex-col items-center justify-between",
|
"flex flex-auto flex-col items-center justify-between",
|
||||||
ar > 1 || !isClient
|
ar > 1 || !isClient
|
||||||
? "portrait:items-center"
|
? "portrait:items-center"
|
||||||
: "landscape:justify-center"
|
: "landscape:justify-center"
|
||||||
@ -208,7 +205,7 @@ const IndexPage = ({
|
|||||||
)}
|
)}
|
||||||
style={{ zIndex: 100 }}
|
style={{ zIndex: 100 }}
|
||||||
>
|
>
|
||||||
<ul className="flex justify-between">
|
<ul className="flex flex-wrap justify-between">
|
||||||
<li>
|
<li>
|
||||||
<HeroA
|
<HeroA
|
||||||
href="/CharlesDriesResumeCurrent.pdf"
|
href="/CharlesDriesResumeCurrent.pdf"
|
||||||
@ -253,17 +250,17 @@ const IndexPage = ({
|
|||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
<h1
|
<h1
|
||||||
className={classnames(
|
className={classnames(
|
||||||
"font-black filter drop-shadow-dark z-20",
|
"text-huge-1 md:text-huge-2 text-center font-black filter drop-shadow-dark z-20",
|
||||||
isClient && "mb-5 mt-0 text-vibrant-light"
|
isClient && "mb-5 mt-0 text-vibrant-light"
|
||||||
)}
|
)}
|
||||||
style={{ fontSize: "max(8vw, 100px)", lineHeight: "80%" }}
|
style={{ lineHeight: "85%" }}
|
||||||
>
|
>
|
||||||
Chuck Dries
|
Chuck Dries
|
||||||
</h1>
|
</h1>
|
||||||
<div
|
<div
|
||||||
className={classnames(
|
className={classnames(
|
||||||
ar > 1 && "landscape:shadow-lg",
|
ar > 1 && "landscape:shadow-lg",
|
||||||
"mb-4 inline-block",
|
"z-20 mb-4 inline-block",
|
||||||
isClient && "bg-vibrant-dark blurred-or-opaque-bg-1"
|
isClient && "bg-vibrant-dark blurred-or-opaque-bg-1"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
@ -280,7 +277,11 @@ const IndexPage = ({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div></div>
|
<ImageButtons
|
||||||
|
image={image}
|
||||||
|
isClient={isClient}
|
||||||
|
shuffleImage={shuffleImage}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</>
|
</>
|
||||||
|
@ -33,10 +33,10 @@
|
|||||||
scroll-padding: theme("spacing.6");
|
scroll-padding: theme("spacing.6");
|
||||||
}
|
}
|
||||||
.blurred-or-opaque-bg-1 {
|
.blurred-or-opaque-bg-1 {
|
||||||
@apply bg-opacity-80;
|
@apply bg-opacity-70;
|
||||||
}
|
}
|
||||||
.blurred-or-opaque-bg-2 {
|
.blurred-or-opaque-bg-2 {
|
||||||
@apply bg-opacity-100;
|
@apply bg-opacity-90;
|
||||||
}
|
}
|
||||||
@supports (backdrop-filter: blur(24px)) {
|
@supports (backdrop-filter: blur(24px)) {
|
||||||
.blurred-or-opaque-bg-1 {
|
.blurred-or-opaque-bg-1 {
|
||||||
|
@ -32,7 +32,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
extend: {
|
extend: {
|
||||||
dropShadow: {
|
dropShadow: {
|
||||||
'dark': '0 1px 2px rgba(0, 0, 0, 0.5)',
|
'dark': '0 1px 2px rgba(0, 0, 0, 0.8)',
|
||||||
|
},
|
||||||
|
fontSize: {
|
||||||
|
'huge-1': '80px',
|
||||||
|
'huge-2': 'max(7.8vw, 100px)'
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
vibrant: {
|
vibrant: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user