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 Tomorrowwas 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.jswhich is mainlyJavascriptusing theReactfrontend framework. - To ensure code consistancy, included in the repository are
.eslintrc.jsand.prettierrc.jswhich useseslintandprettier. - Following the footsteps of the original WAC website, this project uses
Bootstrap v5.0.0andFontawesome v4.7.0as frontend components. - Due to the transitoin to
Node.jsandReactwe are able to interact with theDOMmuch easier thus removing the use ofjQuery.
- An updated version of the custom
style.cssis located in/public/assets/style/style.cssand handles all the custom styling, removing all inlineCSS - Continue to use the
Nexafont located in/pubic/assets/style/webfonts/ yarnornpmas package manager
- Clone the repository
- Make sure that you have
Node.jsandnpmoryarninstalled - Run
npm installoryarn intsallon the directory - Run
npm startoryarn starton the directory
- All pages of the website is located
/src/pages/directory as individual.jsfiles. Files may contain multipleReact Componentsbut only one is exported as the page. HeaderandFooterand 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
Routeris located at/src/index.js - Primary
Router Switchis 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