Skip to content

Commit

Permalink
Decrease index logo fetched image width, increase quality, TODO bg im…
Browse files Browse the repository at this point in the history
…age convert to next/Image
  • Loading branch information
Xevion committed Feb 2, 2023
1 parent b9c3681 commit 8c32d9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const Home: NextPage = () => {
alt="ACM-UTSA Logo"
className="absolute overflow-visible drop-shadow-sm"
src={"/img/logo.png"}
layout="fill"
width={400}
height={400}
quality={90}
objectFit="cover"
priority={true}
/>
Expand Down
1 change: 1 addition & 0 deletions src/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@tailwind utilities;

@layer utilities {
// TODO: Transform the background image into a Next.JS Image component ( https://uharston.medium.com/next-js-image-optimization-on-background-images-65de18ea03f5 )
.bg-acm {
background: linear-gradient(#00000066, #00000066), url('/img/bg.png') fixed center / cover no-repeat;
}
Expand Down

0 comments on commit 8c32d9c

Please sign in to comment.