format incons links
This commit is contained in:
@@ -110,17 +110,15 @@ fn Link<T: 'static + Clone, S: 'static>(
|
|||||||
links: Resource<T, S>,
|
links: Resource<T, S>,
|
||||||
) -> impl IntoView {
|
) -> impl IntoView {
|
||||||
view! {
|
view! {
|
||||||
<li class="mx-auto w-44 lg:w-60">
|
<li class="w-44 lg:w-60">
|
||||||
<a class="bg-prim-light w-full hover:bg-prim-lightest border-b hover:border-third border-transparent text-xl rounded-lg text-center hover:text-third transition-colors px-5 py-4 inline-block"
|
<a class="bg-prim-light container flex flex-col lg:flex-row w-full item-center hover:scale-110 transition hover:bg-prim-lightest border-b hover:border-third border-transparent rounded-lg text-center hover:text-third px-5 py-4"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href={move || link.with(|x| x.link.to_string())}>
|
href={move || link.with(|x| x.link.to_string())}>
|
||||||
<div class="flex justify-center mb-2">
|
<img src={move || link.with(|x| x.icon.to_string())}
|
||||||
<img src={move || link.with(|x| x.icon.to_string())}
|
alt={move || link.with(|x| x.name.to_string())}
|
||||||
alt={move || link.with(|x| x.name.to_string())}
|
class="size-32 lg:size-10 object-cover overflow-hidden" />
|
||||||
class="block size-32 lg:size-54 object-cover overflow-hidden" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span>{move || link.with(|x| x.name.to_string())}</span>
|
<span class="flex-1 text-2xl mt-2 lg:mt-0 flex justify-center items-center">{move || link.with(|x| x.name.to_string())}</span>
|
||||||
</a>
|
</a>
|
||||||
{move || {
|
{move || {
|
||||||
edit.get().then(|| {
|
edit.get().then(|| {
|
||||||
|
|||||||
Reference in New Issue
Block a user