Skip to content

Commit

Permalink
Added WIP credits text and background to the homepage.
Browse files Browse the repository at this point in the history
  • Loading branch information
originalnicodr committed Dec 16, 2023
1 parent 86f5de2 commit a91c1c7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
19 changes: 18 additions & 1 deletion components/home/year-cover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,36 @@ const yearTextStyle: CSS.Properties = {
//color: '#dbdfd8',
}

const creditsTextStyle: CSS.Properties = {
position: 'absolute',
bottom: '0.5%',
left: '50%',
//fontWeight: 'bold',
fontStyle: 'italic',
fontSize: '10px',
textAlign: 'center',
transform: 'translate(-50%, 0%)',
opacity: '25%',
//mix-blend-mode: 'screen',
//color: '#dbdfd8',
}

export const YearCover = (year: number) => {
const covers = getCovers(year);
var selectedCover = covers[Math.floor(Math.random() * Math.floor(covers.length))];

return (
<a className="year-cover-container" href={year.toString()} style={coverContainerStyle}>
<div className="year-cover-frame" style={coverFrameStyle}></div>
<img src={ covers[Math.floor(Math.random() * Math.floor(covers.length))].shotUrl } style={coverImageStyle}/>
<img src={ selectedCover.shotUrl } style={coverImageStyle}/>
<div className="cover-framed-text" style={framedTextStyle}>
FRAMED
</div>
<div className="cover-year-text" style={yearTextStyle}>
{ year }
</div>
<div className="cover-credits-text" style={creditsTextStyle}>
</div>
</a>
);
};
Expand Down
8 changes: 8 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ export default function App({ Component, pageProps }: AppProps) {
<link rel="apple-touch-icon" href="logo192.png" />
</Head>
<Navigation />
<picture>
<img
loading="lazy"
className="absolute top-0 left-0 w-full h-full object-cover"
src="/images/Topography.svg"
alt=""
/>
</picture>
<Component {...pageProps} />
<Footer />
</>
Expand Down

0 comments on commit a91c1c7

Please sign in to comment.