yuri
This commit is contained in:
parent
1811d27cec
commit
64f46a739c
3 changed files with 16 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { createSignal, onMount } from "solid-js";
|
||||
import { theImager } from "./api"
|
||||
import "./comps.css"
|
||||
import { url } from "inspector";
|
||||
// warning: this IS horrible code. its a joke. DO NOT try this at home because
|
||||
// your local senior programmer CAN and WILL hunt you down
|
||||
// you have been warned.
|
||||
|
|
@ -8,16 +9,16 @@ export function AdvancedBr({ count }: { count: number }) {
|
|||
return new Array(count).fill(null).map(_ => (<br />))
|
||||
}
|
||||
|
||||
export function SingularOomfie({discordid }: { name: string, url: string, discordid: string }) {
|
||||
export function SingularOomfie(props: { name: string, url: string, discordid: string }) {
|
||||
const [imageSrc, setImageSrc] = createSignal("");
|
||||
|
||||
onMount(async () => {
|
||||
const url = await theImager(discordid);
|
||||
const url = await theImager(props.discordid);
|
||||
setImageSrc(url);
|
||||
});
|
||||
|
||||
return (
|
||||
<a href={imageSrc()}>
|
||||
<a href={props.url}>
|
||||
<img
|
||||
class="tooltip"
|
||||
style={{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue