Compare commits

..

No commits in common. "5542d80fc2654fad6f6ef49104648c240867324f" and "ea18e2563f40f9111dc33a0ce2b13c85179c475f" have entirely different histories.

2 changed files with 7 additions and 10 deletions

View file

@ -2,6 +2,8 @@ import { useState } from 'preact/hooks';
import Heart from '../heart'; import Heart from '../heart';
const api = "lanyard.creations.works"
const statusMap = { const statusMap = {
online: "border-success-subtle", online: "border-success-subtle",
idle: "border-warning-subtle", idle: "border-warning-subtle",
@ -12,7 +14,7 @@ const statusMap = {
export default () => { export default () => {
const [status, setStatus] = useState<keyof typeof statusMap>('offline'); const [status, setStatus] = useState<keyof typeof statusMap>('offline');
fetch("https://lanyard.creations.works/v1/users/1273447359417942128") fetch(`https://${api}/v1/users/1273447359417942128`)
.then(req => req.json()) .then(req => req.json())
.then((res) => { .then((res) => {
if (res.data.discord_status) { if (res.data.discord_status) {

View file

@ -1,9 +1,4 @@
import { Minus, Minimize, X } from 'lucide-preact'; import { Minus, Minimize2, X } from 'lucide-preact';
const close = () => {
window.close();
window.history.back();
}
export default () => { export default () => {
return ( return (
@ -18,9 +13,9 @@ export default () => {
IPv4 dot Army IPv4 dot Army
</span> </span>
<div class="d-flex hstack gap-2" role="search"> <div class="d-flex hstack gap-2" role="search">
<button type="button" class="btn btn-outline-success btn-sm"><Minus size={20} /></button> <button type="button" class="btn btn-outline-success btn-sm"><Minus size={15} /></button>
<button type="button" class="btn btn-outline-warning btn-sm"><Minimize size={20} /></button> <button type="button" class="btn btn-outline-warning btn-sm"><Minimize2 size={15} /></button>
<button type="button" class="btn btn-outline-danger btn-sm" onClick={close}><X size={20} /></button> <button type="button" class="btn btn-outline-danger btn-sm"><X size={15} /></button>
</div> </div>
</div> </div>
</nav> </nav>