Skip to content

Commit

Permalink
feat: add new ui component in replace to Title
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbamijam committed May 5, 2024
1 parent 4dd1f81 commit 61b2091
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/sections/AboutSection.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Picture from "@components/common/Picture";
import Section from "@components/common/Section";
import Title from "@components/texts/Title";
import Heading from "@components/ui/Heading";
import AboutUi from "@components/ui/AboutUi";
import LoadingSpinner from "@components/ux/LoadingSpinner";
import { useFetch } from "@hooks/useFetch";
Expand Down Expand Up @@ -31,7 +31,7 @@ export default async function AboutSection() {

return (
<Section id={"about"} contentStyles={"gap-[100px]"}>
<Title
<Heading
name={"about me"}
desc={"Let's dive deeper of who am I behind the social media."}
/>
Expand Down
4 changes: 2 additions & 2 deletions components/sections/ContactSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { FaInstagram } from "react-icons/fa6";
import { FaXTwitter } from "react-icons/fa6";
import { FaGithub } from "react-icons/fa6";
import Section from "@components/common/Section";
import Title from "@components/texts/Title";
import Heading from "@components/ui/Heading";
import SocMed from "@components/ui/SocMed";

export default function ContactSection() {
return (
<Section id={"contact"} contentStyles={"gap-[30px]"}>
<Title
<Heading
name={"Contact Me"}
desc={
"If you have any concerns, questions or if you just want to be friends with me. Please, contact me to any of these that you prefer."
Expand Down
4 changes: 2 additions & 2 deletions components/sections/TechStackSection.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useFetch } from "@hooks/useFetch";
import { TechStackType } from "@shared-types/techstack";
import Section from "@components/common/Section";
import Title from "@components/texts/Title";
import Heading from "@components/ui/Heading";
import StackIcon from "@components/ui/StackIcon";

export default async function TechStackSection() {
Expand All @@ -28,7 +28,7 @@ export default async function TechStackSection() {

return (
<Section id={"techstack"} contentStyles={"gap-[100px]"}>
<Title
<Heading
name={"tech stacks"}
desc={
"All of my current technology stack that I really enjoy using. Looking forward to learn more."
Expand Down
15 changes: 15 additions & 0 deletions components/ui/Heading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
type Props = {
name: string;
desc: string;
};

export default function Heading({ name, desc }: Props) {
return (
<div className="title flex flex-col items-center ">
<h1 className="text-5xl md:text-6xl font-bold mb-[15px] capitalize">
{name}
</h1>
<p className="text-center paragraph-format">{desc}</p>
</div>
);
}

0 comments on commit 61b2091

Please sign in to comment.