Skip to content

Commit

Permalink
Revert "Use background image for higher quality banner"
Browse files Browse the repository at this point in the history
This reverts commit af65a34.
  • Loading branch information
SheepTester committed Dec 28, 2024
1 parent af65a34 commit a8596bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 8 additions & 1 deletion client/src/components/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,20 @@ const Dashboard = ({ name, faq, status, timeline }: DashboardProps) => {
return (
<div className={styles.container}>
<Card gap={1.5} className={`${styles.card} ${styles.banner}`}>
<div className={styles.bannerImage} />
<Typography variant="headline/heavy/large" component="h1" className={styles.title}>
Welcome, {name}!
</Typography>
<Typography variant="body/medium" component="p" className={styles.subtitle}>
Access the application and view DiamondHacks updates here.
</Typography>
<Image
src={Banner.src}
alt="Two diamond critters find a large jewel in a vault"
width={1128}
height={350}
quality={100}
className={styles.bannerImage}
/>
</Card>
<Card gap={1.5} className={`${styles.card} ${styles.status}`}>
<Typography variant="headline/heavy/small" component="h2">
Expand Down
8 changes: 2 additions & 6 deletions client/src/components/Dashboard/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,9 @@

.bannerImage {
position: absolute;
inset: 0;
top: 0;
right: 0;
z-index: -1;
// next/image ruins the image quality for some reason
background-image: url('/assets/banner.png');
background-size: contain;
background-position: right;
background-repeat: no-repeat;
animation: fade-in 3.5s 1.5s backwards;
}

Expand Down

0 comments on commit a8596bf

Please sign in to comment.