Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Hero section #3

Merged
merged 11 commits into from
May 2, 2023
Merged

Hero section #3

merged 11 commits into from
May 2, 2023

Conversation

WarningImHack3r
Copy link
Member

@WarningImHack3r WarningImHack3r commented Apr 29, 2023

Hero section

  • Make the left part of the hero section (text + buttons)
  • Make the right part (looks amazing)
  • Magnetic bottom scroll-to-section arrow
  • Subtle background gradient

Surrounding changes

  • Prepare Section.svelte to get the right sizing

Other changes

  • Improve navbar responsiveness for large screens, change its top padding & make scrollY triggers accurate
  • Tailwind:
    • Add width rule for large screens (120rem/1920px)
    • Add tailwindcss-3d for translate-z, perspective and other 3D CSS stuff (why isn't it native to TailwindCSS?)
    • Add hover-child: variant because hover:child: acts like child-hover: for some reason
  • Switch to @babeard/svelte-heroicons because @rgossiaux/svelte-heroicons doesn't support yet Heroicons v2
  • Improve buttons' readability and flexibility by allowing passing additional classes directly to the component

- Make left part of hero section
- Prepare Section.svelte to get the right sizing
- Improve responsive for large screens for navbar
- Add Tailwind breakpoint for large screens (1920px)
- Add hover-child: variant because hover:child: acts lke child-hover: for some reason
- Improve buttons readability and flexibility
- Make hero section taller to *kinda* feat the screen height
- Add bottom scroll-to-next-section button
- Improve Section.svelte paddings & margins
- Switch from @rgossiaux/svelte-heroicons to @babeard's
- Add tailwindcss-3d lib
- Make MagneticElement configurable
Navbar:
- Increase top padding
- Make scroll trigger accurate
- Remove responsive top-padding
Hero:
- Much better height variable
- Move background gradient to hero background
- Improve shadows of absolute SVGs
Other:
- Fixes and improvements
@WarningImHack3r WarningImHack3r marked this pull request as ready for review May 1, 2023 23:40
@WarningImHack3r WarningImHack3r requested a review from MinixBF May 1, 2023 23:41
@WarningImHack3r WarningImHack3r merged commit 3c2c1ec into main May 2, 2023
@WarningImHack3r WarningImHack3r deleted the hero branch May 2, 2023 12:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants