Skip to content
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

New landing page #1549

Merged
merged 35 commits into from
Aug 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
30e3e5c
filip(feat): docs landing page - responsive implementation
fstoqnov-iohk Aug 2, 2024
ed4ebad
filip(feat): docs landing page - animations and remaining content
fstoqnov-iohk Aug 5, 2024
aaf6803
filip(feat): docs landing page - apply feedback and fixes
fstoqnov-iohk Aug 6, 2024
0c9fdeb
filip(feat): non-landing page design implementation (to account for t…
fstoqnov-iohk Aug 7, 2024
223db50
Tweak landing page styles and fonts
leandroiohk Aug 7, 2024
beac110
Tweak footer
leandroiohk Aug 7, 2024
4debbff
Fix console warnings
leandroiohk Aug 8, 2024
f72d892
Tweak "How it Works" section's styles and reveal animation
leandroiohk Aug 8, 2024
d71144a
Fix space between word and comma on animated text
leandroiohk Aug 8, 2024
f6f0a58
Tweak internal pages
leandroiohk Aug 8, 2024
3bba6d7
Fix useWindowSize filename
leandroiohk Aug 8, 2024
1070b26
Fix carousel moving to the last slide on page load (tablet)
leandroiohk Aug 8, 2024
44a1fb4
Fix carousel filename
leandroiohk Aug 8, 2024
ea28a8b
Replace case studies images
leandroiohk Aug 8, 2024
f0c87b5
Replace "how it works" images
leandroiohk Aug 8, 2024
d917c04
Update video and image assets with optimised versions
leandroiohk Aug 8, 2024
cbcdf68
Tweak footer and case studies text
leandroiohk Aug 8, 2024
e108550
Remove unmodified vendored theme components
ch1bo Aug 8, 2024
a871e2e
Adjust headings on markdown areas
leandroiohk Aug 8, 2024
7cc17e2
Tweak mobile menu
leandroiohk Aug 8, 2024
ac96c25
Revert onBrokenLinks back to "throw"
leandroiohk Aug 8, 2024
bacc8b9
Replace "why hydra head" image and tweak reveal animation
leandroiohk Aug 8, 2024
ccd581b
Replace useLocation with context to determine if on landing page to r…
ianhanssoniohk Aug 9, 2024
78e9271
Remove swizzled breadcrumb and resolve minor static build styling dif…
ianhanssoniohk Aug 9, 2024
6ce74ff
Cleanup styling on ADR / Blog post layout
ianhanssoniohk Aug 9, 2024
4d03c09
Remove gap on top of the hero and tweak faq headings and logo hover
leandroiohk Aug 9, 2024
3c3732a
Additional docs styles
leandroiohk Aug 9, 2024
086a6fc
Use .markdown instead of .theme-doc-markdown to apply styles to the A…
leandroiohk Aug 9, 2024
ac3fe4c
Tweak GitHub logo in the footer
leandroiohk Aug 9, 2024
99c220a
Fix animated text on firefox
leandroiohk Aug 9, 2024
91a8493
Rename "How It Works" files to "Why Hydra Head"
leandroiohk Aug 9, 2024
4e17a7b
Add staggered animation to feature grid
leandroiohk Aug 9, 2024
8b98b1c
Update carousel copy
leandroiohk Aug 9, 2024
9f820ef
Remove tag lines from features
leandroiohk Aug 9, 2024
fc0985b
filip(chore): unused swizzled components cleanup
fstoqnov-iohk Aug 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace "why hydra head" image and tweak reveal animation
leandroiohk authored and ch1bo committed Aug 12, 2024
commit bacc8b947df64cc27334cada774262510d22629a
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ const ResponsiveCarousel: FC = () => {
centeredSlides={isTabletUp}
spaceBetween={10}
ref={sliderRef}
loop
loop={!isTabletUp}
>
{isTabletUp
? HowItWorksCarouselContent.map((props, idx) => (
50 changes: 9 additions & 41 deletions docs/src/components/homepage/HowItWorks.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
import React, { FC, useState } from "react";
import clsx from "clsx";
import Arrow from "../icons/Arrow";
import { forLaptop, forTablet } from "../../../helpers/media-queries";
import { forTablet } from "../../../helpers/media-queries";
import useMediaQuery from "../../hooks/useMediaQuery";
import { motion } from "framer-motion";
import { HowItWorksContent } from "../../../docs/homepage/how-it-works";
import { useWindowSize } from "../../hooks/useWindowSize";

const HowItWorks: FC = () => {
const windowSize = useWindowSize(300);
const [expanded, setExpanded] = useState(false);
const isTabletUp = useMediaQuery(forTablet);
const isLaptopUp = useMediaQuery(forLaptop);

// Reset inline height set by framer motion
const key = `${windowSize.width}-${windowSize.height}`;

return (
<motion.section
@@ -29,17 +22,7 @@ const HowItWorks: FC = () => {
}}
>
<h5 className="text-base text-teal pb-14">/ HOW IT WORKS</h5>
<motion.div
key={key}
className="grid laptop:flex laptop:flex-row laptop:gap-6"
initial={"hidden"}
animate={expanded ? "visible" : "hidden"}
transition={{ duration: 0.15 }}
variants={{
visible: { height: "auto", overflow: "visible" },
hidden: { overflow: "hidden" },
}}
>
<div className="grid laptop:flex laptop:flex-row laptop:gap-6">
<div className="flex flex-col basis-[41%] pt-4 order-2 laptop:-order-1 laptop:w-[472px] laptop:pt-0">
<h4 className="text-2xl color-darkRed font-medium text-darkRed pb-4">
{HowItWorksContent.title}
@@ -73,28 +56,13 @@ const HowItWorks: FC = () => {
</button>
</div>
</div>
{isTabletUp && (
<motion.div
className="basis-[59%] relative border-b border-solid border-teal -order-1 laptop:order-2"
initial="hidden"
animate={expanded ? "visible" : "hidden"}
transition={{ duration: 0.15 }}
variants={{
visible: isLaptopUp
? { overflow: "visible" }
: { overflow: "visible", height: "auto" },
hidden: isLaptopUp
? { overflow: "hidden" }
: { overflow: "hidden", height: 280 },
}}
>
<img
src="hydra-docs-landing-graphic.png"
className="w-full laptop:absolute"
/>
</motion.div>
)}
</motion.div>
<div className="hidden basis-[59%] -order-1 laptop:order-2 tablet:block">
<img
src="hydra-docs-landing-graphic.png"
className="border-b border-solid border-teal laptop:border-none"
/>
</div>
</div>
</motion.section>
);
};
36 changes: 0 additions & 36 deletions docs/src/hooks/useWindowSize.ts

This file was deleted.

Binary file modified docs/static/hydra-docs-landing-graphic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.