Skip to content

Changed Home Heading height w/ heading subtext & button margin#159

Merged
trumanjchan merged 2 commits intodevelopfrom
fix/home-registerbutton_margin
Apr 26, 2021
Merged

Changed Home Heading height w/ heading subtext & button margin#159
trumanjchan merged 2 commits intodevelopfrom
fix/home-registerbutton_margin

Conversation

@trumanjchan
Copy link
Copy Markdown
Contributor

@trumanjchan trumanjchan commented Apr 26, 2021

Proposed changes

The Home Heading's img, text, subtext, and subscribe button were too squished together. I had to change the height of the Home Heading component and add css to that, and fix the css margins between the subtext and subscribe button. By doing this we fill most of the empty space in our Heading component; especially when at lower resolutions.

Types of changes

What types of changes does your code introduce to HackMerced Hub?
Put an x in the boxes that apply

  • Bugfix (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)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Responsiveness

Check off the different browsers and devices you have tested on. Note: testing includes Horizontal and Vertical alignments

Browsers

  • Chrome
  • Firefox
  • Edge
  • Safari
  • Brave
  • Opera

Devices

Phones

  • Moto G4
  • Galaxy S5
  • Pixel 2
  • Pixel 2 XL
  • iPhone 5/SE
  • iPhone 6/7/8
  • iPhone 6/7/8 Plus
  • iPhone X

Tablets

  • iPad
  • iPad Pro

Desktops

  • Windows 10
  • MacOSX
  • Ubuntu

Screenshots

I have to scroll down twice to exit the Home Heading component:
image
iPhone SE 2nd gen: I shouldn't be seeing the About Us text. The component height should be the full view height of my phone.
178631436_362072985236530_517333739844884175_n
Current website on desktop:
image
After changes on desktop:
image
Current website on desktop:
image
After changes on desktop: (tower css was changed in a previously merged PR)
image

Further comments

When I boot up the hackmerced website on my desktop, the Heading component height seems to be too tall (should be the full view height of the user's browser). And when I boot up the website on my phone, iPhone SE 2020, I can see the About Us text right underneath the Heading component. So I wanted to fix the component's height while addressing the margin problem.

The Home Heading's img, text, subtext, and subscribe button were too squished together. I had to change the height of the Home Heading component and add css to that, and fix the css margins between the subtext and subscribe button. By doing this we fill most of the empty space in our Heading component; especially when at lower resolutions.
@trumanjchan trumanjchan added the Fix Fixing a known bug label Apr 26, 2021
@trumanjchan trumanjchan self-assigned this Apr 26, 2021
@github-actions github-actions bot added the react label Apr 26, 2021
Had to subtract the vh by the height of the navbar's height. Will not do vh for lower resolutions because lower resolutions are for phones and other devices. Apparently vh might not work on them and create visual bugs (because you can zoom-in and scroll out of the page using a phone, changing the view height).
@trumanjchan trumanjchan merged commit 6b911a5 into develop Apr 26, 2021
@delete-merged-branch delete-merged-branch bot deleted the fix/home-registerbutton_margin branch April 26, 2021 03:47
adriandarian pushed a commit that referenced this pull request Oct 18, 2021
Changed Home Heading height w/ heading subtext & button margin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix Fixing a known bug react

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant