mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-27 07:52:11 -05:00
Merge pull request #104 from ryanalexander/patch-5
This commit is contained in:
commit
fe24b28bee
3 changed files with 38 additions and 0 deletions
11
public/assets/badges/revolt_r.svg
Normal file
11
public/assets/badges/revolt_r.svg
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 600 600" style="enable-background:new 0 0 600 600;" xml:space="preserve">
|
||||||
|
<style type="text/css">
|
||||||
|
.st0{fill:#EEAB45;stroke:#EEAB45;stroke-width:0.9773;}
|
||||||
|
</style>
|
||||||
|
<path class="st0" d="M419.87,194.82c0,38.27-20.82,61.25-65.27,61.25h-73.58V134.96h73.6C399.05,134.96,419.87,158.62,419.87,194.82
|
||||||
|
z M93.67,35.87l70.64,98.22v386.23h116.71V337.55h28.21L409.7,520.31h133.97L432.13,328.46c31.14-7.6,58.76-25.62,78.28-51.1
|
||||||
|
c19.53-25.47,29.79-56.87,29.09-88.98c0-84.2-59.2-152.51-177.62-152.51H164.31H93.67z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 795 B |
1
public/assets/badges/verified.svg
Normal file
1
public/assets/badges/verified.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1813.46 1814.1"><path d="M921.08.24H999.8L1006,2.16c6.23,1.17,13.75-1.26,19.44.48a5.52,5.52,0,0,0,2.16,3.12c3.16,1.43,7.67.35,11.52,1.44,2.09.59,3.31,2.7,5,3.36l7,1c2.8.67,4.61,2.41,6.72,3.36l7.2,1.2c12.55,5,24.78,11.55,37.2,16.8,1.89.8,3,3.13,4.56,3.84l4.08.24,3.84,4.08L1120,43.2c2.74,1.66,5,4.77,7.68,6.24l5,1.68c8.83,6.07,16.73,13.82,25,20.4,8.67,6.93,17.76,14.41,24.72,23l5.76,6,.24,7.68,2.64-2.64,1.2-1,7.68,7.44,48,49.2c5.63,5.63,9.25,12.8,19,14.4h41.28c10.65,0,23.19.31,32.64-1.2l35.52.24c9.24-1.38,25.9-2,35-.24l12,2.88,16.32.48,8.64,3.6,11.28.24,5.76,3.6,11,.48,3.6,3.12c7.54,3.39,18,3.14,22.32,9.6a54.24,54.24,0,0,1,8.4.24l1.68,6.24v-.48l.72-2.16,6.72,1,1.68,3.12,6.24.72,1,2.88,7,1.44a6.7,6.7,0,0,0,1.44,3.84,11.63,11.63,0,0,1,5.28.72c1.6,3.8,3.39,2.21,7,4.08,2.53,1.33,6.21,6.69,8.64,7.92l3.6.48,2.64,3.12c3,2.27,5.63,4.58,8.64,6.72v16.56l9.36-9.84,4.08,4.08c4.5,2.2,8.94,8.09,12.24,11.76,5.58,6.21,12.5,11.46,17.76,18l9.6,13.44c8.15,10.51,16.51,21.35,23.52,33.12l1.92,5.76c3.68,5.82,7.9,12.21,10.8,19l1.44,5.28,3.12,3.6.72,5,3.36,5.28c2.6,6.5,3.2,11.73,5.52,18.48l2.88,5.52,1,8.16,3.12,8.64,1.2,10.8c.76,2.59,2.3,5,2.88,8.16l.48,11.76,3.36,23.52v32.16c0,13.43,1.62,29.68-.48,42.24v30c-1.15,7.43-1.24,28.83.48,35.28,1.51,5.68,20.48,21.44,25.44,26.4L1786,699.12c11.59,14.43,24.59,28.4,34.56,44.4,15.84,25.41,27.31,54.64,37.2,85.92l1,9.6,3.84,10.32.48,13.2,3.36,15.36.24,21.12-.24,38.88-3.12,14.16-1.2,14.64c-10.22,47.84-30.48,87.55-54.72,121.44-5.68,7.94-11.74,15.07-17.76,22.56l-10.56,10.8-7.2,7.92-7.68,4.56-16.8,17c-2.39,2.39-6.08,4.6-8.16,7.2l-3.84,6.72-20.88,20.88-18,17.76c-3.08,2.3-5.81,4.45-7.44,8.16-1.8,4.09-1.2,11.21-1.2,17l-.24,26.16.24,49.2,3.12,6.72-.24,41.28c-7.07,5.4-1.08,14.6-2.88,25.2a265.49,265.49,0,0,1-7.44,32.88l-2.16,11c-8,20.27-14.89,40.47-24.72,58.8-12.75,23.77-30.76,43.38-47,63.6-8.91,11.07-21.32,20.11-32.64,28.8-33.16,25.46-71.21,45.91-118.08,57.84l-9.36,1-11,3.12c-11.56,2.36-24.16,1.72-35.52,3.6l-135.84.48c-8,2-17.66,15-23.28,20.64l-53.28,54c-33.3,35.63-74.19,65.09-124.56,83.52l-6.24,1.2c-6,2.07-13.87,5.06-20.16,7l-8.64,1.2-10.32,3.36-15.84,1-6.72,2.16c-8.44,1.87-30.53,2.58-40.32,1l-22.32.24c-5.44-.89-10.21-1.79-14.64-2.88-5.62-1.38-12.46-.12-17.52-1.44-43.65-11.4-82-25.84-114.24-48.48-13.42-9.43-24.89-20.61-37.44-30.72l-65.52-66-12.48-12.48c-3.32-4.12-8.24-10.48-13.44-12.48-7.2-2.77-28.85-1-38.64-1H514.28l-12.48-2.16c-1.4-.21-2.79,1.05-3.12,1l-6.72-1.92-7.92-.24-10.32-3.12-10.8-1.2c-32.62-8.51-66.3-22-91.44-38.4-9.39-6.13-18.22-13.61-27.12-20.16-11-8.11-23.15-17.25-31.68-27.84-17.47-21.68-34.42-40.92-47.76-67.2-3-5.82-6.17-12-9.36-18.24l-3.12-4.56-.24-4.32-3.36-5.52c-1.75-4.37-3.31-8.5-4.56-12.48-4.71-15-8.92-31.62-12.24-47.76-1.1-5.35-2.41-13-1.2-19.44.4-2.13,2-6.72.72-9.36l-3.12-2.88v-6.24c-1.3-8-1.64-20.48,0-28.32l.48-75.84c0-10.11,1.78-24.72-1.44-32.4-1.44-3.43-5.18-5.9-7.68-8.4L202,1183.68l-51.6-50.88c-6.65-5.35-12.9-12.75-18.24-19.44-7.9-9.9-17-19-24.48-29.52C84.53,1051.17,67.63,1011.91,56.84,967l-.72-13.68-2.88-11.52v-25.2c0-19.55-.36-39.72,2.4-55.68l.72-13c17.69-69.5,44.37-116.85,87.84-160.32L204,628.8l17.76-17.52,5.52-5.76c2.58-6.63,1.2-29,1.2-38.88,0-11.42-2.88-25.12-1-37l.24-29.76-.24-37.68,2.88-18.48.72-14.4,3.6-11.52.72-9.12c12.23-40.89,27.69-76.22,49.44-107.28,6.68-9.54,15.3-18.34,22.56-27.36a165.5,165.5,0,0,1,24-24c2.84-2.3,5.31-7,8.88-8.4l2.64.24,2.64-3.12,12-10.32,2.88.24,9.36-8.4,2.64.24,5.28-4.8c1.43-.62,3.22-.2,4.32-.72l2.16-3.6c5.28,0,4.6-1.83,7.2-3.6,4.19-2.85,5.28.63,7.92-5,5.87-.59,7.08-.23,9.6-4.32,2.73.07,6.45.2,8.4-.72l1.44-3.84h7.68l3.12-3.36,8.4-.48,4.08-3.84,12-.72,4.8-4.08h13.44l5-3.6H494.6l15.6-3.36,36.24-.24,71.52,1c9,0,31.14,2.41,37.92-.24,5-2,8.44-7,12-10.56l21.6-22.08,33.12-33.6c9.59-12,23-24.51,35-34.08L769.4,63.36c7.37-5.24,14.67-9.63,22.08-14.88,1.83-1.3,3.78-2.46,5.76-3.84l2.64-3.12h3.84L807.8,37h3.6l5.52-4.56h3.6l4.32-3.6,4.32-.48,4.32-4.08,5-.24,4.56-4.32,6.72-.24,4.32-3.36,7.68-1.44L864.44,12,875,10.8l3.12-3.6L889.64,7l3.6-4.08c4.54-2.38,15,1.13,20.64-.24A58.28,58.28,0,0,0,921.08.24Z" transform="translate(-53.22 -0.24)" style="fill:#fff;fill-rule:evenodd"/></svg>
|
After Width: | Height: | Size: 4.1 KiB |
|
@ -5,9 +5,13 @@ import { ServerPermission } from "revolt.js/dist/api/permissions";
|
||||||
import { Server } from "revolt.js/dist/maps/Servers";
|
import { Server } from "revolt.js/dist/maps/Servers";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
|
import { Text } from "preact-i18n";
|
||||||
|
|
||||||
import Header from "../ui/Header";
|
import Header from "../ui/Header";
|
||||||
import IconButton from "../ui/IconButton";
|
import IconButton from "../ui/IconButton";
|
||||||
|
|
||||||
|
import Tooltip from "./Tooltip";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
server: Server;
|
server: Server;
|
||||||
}
|
}
|
||||||
|
@ -27,6 +31,28 @@ export default observer(({ server }: Props) => {
|
||||||
style={{
|
style={{
|
||||||
background: bannerURL ? `url('${bannerURL}')` : undefined,
|
background: bannerURL ? `url('${bannerURL}')` : undefined,
|
||||||
}}>
|
}}>
|
||||||
|
{server.owner === "01EX2NCWQ0CHS3QJF0FEQS1GR4" ? (
|
||||||
|
<Tooltip content={"Official Server"} placement={"bottom-start"}>
|
||||||
|
<svg width="20" height="20">
|
||||||
|
<image
|
||||||
|
xlinkHref="/assets/badges/verified.svg"
|
||||||
|
height="20"
|
||||||
|
width="20"
|
||||||
|
/>
|
||||||
|
<image
|
||||||
|
xlinkHref="/assets/badges/revolt_r.svg"
|
||||||
|
height="15"
|
||||||
|
width="15"
|
||||||
|
x="2"
|
||||||
|
y="3"
|
||||||
|
style={
|
||||||
|
"justify-content: center; align-items: center; filter: brightness(0);"
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</Tooltip>
|
||||||
|
) : undefined}
|
||||||
|
|
||||||
<ServerName>{server.name}</ServerName>
|
<ServerName>{server.name}</ServerName>
|
||||||
{(server.permission & ServerPermission.ManageServer) > 0 && (
|
{(server.permission & ServerPermission.ManageServer) > 0 && (
|
||||||
<div className="actions">
|
<div className="actions">
|
||||||
|
|
Loading…
Reference in a new issue