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

feat(docs): swap Medium and videos sections #2859

Merged
merged 8 commits into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Convert integrations to grid
  • Loading branch information
kevinhu committed Jul 9, 2021
commit c02d19e7f0650bd1af648d4dae91b7438ce7a503
85 changes: 23 additions & 62 deletions docs-website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ const sourceLogos = [
},
{
name: "BigQuery",
image: svgFormatter(LogoBigquery, clsx(styles.logo_image_large)),
image: svgFormatter(LogoBigquery),
},
{ name: "DBT", image: pngFormatter(LogoDbt, clsx(styles.logo_image_large)) },
{ name: "DBT", image: pngFormatter(LogoDbt) },
{ name: "Druid", image: svgFormatter(LogoDruid) },
{
name: "Glue",
image: pngFormatter(LogoGlue, clsx(styles.logo_image_large)),
image: pngFormatter(LogoGlue),
},
{
name: "Hive",
Expand All @@ -201,19 +201,25 @@ const sourceLogos = [
image: pngFormatter(LogoLdap, clsx(styles.logo_image_square)),
},
{ name: "MongoDB", image: svgFormatter(LogoMongodb) },
{ name: "MSSQL", image: svgFormatter(LogoMssql) },
{ name: "MySQL", image: svgFormatter(LogoMysql) },
{
name: "MSSQL",
image: svgFormatter(LogoMssql),
},
{
name: "MySQL",
image: svgFormatter(LogoMysql),
},
{ name: "Oracle", image: svgFormatter(LogoOracle) },
{ name: "PostgreSQL", image: pngFormatter(LogoPostgres) },
{
name: "Redshift",
image: svgFormatter(LogoRedshift, clsx(styles.logo_image_large)),
image: svgFormatter(LogoRedshift),
},
{ name: "Snowflake", image: svgFormatter(LogoSnowflake) },
{ name: "Spark", image: svgFormatter(LogoSpark) },
{
name: "Superset",
image: svgFormatter(LogoSuperset, clsx(styles.logo_image_large)),
image: svgFormatter(LogoSuperset),
},
];

Expand Down Expand Up @@ -391,59 +397,14 @@ function Home() {
Supported integrations
</span>
</h1>
<div className={styles.carousel_container}>
<Slider
dots={true}
infinite={true}
centerMode={true}
slidesToShow={4}
slidesToScroll={3}
infinite={true}
dots={true}
autoplay={true}
autoplaySpeed={1000}
cssEase={"linear"}
responsive={[
{
breakpoint: 1080,
settings: {
slidesToShow: 3,
slidesToScroll: 2,
},
},
{
breakpoint: 960,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
},
},
{
breakpoint: 720,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
},
},
]}
>
{sourceLogos.map((logo) => {
return (
<div className={styles.carousel_logo_slide} key={logo.name}>
<div className={styles.carousel_logo_frame}>
<div className={styles.carousel_logo_center}>
{logo.image}
</div>
</div>
</div>
);
})}
</Slider>
</div>
<div className={styles.sources_link}>
<Link to={"/docs/metadata-ingestion/#sources"}>
...and many more!
</Link>
<div className={styles.logo_container}>
{sourceLogos.map((logo) => (
<div key={logo.name}>
<div className={styles.logo_frame}>
<div className={styles.logo_center}>{logo.image}</div>
</div>
</div>
))}
</div>
</div>
</section>
Expand All @@ -462,7 +423,7 @@ function Home() {
slidesToScroll={3}
infinite={true}
dots={true}
autoplay={true}
autoplay={false}
autoplaySpeed={3000}
cssEase={"linear"}
responsive={[
Expand Down Expand Up @@ -526,7 +487,7 @@ function Home() {
slidesToScroll={3}
infinite={true}
dots={true}
autoplay={true}
autoplay={false}
autoplaySpeed={3000}
cssEase={"linear"}
responsive={[
Expand Down
14 changes: 5 additions & 9 deletions docs-website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
background-color: var(--ifm-color-emphasis-100);
}
.logo_container {
max-width: 960px;
max-width: 1080px;
margin: 2em auto 1em auto;
display: flex;
flex-wrap: wrap;
Expand All @@ -114,8 +114,8 @@
border: 1px solid var(--ifm-color-emphasis-400);
background-color: #ffffff;
/* padding: 2em 3em; */
width: 16em;
height: 12em;
width: 12em;
height: 9em;
margin: 1em;
}
.logo_center {
Expand Down Expand Up @@ -204,17 +204,13 @@ html[data-theme="dark"] .sources_section {
}

.logo_image {
max-height: 8em;
max-width: 10em;
max-height: 7em;
max-width: 9em;
}
.logo_image_small {
max-height: 5em;
max-width: 7em;
}
.logo_image_large {
max-height: 10em;
max-width: 12em;
}
.logo_image_huge {
max-height: 12em;
max-width: 16em;
Expand Down