Development Repo for the Brand new React WAC website. Please check main repository for lates updates.
Some limitations to the old WAC website:
- non component-based design make it difficult to refactor code
- requiring re-render on every interaction
- non-dynamic content managing
- hard to manage dependancies and versions
- mistakes and bugs are hard to spot
- inconsistant code formatting
The list goes on. Overall, it's been a hassle to maintain and update.
Due to COVID-19,WAC 2021: Together Towards Tomorrow
was the first ever virtual WAC and many technological inconviniences prompted @JeffersonDing to re-create the WAC website, effectively movingTowards Tomorrow
- Enforced formating and code consistancy
- A smoother UX
- More delicate and modular components
- High future expandability
- Easy integration with backend framworks and cloud computation
- The react project is based on
Node.js
which is mainlyJavascript
using theReact
frontend framework. - To ensure code consistancy, included in the repository are
.eslintrc.js
and.prettierrc.js
which useseslint
andprettier
. - Following the footsteps of the original WAC website, this project uses
Bootstrap v5.0.0
andFontawesome v4.7.0
as frontend components. - Due to the transitoin to
Node.js
andReact
we are able to interact with theDOM
much easier thus removing the use ofjQuery
.
- An updated version of the custom
style.css
is located in/public/assets/style/style.css
and handles all the custom styling, removing all inlineCSS
- Continue to use the
Nexa
font located in/pubic/assets/style/webfonts/
yarn
ornpm
as package manager
- Clone the repository
- Make sure that you have
Node.js
andnpm
oryarn
installed - Run
npm install
oryarn intsall
on the directory - Run
npm start
oryarn start
on the directory
- All pages of the website is located
/src/pages/
directory as individual.js
files. Files may contain multipleReact Components
but only one is exported as the page. Header
andFooter
and other reusable components are located in/src/components/
- All user images are uploaded to
/src/img/
- Dynamic data could be managed under
/src/data/
. - Primary
Router
is located at/src/index.js
- Primary
Router Switch
is located at/src/app.js
One of the major benifits of React is its dynamic aspect.
- To modify the home page quotes, change
quotes.json
- To modify routes to plenaries and specific plenary informations, modify
plenary.js
- To modify FAQ, edit
FAQ.js
- To modify Schedule or Recording of the conference, modify
schedule.js
- To modify staff/ambassadors list and roles, modify
staff.js