Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

responsive navbar #215

Merged
merged 10 commits into from
Mar 1, 2022
Merged

responsive navbar #215

merged 10 commits into from
Mar 1, 2022

Conversation

farisashai
Copy link
Member

@farisashai farisashai commented Feb 27, 2022

Description

Rewrote Navbar component completely to simplify code structure for future maintainability, reduced re-renderings of ACM Logo, designed responsive mobile menu animation and hamburger icon opening/closing, changed background to white to match website theme, and moved Navbar code to Sass modules as part of our gradual move to Next.js

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Logistical Change (something about code process / a readme change / documentation update)
  • CI Change (relating to deployment / continuous integration)
  • Something Else

How Has This Been Tested?

  • Tested on Localhost
  • Tested on Deployed Preview

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code as needed, particularly in hard-to-understand areas
  • My changes generate no new warnings (if they do, please explain why)

@vercel
Copy link

vercel bot commented Feb 27, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/acmucsd/main-website/9vudr79Bq3FAetschTCbo3doEjSm
✅ Preview: https://main-website-git-animate-navbar-acmucsd.vercel.app

@farisashai farisashai changed the title started responsive navbar responsive navbar Feb 27, 2022
.gitignore Show resolved Hide resolved
src/components/NavigationBar/index.tsx Outdated Show resolved Hide resolved
Comment on lines +57 to +58
<div className={`${s.bar1} ${menuOpen && s.open}`} />
<div className={`${s.bar2} ${menuOpen && s.open}`} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo probably semantically better to use an inline svg and animate that

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i tried to do this and nothing would work so i'm going to ignore for now unless anyone thinks its significant enough

src/styles/modules/App.module.scss Outdated Show resolved Hide resolved
src/components/NavigationBar/index.tsx Show resolved Hide resolved
src/styles/modules/App.module.scss Outdated Show resolved Hide resolved
src/styles/modules/App.module.scss Outdated Show resolved Hide resolved
src/styles/modules/App.module.scss Outdated Show resolved Hide resolved
src/styles/modules/App.module.scss Outdated Show resolved Hide resolved
Copy link
Member

@trulyronak trulyronak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking pretty good, one major change needed with the ordering of the links, aside from that some questions on commenting but i'll leave it up to you

src/components/NavigationBar/Navbar.module.scss Outdated Show resolved Hide resolved
src/components/NavigationBar/index.tsx Show resolved Hide resolved
Copy link
Member

@trulyronak trulyronak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent, this is perfect

@farisashai farisashai merged commit 7507cfe into main Mar 1, 2022
@farisashai farisashai deleted the animate-navbar branch March 1, 2022 03:05
farisashai added a commit that referenced this pull request Mar 1, 2022
* completed rough event card

* possible fix

* remove console log

* fix padding (#213)

* fix text colors for different orgs

* responsive navbar (#215)

* started responsive navbar

* commit typing

* finish navbar

* move navbar styles to component level module

* commit module typing

* use proper color variables

* use seconds for transitions

* fix navlink order

* fix easing functions

* add css comments

* Fetch data for board cards at build time server-side (#211)

* fetch board data from spreadsheet and populate

* moved code to api util function

* isr generate date once a day

* delete hardcoded data

* fixed board card fetch

* fixes

* Update BoardAPI.ts

* dumb fix

* Update Navbar.module.scss (#216)

* fix navbar with events tab

* optional facebook url
farisashai added a commit that referenced this pull request Mar 9, 2022
* completed rough event card

* possible fix

* remove console log

* fix padding (#213)

* fix text colors for different orgs

* responsive navbar (#215)

* started responsive navbar

* commit typing

* finish navbar

* move navbar styles to component level module

* commit module typing

* use proper color variables

* use seconds for transitions

* fix navlink order

* fix easing functions

* add css comments

* Fetch data for board cards at build time server-side (#211)

* fetch board data from spreadsheet and populate

* moved code to api util function

* isr generate date once a day

* delete hardcoded data

* fixed board card fetch

* fixes

* Update BoardAPI.ts

* dumb fix

* Update Navbar.module.scss (#216)

* fix navbar with events tab

* optional facebook url

* close on click (#218)

* add event card filters

* make footer icon type pointer

hi ronak - chris

* breakpoint as variable
farisashai added a commit that referenced this pull request Mar 25, 2022
* added route for events page

* deleted everything

* Events cards (#214)

* completed rough event card

* possible fix

* remove console log

* fix padding (#213)

* fix text colors for different orgs

* responsive navbar (#215)

* started responsive navbar

* commit typing

* finish navbar

* move navbar styles to component level module

* commit module typing

* use proper color variables

* use seconds for transitions

* fix navlink order

* fix easing functions

* add css comments

* Fetch data for board cards at build time server-side (#211)

* fetch board data from spreadsheet and populate

* moved code to api util function

* isr generate date once a day

* delete hardcoded data

* fixed board card fetch

* fixes

* Update BoardAPI.ts

* dumb fix

* Update Navbar.module.scss (#216)

* fix navbar with events tab

* optional facebook url

* Event filters (#219)

* completed rough event card

* possible fix

* remove console log

* fix padding (#213)

* fix text colors for different orgs

* responsive navbar (#215)

* started responsive navbar

* commit typing

* finish navbar

* move navbar styles to component level module

* commit module typing

* use proper color variables

* use seconds for transitions

* fix navlink order

* fix easing functions

* add css comments

* Fetch data for board cards at build time server-side (#211)

* fetch board data from spreadsheet and populate

* moved code to api util function

* isr generate date once a day

* delete hardcoded data

* fixed board card fetch

* fixes

* Update BoardAPI.ts

* dumb fix

* Update Navbar.module.scss (#216)

* fix navbar with events tab

* optional facebook url

* close on click (#218)

* add event card filters

* make footer icon type pointer

hi ronak - chris

* breakpoint as variable

* remove old files

* Event details (#220)

* wire up dynamic routes from api and link from corresponding card

* rename /event to /events

* format event name in url

* mobile at 960

* event page details + calendar actions

* small fixes

* fix committee name and css

* remove unused link for now

* fix replaceAll not supported

* generate and cache paths server side

* add support for viewing past events

* fix some comments

* SEO event link previews

* pass entire event directly to event card

* update seo description

* mobile dropdown functioning

* fix 2-way binding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants