-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
styles: mega visual polish-apalooza (#731)
Co-authored-by: Mic Neale <[email protected]>
- Loading branch information
1 parent
8855920
commit 23cf9f4
Showing
39 changed files
with
1,181 additions
and
851 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,24 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Goose</title> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link href="/src/styles/main.css" rel="stylesheet" /> | ||
</head> | ||
<script> | ||
// On page load or when changing themes, best to add inline in `head` to avoid FOUC | ||
const useSystemTheme = localStorage.getItem("use_system_theme") === "true"; | ||
const savedTheme = localStorage.getItem("theme"); | ||
const useSystemTheme = localStorage.getItem('use_system_theme') === 'true'; | ||
const savedTheme = localStorage.getItem('theme'); | ||
|
||
document.documentElement.classList.toggle( | ||
"dark", | ||
'dark', | ||
useSystemTheme | ||
? window.matchMedia("(prefers-color-scheme: dark)").matches | ||
: savedTheme === "dark" | ||
? window.matchMedia('(prefers-color-scheme: dark)').matches | ||
: savedTheme === 'dark' | ||
); | ||
</script> | ||
<body> | ||
<div id="root" class="inter-app-type"></div> | ||
<div id="root"></div> | ||
<script type="module" src="/src/renderer.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { Goose, Rain } from './icons/Goose'; | ||
|
||
export default function GooseLogo({ className = '', size = 'default', hover = true }) { | ||
const sizes = { | ||
default: { | ||
frame: 'w-16 h-16', | ||
rain: 'w-[275px] h-[275px]', | ||
goose: 'w-16 h-16', | ||
}, | ||
small: { | ||
frame: 'w-8 h-8', | ||
rain: 'w-[150px] h-[150px]', | ||
goose: 'w-8 h-8', | ||
}, | ||
}; | ||
return ( | ||
<div | ||
className={`${className} ${sizes[size].frame} ${hover ? 'group/with-hover' : ''} relative overflow-hidden`} | ||
> | ||
<Rain | ||
className={`${sizes[size].rain} absolute left-0 bottom-0 ${hover ? 'opacity-0 opacity-0 group-hover/with-hover:opacity-100' : ''} transition-all duration-300 z-1`} | ||
/> | ||
<Goose className={`${sizes[size].goose} absolute left-0 bottom-0 z-2`} /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.