Files
DefectingCat.github.io/pages/about.tsx
2022-04-29 17:06:03 +08:00

53 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import dynamic from 'next/dynamic';
import { NextPageWithLayout } from 'types';
import avatar from 'public/images/img/avatar.svg';
import Image from 'next/image';
import classNames from 'classnames';
import Tab from 'components/RUA/tab';
const TabItem = Tab.Item;
const MainLayout = dynamic(() => import('layouts/MainLayout'));
const About: NextPageWithLayout = () => {
return (
<>
<main className="h-[calc(100vh-142px)] flex flex-col">
<div
className={classNames(
'flex items-center max-w-3xl',
'px-10 py-4 mx-auto lg:px-0 lg:py-10'
)}
>
<div className="w-16 h-16 lg:w-[72px] lg:h-[72px]">
<Image
src={avatar}
alt="Avatar"
priority
width={72}
height={72}
className="rounded-full"
/>
</div>
<div className="pl-4 text-xl lg:text-2xl lg:pl-10">
<h1 className="font-semibold font-Barlow">
Arthur / Defectink / xfy
</h1>
<div className="h-[1px] rounded-lg bg-gray-400"></div>
<div className="text-base lg:text-lg">
Long may the sun shine
</div>
</div>
</div>
</main>
</>
);
};
About.getLayout = function getLayout(page) {
return <MainLayout>{page}</MainLayout>;
};
export default About;