Skip to content

Commit cad1b48

Browse files
committed
Moving AboutUs component to main page and formatting files
1 parent baa0be9 commit cad1b48

3 files changed

Lines changed: 28 additions & 14 deletions

File tree

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
import React from 'react';
2-
3-
4-
export default function AboutUs (){
5-
return(
6-
<section id="about-us" className='flex flex-col max-w-2xl justify-center items-center self-center space-y-4 px-4'>
7-
<p className='text-3xl md:text-6xl tracking-wide md:font-light '>ABOUT US</p>
8-
<p className='hidden md:inline-block text-4xl font-bold '>Empowering great talent</p>
9-
<p className='sm:text-sm md:text-xl tracking-wide text-center space-y-4'>We bring together people who are passionate about React JS and <br className='hidden md:display'/>it&apos;s ecosystem. We are a community of full-stack developers, frontend developers and so much more</p>
10-
</section>
11-
)
12-
}
1+
import React from 'react';
2+
3+
export default function AboutUs() {
4+
return (
5+
<section
6+
id="about-us"
7+
className="flex flex-col max-w-2xl justify-center items-center self-center space-y-4 px-4"
8+
>
9+
<p className="text-3xl md:text-6xl tracking-wide md:font-light ">
10+
ABOUT US
11+
</p>
12+
<p className="hidden md:inline-block text-4xl font-bold ">
13+
Empowering great talent
14+
</p>
15+
<p className="sm:text-sm md:text-xl tracking-wide text-center space-y-4">
16+
We bring together people who are passionate about React JS and{' '}
17+
<br className="hidden md:display" />
18+
it&apos;s ecosystem. We are a community of full-stack developers,
19+
frontend developers and so much more
20+
</p>
21+
</section>
22+
);
23+
}

src/pages/about/index.page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Head from 'next/head';
22
import React from 'react';
3-
import AboutUs from "../../components/about-us/about-us";
43

54
export default function AboutPage() {
65
return (
@@ -9,7 +8,7 @@ export default function AboutPage() {
98
<title>Reactjs Developer Community in Kenya - About</title>
109
</Head>
1110
<main className="flex justify-center items-center min-h-screen bg-white">
12-
<AboutUs/>
11+
About Page here
1312
</main>
1413
</>
1514
);

src/pages/index.page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Head from 'next/head';
22
import Image from 'next/image';
33
import logo from '../../public/reactdevske.svg';
44
import Events from '../components/Events/Events';
5+
import AboutUs from '../components/about-us/about-us';
56

67
export default function Home() {
78
return (
@@ -49,6 +50,9 @@ export default function Home() {
4950
</button>
5051
</a>
5152
</div>
53+
<div className="flex flex-col py-12 bg-white">
54+
<AboutUs />
55+
</div>
5256
<Events />
5357
</main>
5458
</div>

0 commit comments

Comments
 (0)