Add new post

* fix styles
This commit is contained in:
Defectink
2022-04-14 11:32:33 +08:00
parent 55d36c18d1
commit 1d9fa50fd3
11 changed files with 1086 additions and 197 deletions

View File

@ -6,7 +6,7 @@ const nowDay = new Date().getFullYear();
const Footer: FC = () => {
return (
<>
<footer className="max-w-6xl px-10 mx-auto xl:px-0">
<footer className="max-w-6xl px-4 mx-auto xl:px-0">
<div className="h-[2px] bg-slate-500"></div>
<div className="flex items-center justify-between py-4">

View File

@ -37,7 +37,7 @@ const HeadBar: FC = () => {
<header
className={cn(
'flex justify-between mx-auto',
'max-w-6xl p-6 xl:px-0 h-[84px]',
'max-w-6xl p-4 xl:px-0 h-[84px]',
'items-center relative'
)}
>

View File

@ -18,7 +18,7 @@ const Image = ({ src, alt }: Props) => {
layout="fill"
className={styles.image}
/>
<span className="block text-center text-gray-400">{alt}</span>
{alt && <span className="block text-center text-gray-400">{alt}</span>}
</p>
</>
);