mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Re-organise assets to be closer to their respective uses.
This commit is contained in:
8
src/components/navigation/items/placeholder.svg
Normal file
8
src/components/navigation/items/placeholder.svg
Normal 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 |
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user