Skip to content

Commit

Permalink
feat: landing - animate hero (#197)
Browse files Browse the repository at this point in the history
* chore: move HeroDesktop to a separate component

* feat: update Box file extension and created AnimatedBox common component

* adds lodash to landing deps

* chore: split hero desktop

* screen reader variant for Text common component

* SandpackTitle (svg + sr h1)

* fixup

* update global styles

* update button override

* wip

* wip

* fix: end position as start

* feat: reset styles and update font definitions

* wip

* wip: scale

* update lockfile

* fix remove font size calc from html def

* adjust resources styling

* wip: misc adjustments on clipboard and resources

* remove unused files

* updated hero

* update lockfile

* misc adjustments

* remove lodash debounce

* update global styles

* fix hero desktop fouc

* fix: focus on editor when animation ends
  • Loading branch information
olarclara authored Nov 30, 2021
1 parent fa9e827 commit 6ba7ea1
Show file tree
Hide file tree
Showing 15 changed files with 695 additions and 223 deletions.
2 changes: 1 addition & 1 deletion website/landing/components/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HeroDesktop } from "./HeroDesktop";
import { HeroMobile } from "./HeroMobile";

export const Hero: React.FC = () => {
const isDesktop = useBreakpoint("1440");
const isDesktop = useBreakpoint("bp2");

return isDesktop ? <HeroDesktop /> : <HeroMobile />;
};
116 changes: 0 additions & 116 deletions website/landing/components/Hero/HeroDesktop.tsx

This file was deleted.

Loading

0 comments on commit 6ba7ea1

Please sign in to comment.