Skip to content

Commit 555ca01

Browse files
committed
refactored code to follow RAFCE
1 parent 8ec47c4 commit 555ca01

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

src/app/components/about.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function About() {
1+
const About = () => {
22
return (
33
<section id="about" className="mb-12">
44
<h2 className="text-2xl font-bold mb-4">About</h2>
@@ -13,3 +13,5 @@ export function About() {
1313
</section>
1414
)
1515
}
16+
17+
export default About

src/app/components/footer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
export function Footer() {
1+
const Footer = () => {
22
return (
33
<footer className="mt-2 py-6 text-center text-gray-500 dark:text-gray-400">
44
<p>&copy; 2024 Himank Dave. All rights reserved.</p>
55
</footer>
66
)
77
}
8+
9+
export default Footer

src/app/components/header.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Github, Linkedin, Mail, StickyNote } from 'lucide-react'
22
import ThemeSwitch from './ThemeSwitch'
33
import Image from 'next/image'
44

5-
export function Header() {
5+
const Header = () => {
66
const githubLink: string = "https://github.com/steadyfall"
77
const linkedinLink: string = "https://www.linkedin.com/in/himank-dave/"
88
return (
@@ -54,3 +54,5 @@ export function Header() {
5454
</header>
5555
)
5656
}
57+
58+
export default Header

src/app/components/miscellaneous.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function misc() {
1+
const misc = () => {
22
return (
33
<section id="misc" className="mb-12">
44
<h2 className="text-2xl font-bold mb-4">Misc.</h2>
@@ -9,4 +9,6 @@ export function misc() {
99
</ul>
1010
</section>
1111
)
12-
}
12+
}
13+
14+
export default misc

src/app/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
22

3-
import { Header } from './components/Header'
4-
import { Footer } from './components/Footer'
5-
import { About } from './components/About'
3+
import Header from './components/Header'
4+
import Footer from './components/Footer'
5+
import About from './components/About'
66
import { Experiences } from './components/Experiences'
77
import { Projects } from './components/Projects'
88
import Navbar from './components/Navbar';

0 commit comments

Comments
 (0)