Navbar
#2
Closed
opened 2 years ago by a3thakra
·
58 comments
No Branch/Tag Specified
2022-07-08-MUA-Update
April-Code-Party
a258wang-events-2022-09-28
add-name-to-web-committe
amy-add-alt-tab-f22
amy-add-librarian-f22
amy-events-august-2022
amy-events-karaoke
amy-fix-vp-f22
amy-image-optimization-quick-fix-experiment
amy-news-2022-09-14
amy-random-shapes
amy-update-annie-headshot-f22
amy-update-community-reps
amy-update-internship-repo-f22
annies/add-circles-event
anniesun/add-myself-to-webstite
anniesun/update-blurbs
b72zhou-past-exec
bonnie-team-member-card
darren/add-class-profile-news
darren/add-myself-to-website
darren/add-news
darren/fix-dead-link
fix-oc-burger
j285he-add-news-09-07
j285he-ldap-test-example
jan-2023-constitution-changes
ldap-exec-test
main
neil-members
news-2022-09-08
news-2022-09-10
renovate/date-fns-tz-2.x
renovate/eslint-8.x
renovate/eslint-plugin-prettier-4.x
renovate/eslint-plugin-react-7.x
renovate/fs-extra-11.x
renovate/ldapts-4.x
renovate/mdx-js-loader-2.x
renovate/mdx-js-react-2.x
renovate/next-11.x
renovate/next-13.x
renovate/next-mdx-11.x
renovate/next-mdx-13.x
renovate/next-mdx-remote-3.x
renovate/node-18.x
renovate/node-19.x
renovate/npm-9.x
renovate/postcss-preset-env-8.x
renovate/react-18.x
renovate/react-dom-18.x
renovate/remark-14.x
renovate/remark-html-15.x
renovate/squoosh-lib-0.x
renovate/typescript-4.x
renovate/typescript-5.x
renovate/typescript-eslint-eslint-plugin-5.x
renovate/typescript-eslint-parser-5.x
richardshuai/karaoke
shahanneda-news-11jan2022
shahanneda/add-alt-tab-news
shahanneda/add-bot
shahanneda/add-code-party-1
shahanneda/add-code-party-23
shahanneda/add-event
shahanneda/add-events
shahanneda/add-myself
shahanneda/alt-tab-and-cp
shahanneda/fix-build-image-script
shahanneda/fix-name-parts
shahanneda/optimze-image-script
shahanneda/update-exec-blurbs
shahanneda/update-project-program
shahanneda/update-team
support-multiple-news-homepage
unix101-1
update-events
w23-update-team
warning-header
Labels
Apply labels
Clear labels
a11y
Backlog
Blocked
Bug
Content
Dependencies
Design
Feature Request
Good First Issue
In Progress
Performance
Priority - High
Priority - Low
Priority - Medium
Untriaged
No Label
a11y
Backlog
Blocked
Bug
Content
Dependencies
Design
Feature Request
Good First Issue
In Progress
Performance
Priority - High
Priority - Low
Priority - Medium
Untriaged
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
No dependencies set.
Reference: www/www-new#2
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
Create a Navbar and add it to _app.tsx to apply it to all pages.
Implement the dropdown for the Navbar as well.
It might be a good idea to use CSS position sticky for the Navbar
changed the description
Whoever is implementing this should build out both:
Desktop view:
Mobile view:
assigned to @a258wang
changed the description
Let's not change this yet.
requested review from @a3thakra
This should be in _app.css, and should be applied to all elements.
🤔 hmm....
The
style
element must be in the<head>
tag. @a258wang is working on using fonts correctly for everyone #23We should use the
<article>
tag over here, instead of a<div>
because it's semantically better.This is a heading, and we should be using semantic html tags. This looks like an
h3
(Page heading (h1) -> News (h2) -> Date (h3)Wrap this with a time tag: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time
Use the
<address>
tag to wrap author: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/addressUse named exports instead.
Benefits:
import NewsCrad from 'components/NewsCard'
, but notice that we accidentally misspelledNewsCard
)How to use named exports?
export const NewsCard ....
on line 12. (preferred)export {NewsCard}
The mobile version does not have a white background. Let's only change the background color in a media query.
Resources:
Use
rem
(and notpx
) for font size and spacing.16px = 1rem
.This might work when
props.children
is astring
, but let's not do this ifprops.children
is aReactElement
.#23 @a258wang is doing this.
Most of the comments are for using semantic html over generic elements. Good job overall!
added 5 commits
abf75af4
- 1 commit from branchmain
Compare with previous version
changed this line in version 3 of the diff
changed this line in version 3 of the diff
changed this line in version 3 of the diff
changed this line in version 3 of the diff
changed this line in version 3 of the diff
changed this line in version 3 of the diff
changed this line in version 3 of the diff
changed this line in version 3 of the diff
changed this line in version 3 of the diff
changed this line in version 3 of the diff
changed this line in version 3 of the diff
added 7 commits
main
941e9103
- Created NewsCard component w/ font/colour styling36ccadcf
- Style NewsCard + index.mdx18a4034b
- Change component to use props.children22b2a245
- Resolve Adi's commentsCompare with previous version
added 1 commit
aee54dc2
- Add news demoCompare with previous version
added 1 commit
6da88cf7
- Fix module declarationsCompare with previous version
The
address
tag automatically changes thefont-style
toitalic
. We should change this back to normal to match design.font-style: normal;
delete this entire file, it's not needed right now :)
LOL 😂
We're getting very close! I think we can merge it tomorrow/soon. 🎉
1 more thing: Make sure that the basename for the files ending with
.module.css
and.tsx
is the exactly the same. It's more or a convention, than an error. (So you would name the filesNewsCard.module.css
andNewsCard.tsx
- they are case sensitive)git checkout main -- package.json package-lock.json
to restore these two files.changed this line in version 6 of the diff
changed this line in version 6 of the diff
changed this line in version 6 of the diff
added 1 commit
4b8de4e3
- Fix date error + clean codeCompare with previous version
added 1 commit
174a2802
- Apply 1 suggestion(s) to 1 file(s)Compare with previous version
changed this line in version 8 of the diff
added 1 commit
20c23b95
- Apply 1 suggestion(s) to 1 file(s)Compare with previous version
added 1 commit
121defb3
- Delete index.module.css + follow naming conventionCompare with previous version
changed this line in version 10 of the diff
added 1 commit
54026a4a
- Rename newscard.module.cssCompare with previous version
From the usage notes:
changed this line in version 11 of the diff
added 1 commit
66c87fea
- Apply 1 suggestion(s) to 1 file(s)Compare with previous version
approved this merge request
added 1 commit
618e0239
- Fix attribute name on <time>Compare with previous version
enabled an automatic merge when the pipeline for
618e02392b
succeedsmarked this issue as related to #30
mentioned in merge request !32