Skip to content

Commit c047d0d

Browse files
committed
feat: add intro video to home
1 parent 072120c commit c047d0d

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

website/src/css/custom.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,6 +2612,37 @@ html[data-theme='dark'] .home .translated-note__image {
26122612
}
26132613
}
26142614

2615+
.home .home-video__content {
2616+
display: grid;
2617+
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
2618+
gap: 2rem;
2619+
}
2620+
2621+
.home .home-video__frame {
2622+
position: relative;
2623+
width: 100%;
2624+
padding-top: 56.25%;
2625+
border-radius: 16px;
2626+
overflow: hidden;
2627+
border: 1px solid var(--border-neutral-tertiary);
2628+
background: var(--bg-neutral-secondary-subtle);
2629+
}
2630+
2631+
.home .home-video__frame iframe {
2632+
position: absolute;
2633+
top: 0;
2634+
left: 0;
2635+
width: 100%;
2636+
height: 100%;
2637+
border: 0;
2638+
}
2639+
2640+
@media (max-width: 996px) {
2641+
.home .home-video__content {
2642+
grid-template-columns: 1fr;
2643+
}
2644+
}
2645+
26152646
.docswiper .swiper {
26162647
padding: 0 40px 10px;
26172648
}

website/src/pages/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { getInzhenerkaPromo } from '../utils/get-inzhenerka-promo';
1010
import Link from '@docusaurus/Link';
1111
import BlogPostCard from '@site/src/components/blogPostCard';
1212
import StructuredData from '@site/src/components/StructuredData';
13+
import YoutubeVideo from '@site/src/components/youtube';
1314

1415
const bannerAnimation = require('@site/static/img/banner-white.svg');
1516

@@ -254,6 +255,22 @@ function Home() {
254255
</div>
255256
</section>
256257

258+
<section className="section--compact home-video">
259+
<div className="container">
260+
<div className="home-video__content">
261+
<div>
262+
<span className="eyebrow">Ознакомительное видео</span>
263+
<h2 className="heading-2">Введение в dbt: основы моделирования данных</h2>
264+
<p>Практический разбор dbt: как уйти от хаотичных SQL и ETL к управляемому хранилищу данных.
265+
Без теории — реальные решения, подводные камни и лайфхаки, как dbt помогает команде и бизнесу.</p>
266+
</div>
267+
<div className="home-video__frame">
268+
<YoutubeVideo id="BSge0lPJeHk" />
269+
</div>
270+
</div>
271+
</div>
272+
</section>
273+
257274
<section className="baton-1 section--compact">
258275
<div className="container">
259276
<div>

0 commit comments

Comments
 (0)