use yew::{function_component, html, Html};
mod props;
use props::Props;
use crate::atoms::*;
#[function_component]
pub fn Logo(props: &Props) -> Html {
if props.style == "circle" {
html! {
<img src="images/logo/circle/1024.png" class="h-9 rounded-full" alt="Logo"/>
}
} else if props.style == "square" {
html! {
<img src="images/logo/square/1024.png" class="h-9" alt="Logo"/>
}
} else if props.style == "labeled" {
html! {
<div class="flex gap-5 justify-center">
<Logo style="circle"/>
<Label>
<p class="invisible pt-0.5 text-xl font-bold sm:visible">
{"Futino"}
</p>
</Label>
</div>
}
} else {
html! {
<Label>
<p class="text-red-400">
{"STYLE NOT SET FOR LOGO"}
</p>
</Label>
}
}
}