Re-organise assets to be closer to their respective uses.

This commit is contained in:
Paul
2021-06-20 11:05:12 +01:00
parent 06b4e9bc87
commit 2acb3aeb14
28 changed files with 42 additions and 23 deletions

View File

@@ -0,0 +1,8 @@
<svg width="240" height="126" viewBox="0 0 240 126" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="16" y="3" width="32" height="32" rx="16" fill="#333333"/>
<rect x="60" y="8" width="140" height="20" rx="10" fill="#333333"/>
<rect x="16" y="45" width="32" height="32" rx="16" fill="#2A2A2A"/>
<rect x="60" y="50" width="90" height="20" rx="10" fill="#2A2A2A"/>
<rect x="16" y="87" width="32" height="32" rx="16" fill="#202020"/>
<rect x="60" y="92" width="120" height="20" rx="10" fill="#202020"/>
</svg>

After

Width:  |  Height:  |  Size: 515 B

View File

@@ -1,15 +1,17 @@
import LineDivider from "../../ui/LineDivider";
import { mapChannelWithUnread } from "./common";
import styled, { css } from "styled-components";
import ServerIcon from "../../common/ServerIcon";
import { Children } from "../../../types/Preact";
import PaintCounter from "../../../lib/PaintCounter";
import { attachContextMenu } from 'preact-context-menu';
import { connectState } from "../../../redux/connector";
import { Unreads } from "../../../redux/reducers/unreads";
import { Channel, Servers } from "revolt.js/dist/api/objects";
import { Link, useLocation, useParams } from "react-router-dom";
import { useChannels, useForceUpdate, useServers } from "../../../context/revoltjs/hooks";
import { mapChannelWithUnread } from "./common";
import { Unreads } from "../../../redux/reducers/unreads";
import { connectState } from "../../../redux/connector";
import styled, { css } from "styled-components";
import { Children } from "../../../types/Preact";
import LineDivider from "../../ui/LineDivider";
import ServerIcon from "../../common/ServerIcon";
import PaintCounter from "../../../lib/PaintCounter";
import { attachContextMenu } from 'preact-context-menu';
import logoSVG from '../../../assets/logo.svg';
function Icon({ children, unread, size }: { children: Children, unread?: 'mention' | 'unread', size: number }) {
return (
@@ -146,7 +148,7 @@ export function ServerListSidebar({ unreads }: Props) {
<ServerEntry invert
active={typeof server === 'undefined' && !path.startsWith('/invite')}>
<Icon size={36} unread={homeUnread}>
<img src="/assets/app_icon.png" />
<img src={logoSVG} />
</Icon>
</ServerEntry>
</Link>