feat(navbar) update navbar

This commit is contained in:
lumither committed 2024-05-30 15:47:55 +08:00
1 parent 3f38a6366b
commit bb657545c3
8 files changed
+40 -12

No files matched your search

+5 -1
View File
@@ -1,8 +1,12 @@
import React from 'react'; import React from 'react';
import ConstructionPlaceHolder from '@/components/ConstructionPlaceHolder';
function About() { function About() {
return ( return (
<div></div> <div className={ `h-dvh` }>
<ConstructionPlaceHolder />
</div>
); );
} }
+3 -2
View File
@@ -1,9 +1,10 @@
import React from 'react'; import React from 'react';
import ConstructionPlaceHolder from '@/components/ConstructionPlaceHolder';
const Archive = () => { const Archive = () => {
return ( return (
<div> <div className={ `h-dvh` }>
<ConstructionPlaceHolder />
</div> </div>
); );
}; };
+6 -1
View File
@@ -1,7 +1,12 @@
import ConstructionPlaceHolder from '@/components/ConstructionPlaceHolder';
import React from 'react';
export default function Home() { export default function Home() {
return ( return (
<main> <main>
{/*<ThemeSwitcher />*/ } <div className={ `h-dvh` }>
<ConstructionPlaceHolder />
</div>
</main> </main>
); );
} }
+4 -2
View File
@@ -1,10 +1,12 @@
import React from 'react'; import React from 'react';
import ConstructionPlaceHolder from '@/components/ConstructionPlaceHolder';
const Search = () => { const Search = () => {
return ( return (
<div> <div className={ `h-dvh` }>
<ConstructionPlaceHolder />
</div> </div>
); );
}; };
+3 -2
View File
@@ -1,9 +1,10 @@
import React from 'react'; import React from 'react';
import ConstructionPlaceHolder from '@/components/ConstructionPlaceHolder';
const Tags = () => { const Tags = () => {
return ( return (
<div> <div className={ `h-dvh` }>
<ConstructionPlaceHolder />
</div> </div>
); );
}; };
+13
View File
@@ -0,0 +1,13 @@
import React from 'react';
const ConstructionPlaceHolder = () => {
return (
<div className={ `flex h-full w-full justify-center items-center` }>
<p className={ `text-2xl font-bold` }>
正在施工中...
</p>
</div>
);
};
export default ConstructionPlaceHolder;
+2 -2
View File
@@ -153,8 +153,8 @@ function Navbar() {
</div> </div>
<div <div
className={ `flex justify-center md:justify-start mt-8 ml-0 md:-ml-3` }> className={ `flex justify-center md:justify-start w-full mt-8 ml-0 md:-ml-3` }>
<ul className={ `flex flex-col space-y-2` }> <ul className={ `flex flex-col space-y-2 w-full` }>
{ {
entries.map((meta, key) => ( entries.map((meta, key) => (
<li key={ key }> <li key={ key }>
+4 -2
View File
@@ -45,10 +45,12 @@ const config: Config = {
writingMode: 'vertical-lr' writingMode: 'vertical-lr'
}, },
'.sideways-lr': { '.sideways-lr': {
writingMode: 'sideways-lr' writingMode: 'vertical-lr',
transform: 'rotate(180deg)'
}, },
'.sideways-rl': { '.sideways-rl': {
writingMode: 'sideways-rl' writingMode: 'sideways-rl',
transform: 'rotate(180deg)'
} }
} }
); );