Skip to content

Carousel #482

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

Merged
merged 28 commits into from
Aug 22, 2024
Merged

Carousel #482

merged 28 commits into from
Aug 22, 2024

Conversation

hanbyul-here
Copy link
Collaborator

@hanbyul-here hanbyul-here commented Aug 12, 2024

Close NASA-IMPACT/veda-ui#1098

I used this PR as a test-bed to figure out how to write a component using USWDS design system. The rules that I tried to stick is like below.

  1. Use uswds-react whenever possible.
  2. Use USWDS helper, utility className whenever possible.
  3. Use Styled components for prop-based dynamic styling.
  4. Use classnames for static custom styles

🤔 I think, as a team, we only agreed on 1. altogether. (And I expressed my bias towards 2.) - other steps came to be kind of natural, but this might not be the case for everybody. So let's discuss if anything doesn't look right!

@faustoperez - I made the whole (- link area) card to be clickable

This PR NASA-IMPACT/veda-ui#1112 needs to be merged first

@slesaad - 🤔 I am not sure what to do with ui module because this change does require the update of UI module. Should I let this PR sit until the next release?

Copy link

netlify bot commented Aug 12, 2024

Deploy Preview for ghg-demo ready!

Name Link
🔨 Latest commit 3185289
🔍 Latest deploy log https://app.netlify.com/sites/ghg-demo/deploys/66c78b5c30dd1500085f50a4
😎 Deploy Preview https://deploy-preview-482--ghg-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hanbyul-here hanbyul-here requested review from faustoperez and removed request for faustoperez August 12, 2024 19:24
hanbyul-here added a commit to NASA-IMPACT/veda-ui that referenced this pull request Aug 15, 2024
**Related Ticket:** #1098 
+ We are encouraging IMPACT team to use USWDS. This new style
configuration that uses grid-layout will be useful for IMPACT team. (I
also need this style for Carousel )

### Description of Changes
- Added grid-layout style from uswds design system
- Edited purgecss configuration to include `instance/overrides` folder
as content
- Added CSS Variables for VEDA customization colors. 

### Notes & Questions About Changes

I almost gave up getting purgecss to work, but @dzole0311 helped me
figure out what was wrong. (The default extractor doesn't allow special
characters like `:`, which we need to target specific screen size like
`tablet: ` ex. https://designsystem.digital.gov/utilities/layout-grid/
Thank you so much 🙇 @dzole0311 !

@slesaad , you don't need to review this PR, but I think it would be
beneficial to check how we are importing the styles and purging the
styles through `postcss.config`.

### Validation / Testing
This PR doesn't bring any visual change to UI, but this GHG pr uses this
branch: US-GHG-Center/veda-config-ghg#482
@hanbyul-here hanbyul-here changed the base branch from develop to feature/r3 August 19, 2024 15:46
@hanbyul-here hanbyul-here changed the title [do not merge] Carousel Carousel Aug 19, 2024
@slesaad
Copy link
Collaborator

slesaad commented Aug 20, 2024

@hanbyul-here should we remove the underline from the title and make the title font a bit bigger?

we can merge the UI change in too (since you're pointing to main now)

@hanbyul-here
Copy link
Collaborator Author

@slesaad Ah thanks for catching the font size. We decided to underline the title since it is an actionable item so no need for additional style there.

Copy link

@dzole0311 dzole0311 left a comment

Choose a reason for hiding this comment

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

Great job @hanbyul-here, I tested the feature and it looks and feels really nice and responsive!

@hanbyul-here hanbyul-here merged commit 026f65d into feature/r3 Aug 22, 2024
5 checks passed
@hanbyul-here hanbyul-here deleted the main-carousel branch August 22, 2024 19:38
@slesaad slesaad mentioned this pull request Sep 5, 2024
paridhi-parajuli added a commit that referenced this pull request Sep 18, 2024
# Description
This PR holds all the big change that we'll be releasing for R3.

The `feature/r3` branch is the base branch, any new updates should be
merged into this branch.

# All PRs:
- #520
- #519
- #517
- #516
- #513
- #508
- #505
- #500
- #498
- #482
- #461
- #451
- + so many others, impossible to list them all

## Preview
### <span aria-hidden="true">✅</span> Deploy Preview for *ghg-demo*
ready!


|  Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">😎</span> Deploy Preview |
[https://deploy-preview-484--ghg-demo.netlify.app](https://deploy-preview-484--ghg-demo.netlify.app)
|
|<span aria-hidden="true">📱</span> Preview on mobile |
<details><summary> Toggle QR Code... </summary><br /><br />![QR
Code](https://app.netlify.com/qr-code/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL2RlcGxveS1wcmV2aWV3LTQ4NC0tZ2hnLWRlbW8ubmV0bGlmeS5hcHAifQ._9uAIz8VmzpyJihwM0OXHrYsnVdM_AervLzY8Lyilqg)<br
/><br />_Use your smartphone camera to open QR code link._</details> |
---

>[!WARNING]
>The deploy preview may not be recent, wait till the last commit shows ✅
below 👇 to get the latest version.
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.

Implement Carousel
3 participants