forked from seth/ipv4.army
Add @preact/signals dependency and update navbar button sizes
This commit is contained in:
parent
ea18e2563f
commit
9eaeb87707
4 changed files with 16 additions and 7 deletions
|
@ -2,8 +2,6 @@ import { useState } from 'preact/hooks';
|
|||
|
||||
import Heart from '../heart';
|
||||
|
||||
const api = "lanyard.creations.works"
|
||||
|
||||
const statusMap = {
|
||||
online: "border-success-subtle",
|
||||
idle: "border-warning-subtle",
|
||||
|
@ -14,7 +12,7 @@ const statusMap = {
|
|||
export default () => {
|
||||
const [status, setStatus] = useState<keyof typeof statusMap>('offline');
|
||||
|
||||
fetch(`https://${api}/v1/users/1273447359417942128`)
|
||||
fetch("https://lanyard.creations.works/v1/users/1273447359417942128")
|
||||
.then(req => req.json())
|
||||
.then((res) => {
|
||||
if (res.data.discord_status) {
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
import { Minus, Minimize2, X } from 'lucide-preact';
|
||||
import { Minus, Minimize, X } from 'lucide-preact';
|
||||
|
||||
const close = () => {
|
||||
window.close();
|
||||
window.history.back();
|
||||
}
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
|
@ -13,9 +18,9 @@ export default () => {
|
|||
IPv4 dot Army
|
||||
</span>
|
||||
<div class="d-flex hstack gap-2" role="search">
|
||||
<button type="button" class="btn btn-outline-success btn-sm"><Minus size={15} /></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"><X size={15} /></button>
|
||||
<button type="button" class="btn btn-outline-success btn-sm"><Minus size={20} /></button>
|
||||
<button type="button" class="btn btn-outline-warning btn-sm"><Minimize size={20} /></button>
|
||||
<button type="button" class="btn btn-outline-danger btn-sm" onClick={close}><X size={20} /></button>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue