mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-08 04:05:54 -05:00
Add logo with link to front page
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { useLocation } from "@remix-run/react";
|
||||
import { Link, useLocation } from "@remix-run/react";
|
||||
import * as React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import type { RootLoaderData } from "~/root";
|
||||
import { LOGO_PATH } from "~/utils/urls";
|
||||
import { Image } from "../Image";
|
||||
import { ColorModeToggle } from "./ColorModeToggle";
|
||||
import { Footer } from "./Footer";
|
||||
@@ -31,6 +32,14 @@ export const Layout = React.memo(function Layout({
|
||||
return (
|
||||
<div className="layout__container">
|
||||
<header className="layout__header">
|
||||
<Link to="/" className="layout__logo">
|
||||
<Image
|
||||
path={LOGO_PATH}
|
||||
width={28}
|
||||
height={28}
|
||||
alt="sendou.ink logo"
|
||||
/>
|
||||
</Link>
|
||||
<div className="layout__header__right-container">
|
||||
{!isCatchBoundary ? <UserItem /> : null}
|
||||
<LanguageChanger />
|
||||
|
||||
@@ -10,11 +10,22 @@
|
||||
position: relative;
|
||||
z-index: 501;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
justify-content: space-between;
|
||||
padding: var(--s-4);
|
||||
background-color: var(--bg);
|
||||
}
|
||||
|
||||
.layout__logo {
|
||||
display: flex;
|
||||
width: var(--item-size);
|
||||
height: var(--item-size);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--bg-lighter);
|
||||
background-image: url("/svg/background-pattern.svg");
|
||||
border-radius: var(--rounded);
|
||||
}
|
||||
|
||||
.layout__avatar {
|
||||
width: var(--item-size);
|
||||
height: var(--item-size);
|
||||
|
||||
@@ -33,6 +33,7 @@ export const SEED_URL = "/seed";
|
||||
|
||||
export const COMMON_PREVIEW_IMAGE = "/img/layout/common-preview.png";
|
||||
export const ERROR_GIRL_IMAGE_PATH = `/img/layout/error-girl`;
|
||||
export const LOGO_PATH = `/img/layout/logo`;
|
||||
|
||||
export const userPage = (discordId: string) => `/u/${discordId}`;
|
||||
export const userBuildsPage = (discordId: string) =>
|
||||
|
||||
BIN
public/img/layout/logo.avif
Normal file
BIN
public/img/layout/logo.avif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
BIN
public/img/layout/logo.png
Normal file
BIN
public/img/layout/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user