File tree Expand file tree Collapse file tree 13 files changed +152
-129
lines changed Expand file tree Collapse file tree 13 files changed +152
-129
lines changed Original file line number Diff line number Diff line change 1
1
import Navbar from './Navbar' ;
2
2
import Footer from './Footer' ;
3
+ import React from 'react' ;
3
4
4
5
const Layout = ( { children } : { children : React . ReactNode } ) => {
5
6
return (
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+
3
+ const PageBody = ( { children } : { children : React . ReactNode } ) => {
4
+ return (
5
+ < div >
6
+ < section className = "py-8 xl:px-24 sm:px-10 px-5" >
7
+ { children }
8
+ </ section >
9
+ </ div >
10
+ ) ;
11
+ }
12
+
13
+ export default PageBody ;
Original file line number Diff line number Diff line change
1
+ const PageTitle = ( { title } : { title : string } ) => {
2
+ return (
3
+ < div className = "text-center mt-10 mb-5" >
4
+ < h1 className = "font-bold text-6xl" > { title } </ h1 >
5
+ </ div >
6
+ )
7
+ }
8
+
9
+ export default PageTitle ;
Original file line number Diff line number Diff line change 1
1
import Layout from "@/components/Layout" ;
2
+ import PageBody from "@/components/PageBody" ;
3
+ import PageTitle from "@/components/PageTitle" ;
2
4
3
- export default function Constitution ( ) {
5
+ const ConstitutionPage = ( ) => {
4
6
return (
5
7
< Layout >
6
- < section className = "py-8 xl:px-24 sm:px-10 px-5" id = "constitution" >
7
- < div className = "text-center my-10" >
8
- < h1 className = "font-bold text-6xl" > CONSTITUTION</ h1 >
9
- </ div >
10
-
8
+ < PageTitle title = "CONSTITUTION" />
9
+ < PageBody >
11
10
< div >
12
11
< p className = "text-xl my-5" >
13
12
Since the end of 2013, the constitution has been hosted on Github. The constitution by which CSESoc runs can be found here:
@@ -48,7 +47,9 @@ export default function Constitution() {
48
47
</ li >
49
48
</ ul >
50
49
</ div >
51
- </ section >
50
+ </ PageBody >
52
51
</ Layout >
53
52
) ;
54
53
}
54
+
55
+ export default ConstitutionPage ;
Original file line number Diff line number Diff line change 1
1
import Layout from "@/components/Layout" ;
2
+ import PageBody from "@/components/PageBody" ;
3
+ import PageTitle from "@/components/PageTitle" ;
2
4
3
- const ElectionGuide = ( ) => {
5
+ const ElectionGuidePage = ( ) => {
4
6
return (
5
7
< Layout >
6
- < section className = "py-8 xl:px-24 sm:px-10 px-5" id = "election-guide" >
7
- < div className = "text-center my-10" >
8
- < h1 className = "font-bold text-6xl" > ELECTION NOMINATION GUIDE</ h1 >
9
- </ div >
10
-
8
+ < PageTitle title = "ELECTION GUIDE" />
9
+ < PageBody >
11
10
< div >
12
11
< p className = "text-lg my-5" >
13
12
Before considering any executive position for CSESoc, it
@@ -108,9 +107,9 @@ const ElectionGuide = () => {
108
107
</ ul >
109
108
</ div >
110
109
</ div >
111
- </ section >
110
+ </ PageBody >
112
111
</ Layout >
113
112
) ;
114
113
} ;
115
114
116
- export default ElectionGuide ;
115
+ export default ElectionGuidePage ;
Original file line number Diff line number Diff line change 1
1
import Layout from "@/components/Layout" ;
2
+ import PageBody from "@/components/PageBody" ;
3
+ import PageTitle from "@/components/PageTitle" ;
2
4
3
- const ExecsDirectorsSubcommittees = ( ) => {
5
+ const ExecsDirectorsSubcommitteesPage = ( ) => {
4
6
return (
5
7
< Layout >
6
- < section className = "py-8 xl:px-24 sm:px-10 px-5" id = "execs-directors-subcommittees" >
7
- < div className = "text-center my-10" >
8
- < h1 className = "font-bold text-6xl" > EXECS, DIRECTORS & SUBCOMMITTEES </ h1 >
9
- </ div >
10
-
8
+ < PageTitle title = "EXECS, DIRECTORS & SUBCOMMITTEES" />
9
+ < PageBody >
11
10
{ /* CSESOC TEAM */ }
12
11
< div >
13
12
< p className = "text-xl my-5" >
@@ -244,9 +243,9 @@ const ExecsDirectorsSubcommittees = () => {
244
243
</ p >
245
244
</ div >
246
245
</ div >
247
- </ section >
246
+ </ PageBody >
248
247
</ Layout >
249
248
) ;
250
249
}
251
250
252
- export default ExecsDirectorsSubcommittees ;
251
+ export default ExecsDirectorsSubcommitteesPage ;
Original file line number Diff line number Diff line change 1
1
import Layout from "@/components/Layout" ;
2
+ import PageBody from "@/components/PageBody" ;
3
+ import PageTitle from "@/components/PageTitle" ;
2
4
3
- const Faqs = ( ) => {
5
+ const FaqsPage = ( ) => {
4
6
return (
5
7
< Layout >
6
- < section className = "py-8 xl:px-24 sm:px-10 px-5" id = "faqs" >
7
- < div className = "text-center my-10" >
8
- < h1 className = "font-bold text-6xl" > FREQUENTLY ASKED QUESTIONS</ h1 >
9
- </ div >
10
-
8
+ < PageTitle title = "FREQUENTLY ASKED QUESTIONS" />
9
+ < PageBody >
11
10
< div >
12
11
< p className = "text-2xl my-5 font-semibold" >
13
12
What is CSESoc?
@@ -50,9 +49,9 @@ const Faqs = () => {
50
49
subcommittee. Subcommittee recruitment opens during T1 of each year.
51
50
</ p >
52
51
</ div >
53
- </ section >
52
+ </ PageBody >
54
53
</ Layout >
55
54
) ;
56
55
} ;
57
56
58
- export default Faqs ;
57
+ export default FaqsPage ;
Original file line number Diff line number Diff line change 1
1
import Layout from "@/components/Layout" ;
2
+ import PageTitle from "@/components/PageTitle" ;
2
3
import Image from 'next/image' ;
3
4
import Link from 'next/link' ;
4
5
5
6
export default function AboutPage ( ) {
6
7
return (
7
8
< Layout >
8
- < section className = "py-8 xl:px-24 sm:px-10 px-5" id = "about" >
9
- < div className = "text-center my-10" >
10
- < h2 className = "font-bold text-6xl" > ABOUT US</ h2 >
11
- </ div >
9
+ < PageTitle title = "ABOUT US" />
10
+ < section className = "py-8 xl:px-24 sm:px-10 px-5" >
12
11
< div className = "flex justify-center items-center" >
13
12
< div className = "lg:grid grid-cols-6 flex-1 max-w-[90rem]" >
14
13
{ /* LEFT SIDE */ }
Original file line number Diff line number Diff line change 1
- import Navbar from "@/components/Navbar" ;
2
- import Footer from "@/components/Footer" ;
1
+ import Layout from "@/components/Layout" ;
2
+ import PageBody from "@/components/PageBody" ;
3
+ import PageTitle from "@/components/PageTitle" ;
3
4
4
- const OurHistory = ( ) => {
5
+ const OurHistoryPage = ( ) => {
5
6
// Years from 2020 to 2007
6
7
const years : number [ ] = Array . from ( { length : 14 } , ( _ , i ) => 2020 - i ) ;
7
8
8
9
return (
9
- < section className = "flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5 relative overflow-hidden" >
10
- < Navbar />
11
- < section className = "py-8 xl:px-24 sm:px-10 px-5" id = "our-history" >
12
- < div className = "text-center my-10" >
13
- < h1 className = "font-bold text-6xl" > OUR HISTORY</ h1 >
14
- </ div >
15
-
10
+ < Layout >
11
+ < PageTitle title = "OUR HISTORY" />
12
+ < PageBody >
16
13
< div >
17
14
< p className = "text-xl my-5" >
18
15
CSESoc was formed in October 2006 from the old CompSoc and SESoc societies.
@@ -50,10 +47,9 @@ const OurHistory = () => {
50
47
</ div >
51
48
</ div >
52
49
) ) }
53
- </ section >
54
- < Footer />
55
- </ section >
56
- )
50
+ </ PageBody >
51
+ </ Layout >
52
+ ) ;
57
53
}
58
54
59
- export default OurHistory ;
55
+ export default OurHistoryPage ;
Original file line number Diff line number Diff line change 1
1
import Contacts from '@/components/Contacts' ;
2
2
import Layout from '@/components/Layout' ;
3
+ import PageBody from '@/components/PageBody' ;
4
+ import PageTitle from '@/components/PageTitle' ;
3
5
4
6
export default function ContactUsPage ( ) {
5
7
return (
6
8
< Layout >
7
- < section className = "py-8 xl:px-24 sm:px-10 px-5" id = "contact-us" >
8
- < div className = "text-center my-10" >
9
- < h1 className = "font-bold text-6xl" > CONTACT US</ h1 >
10
- </ div >
11
-
9
+ < PageTitle title = "CONTACT US" />
10
+
11
+ < PageBody >
12
12
< ul >
13
13
< li >
14
14
< h3 className = "text-2xl font-semibold pt-5" >
@@ -63,7 +63,7 @@ export default function ContactUsPage() {
63
63
< Contacts />
64
64
</ div >
65
65
</ div >
66
- </ section >
66
+ </ PageBody >
67
67
</ Layout >
68
68
) ;
69
69
}
You can’t perform that action at this time.
0 commit comments