Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added fern/assets/Simplicity.mp4
Binary file not shown.
Binary file added fern/assets/Simplicity_1.webm
Binary file not shown.
7 changes: 5 additions & 2 deletions fern/pages/welcome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ hide-page-actions: true
<p>With market-leading data governance, robust change and access controls, SaaS or self-hosted deployment options, multi-region support, and the flexibility of <strong>open-source</strong>, you have the freedom to choose the setup that works best for you while maintaining full control over your data.</p>
</div>

<div class="hero-video">
<iframe loading="lazy" width="500" height="292" src="https://www.youtube-nocookie.com/embed/3h5NhorR4Ig?si=5S0QhTf8RZN45pV-" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen></iframe>
<div class="hero-animation">
<video autoPlay muted loop playsInline disablePictureInPicture>
<source src="../assets/Simplicity_1.webm" type="video/webm" />
<source src="../assets/Simplicity.mp4" type="video/mp4" />
</video>
</div>
</div>
</div>
Expand Down
76 changes: 34 additions & 42 deletions fern/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ body:has(.landing-page) .fern-page-actions {
.hero {
display: flex;
flex-direction: column;
gap: 2rem;
margin-top: 1rem;
gap: 0;
margin-top: 0;
margin-bottom: 2rem;
padding-bottom: 2.5rem;
}
Expand All @@ -149,47 +149,44 @@ body:has(.landing-page) .fern-page-actions {
color: #ffffff;
}

.hero-row {
display: flex;
align-items: flex-start;
gap: 4rem;
flex-wrap: wrap;
.hero-row.hero-row {
display: grid;
grid-template-columns: 3fr 2fr;
align-items: center;
gap: 2rem;
}

.hero-text-column {
flex: 1;
min-width: 300px;
.hero-text-column.hero-text-column {
grid-column: 1;
grid-row: 1;
display: flex;
flex-direction: column;
gap: 1rem;
word-break: normal;
overflow-wrap: normal;
}

.hero-text-column p {
.hero-text-column.hero-text-column p {
margin: 0;
}

/* Tablet and below - stack vertically, smaller video */
@media (max-width: 1024px) {
.hero-row {
flex-direction: column;
/* Tablet and below - stack vertically */
@media (max-width: 1200px) {
.hero-row.hero-row {
grid-template-columns: 1fr;
gap: 2rem;
}

.hero-text-column {
width: 100%;
max-width: 100%;
}

.hero-video {
.hero-animation.hero-animation {
grid-column: 1;
grid-row: 2;
max-width: 400px;
width: 100%;
max-width: 600px;
margin: 0 auto;
}
}

/* Mobile - hide video, ensure text is readable */
/* Mobile - hide animation, ensure text is readable */
@media (max-width: 768px) {
.landing-page.landing-page {
padding-left: 1.5rem;
Expand All @@ -205,17 +202,8 @@ body:has(.landing-page) .fern-page-actions {
font-size: 2rem;
}

.hero-row {
display: block;
}

.hero-text-column {
width: 100%;
max-width: 100%;
}

/* Hide video on mobile */
.hero-video {
/* Hide animation on mobile */
.hero-animation.hero-animation {
display: none;
}
}
Expand All @@ -236,18 +224,22 @@ body:has(.landing-page) .fern-page-actions {
}
}

.hero-video {
flex: 1 1 450px;
min-width: 320px;
max-width: 580px;
aspect-ratio: 600 / 330;
.hero-animation.hero-animation {
grid-column: 2;
grid-row: 1;
max-width: 300px;
width: 100%;
justify-self: end;
}

.hero-video iframe {
border-radius: 12px;
.hero-animation.hero-animation video {
width: 100%;
height: auto;
aspect-ratio: 600 / 330;
display: block;
border-radius: 12px;
pointer-events: none;
user-select: none;
margin: 0;
}

/* Card styles */
Expand Down