CLS mitigation in Footer component
This commit is contained in:
parent
8eca21336d
commit
21e8cab0ed
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@ import { JSXElement } from "solid-js";
|
|||
|
||||
export function Footer(): JSXElement {
|
||||
return (
|
||||
<footer class="footer footer-center rounded mt-auto bg-base-200 p-10 text-base-content">
|
||||
/* Note that margin-top is defined inline here, instead of tailwinds "mt-auto", this is to mitigate CLS */
|
||||
<footer style="margin-top: auto;" class="footer footer-center rounded bg-base-200 p-10 text-base-content">
|
||||
<nav class="grid grid-flow-col gap-4">
|
||||
<a class="link-hover link">About us</a>
|
||||
<a class="link-hover link">Contact</a>
|
||||
|
|
Loading…
Reference in a new issue