Skip to content

Commit 5340a64

Browse files
authored
Merge pull request #140 from codersforcauses/issue-95-committee_documentation
Issue 95 committee documentation
2 parents 6ef088b + b31d4d6 commit 5340a64

3 files changed

Lines changed: 37 additions & 11 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Committee Members
2+
3+
Profiles of the Committee Members of the club that are displayed on the about page.
4+
5+
## Fields
6+
7+
**Id:** Required and unique field for the club member that is on the committee. It is an integer field that corresponds to the raw integer id of a row in the Member table, as a Foreign Key if you know databases.
8+
9+
**Role:** Required and unique field for the specific role in the committee that this member has. It is something known as an Enum (Enumeration), which has a discrete number of custom choices. You can choose from 'President', 'Vice President', 'Secretary', 'Treasurer', 'Marketing', 'Events OCM', 'Projects OCM', and 'Fresher Rep'. Since they must be unique, you can only have 8 objects in the Committee table at a time for now. This can definitely be changed in the future when the committee grows.
10+
11+
## Other Notes
12+
13+
Before making a Committee object in the Committee table, you must make a Member object for the person that's on the committee and then link it through the id (just to clarify)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## About/Committee Page
2+
3+
Has a description of the club, it's aim's etc, along with a big feature photo, intended to be a group photo of the committee or a big event? Then below is a display of all the current committee members of the club, showing name, role and pronouns.
4+
5+
## Hardcoded content to be modified by committee members
6+
7+
The club description and feature photo are the only things hardcoded into the website's front-end. Starting from the root directory of this website's source, this code to modify can be found in /client/src/pages/about.tsx
8+
9+
## Other Notes
10+
11+
The Committee Members are always displayed in the same order on the about page, which is the order mentioned in admin-dashboard/committee.md. If a certain Committee object can't be retreived, a placeholder Committee Member portrait will be displayed to maintain the same order.

client/src/pages/about.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,24 @@ export default function AboutPage() {
3030
<div className="mb-6 w-full border-t" aria-hidden="true" />
3131
<div className="space-y-4 font-sans text-base leading-relaxed text-white md:text-lg">
3232
<p>
33-
Description of the clubs aims, why it exists, its mission, etc
34-
etc. Second paragraph here, a second paragraph would be pretty
35-
cool. The more info the better yippee!!
36-
</p>
37-
<p>
38-
Lorem ipsum dolor such and such I can&apos;t remember the rest.
33+
{/*>>Hardcoded description of the club to be altered<<*/}
34+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
35+
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
36+
enim ad minim veniam, quis nostrud exercitation ullamco laboris
37+
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
38+
in reprehenderit in voluptate velit esse cillum dolore eu fugiat
39+
nulla pariatur.
40+
{/*>>Hardcoded description of the club to be altered<<*/}
3941
</p>
4042
</div>
4143
</div>
4244
<div className="relative aspect-[4/3] w-full flex-shrink-0 overflow-hidden rounded-2xl bg-light_2 md:w-96 lg:w-[32rem]">
4345
<div className="flex h-full w-full items-center justify-center">
4446
<Image
47+
/*>>Hardcoded feature image to be altered.<<*/
4548
src="/landing_placeholder.png"
46-
alt="/landing_placeholder.png"
49+
/*>>Description of feature image - alter this alongside the feature image.<<*/
50+
alt="Placeholder Picture"
4751
fill={true}
4852
/>
4953
</div>
@@ -64,7 +68,7 @@ export default function AboutPage() {
6468
<div className="relative h-[8.75rem] w-[8.25rem] overflow-hidden">
6569
<Image
6670
src={profilePic === null ? "/landing_placeholder.png" : profilePic}
67-
alt="/landing_placeholder.png"
71+
alt="Placeholder Picture"
6872
fill
6973
className="object-cover object-center"
7074
/>
@@ -134,9 +138,7 @@ export default function AboutPage() {
134138
</main>
135139
);
136140
} else {
137-
for (let i = 0; i < 8; i++) {
138-
committeeList.push(committee[i]);
139-
}
141+
committeeList.push(...committee.slice(0, 8));
140142
}
141143

142144
return (

0 commit comments

Comments
 (0)