centralize header

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
0.1.7
Tuan-Dat Tran 2024-09-03 12:40:48 +02:00
parent bec4c608f1
commit 3610f338aa
2 changed files with 7 additions and 1 deletions

View File

@ -1318,6 +1318,10 @@ video {
flex-direction: row; flex-direction: row;
} }
.sm\:items-center {
align-items: center;
}
.sm\:space-y-0 > :not([hidden]) ~ :not([hidden]) { .sm\:space-y-0 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0; --tw-space-y-reverse: 0;
margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse))); margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));

View File

@ -13,7 +13,9 @@ pub fn Header() -> Element {
class: "container mx-auto p-4", class: "container mx-auto p-4",
ul { ul {
class:"flex flex-col justify-between sm:flex-row justify-center space-y-2 sm:space-y-0 sm:space-s-4", class:"flex flex-col justify-between items-center sm:flex-row justify-center space-y-2 sm:space-y-0 sm:space-s-4",
// class:"flex flex-col sm:flex-row justify-center items-center sm:space-x-8 space-y-8 sm:space-y-0",
li { li {
Link { Link {
to: Route::Home {}, to: Route::Home {},