Skip to content

Commit

Permalink
Add tiling anteater head background art (#25)
Browse files Browse the repository at this point in the history
- Make diagonally tiling base asset to use native CSS background repeat
- Embed white background to minimize opaque file size (no transparency)
  - The resulting GIF uses 8 colors with dithering

Co-authored-by: Taesung Hwang <Taesung@CM17.local>
  • Loading branch information
taesungh and Taesung Hwang committed Sep 14, 2023
1 parent 7babafb commit 167d446
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/site/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import FontProvider from "@/lib/FontProvider";
import NavBar from "@/components/NavBar/NavBar";
import Footer from "@/components/Footer/Footer";
import "@/lib/styles/bootstrap.scss";
import "@/lib/styles/globals.scss";

export const metadata: Metadata = {
title: "Create Next App",
Expand All @@ -19,7 +20,7 @@ export default function RootLayout({
return (
<html lang="en">
<FontProvider />
<body>
<body className="background">
<NavBar />
{children}
<Footer />
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions apps/site/src/lib/styles/globals.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.background {
background-image: url("~@/assets/background/anteater-head-tiling.gif");
background-size: 464px; // half size for 2x scaling
}

0 comments on commit 167d446

Please sign in to comment.