From a410ed0359d35acbe6ff56dbee61c3a14bcffe90 Mon Sep 17 00:00:00 2001 From: Aaron Christopher Tanhar Date: Wed, 20 Sep 2023 01:01:11 +0700 Subject: [PATCH] feat: glow ass title --- src/components/typography/MainTitle.tsx | 39 +++++++++++++++++++++++++ src/pages/about.tsx | 9 +++--- src/pages/blog/index.tsx | 8 +++-- src/pages/index.tsx | 7 ++--- src/pages/projects.tsx | 9 +++--- 5 files changed, 57 insertions(+), 15 deletions(-) create mode 100644 src/components/typography/MainTitle.tsx diff --git a/src/components/typography/MainTitle.tsx b/src/components/typography/MainTitle.tsx new file mode 100644 index 00000000..ad575e59 --- /dev/null +++ b/src/components/typography/MainTitle.tsx @@ -0,0 +1,39 @@ +import type { ReactNode } from 'react'; + +import Accent from '@/components/Accent'; +import clsxm from '@/lib/clsxm'; + +export type MainTitleProps = { + children?: ReactNode; + title: ReactNode; + className?: string; +}; + +export const MainTitle = ({ title, children, className }: MainTitleProps) => { + return ( + <> +
+

+ {title} + {children} +

+
+ + + ); +}; diff --git a/src/pages/about.tsx b/src/pages/about.tsx index ec1462a7..1a535bf1 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -1,13 +1,13 @@ import type { NextPage } from 'next'; import { useInView } from 'react-intersection-observer'; -import Accent from '@/components/Accent'; import CloudinaryImg from '@/components/images/CloudinaryImg'; import Layout from '@/components/layout/Layout'; import ButtonLink from '@/components/links/ButtonLink'; import Marker from '@/components/Marker'; import Seo from '@/components/Seo'; import TechStack from '@/components/TechStack'; +import { MainTitle } from '@/components/typography/MainTitle'; import { LINK_SHORTENER_URL } from '@/constants/env'; import clsxm from '@/lib/clsxm'; @@ -24,9 +24,10 @@ const AboutPage: NextPage = () => {
-

- Hey, I{"'"}m Aaron Christopher -

+
-

- Blog {!isEnglish && 'Bahasa Indonesia'} -

+

Random thoughts about my expertise and hobby. It should be informational for yall sussy bakas. diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 235dba29..3b33e3dd 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,12 +1,12 @@ import type { NextPage } from 'next'; -import Accent from '@/components/Accent'; import CoolButton from '@/components/buttons/CoolButton'; import { Graphic } from '@/components/layout/Graphic'; import Layout from '@/components/layout/Layout'; import CustomLink from '@/components/links/CustomLink'; import UnstyledLink from '@/components/links/UnstyledLink'; import Seo from '@/components/Seo'; +import { MainTitle } from '@/components/typography/MainTitle'; import Wave from '@/components/Wave'; import clsxm from '@/lib/clsxm'; @@ -19,10 +19,9 @@ const Home: NextPage = () => {

-

- Henlo there + 👋 -

+

{

-

- Projects -

+
{projects.map((project) => (