Skip to content
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
Resize videos
  • Loading branch information
kevinhu committed Jul 9, 2021
commit a7da34f441421af5651beade4ec7930513d6ea50
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 84 additions & 17 deletions docs-website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ import LogoSnowflake from "./logos/snowflake.svg";
import LogoSpark from "./logos/spark.svg";
import LogoSuperset from "./logos/superset.svg";
// images for articles carousel
import February2021Update from "./images/February2021Update.png";
import March2021Update from "./images/march-2021-update.png";
import February2021Update from "./articles/february-2021-update.png";
import March2021Update from "./articles/march-2021-update.png";
import April2021Update from "./articles/april-2021-update.png";
import May2021Update from "./articles/may-2021-update.png";
import SaxoDatahub from "./articles/saxo-datahub.png";
Expand Down Expand Up @@ -222,38 +222,42 @@ const videos = [
{ id: "fEILyoWVpBw" },
{ id: "3wiaqhb8UR0" },
{ id: "dlFa4ubJ9ho" },
{ id: "RQBEJhcen5E" },
{ id: "xE8Uc27VTG4" },
{ id: "mjKjjtm8GfM" },
{ id: "r862MZTLAJ0" },
];

const articles = [
{
name: "Enabling Data Discovery in a Data Mesh: The Saxo Journey",
link: "https://medium.com/datahub-project/enabling-data-discovery-in-a-data-mesh-the-saxo-journey-451b06969c8f",
image: pngFormatter(SaxoDatahub),
image: pngFormatter(SaxoDatahub, clsx(styles.logo_image_huge)),
},
{
name: "LinkedIn DataHub Project Updates (May 2021)",
link: "https://medium.com/datahub-project/linkedin-datahub-project-updates-ed98cdf913c1",
image: pngFormatter(May2021Update),
image: pngFormatter(May2021Update, clsx(styles.logo_image_huge)),
},
{
name: "Data in Context: Lineage Explorer in DataHub",
link: "https://medium.com/datahub-project/data-in-context-lineage-explorer-in-datahub-a53a9a476dc4",
image: pngFormatter(DataHubLineage),
image: pngFormatter(DataHubLineage, clsx(styles.logo_image_huge)),
},
{
name: "LinkedIn DataHub Project Updates (April 2021)",
link: "https://medium.com/datahub-project/linkedin-datahub-project-updates-2b0d26066b8f",
image: pngFormatter(April2021Update),
image: pngFormatter(April2021Update, clsx(styles.logo_image_huge)),
},
{
name: "LinkedIn DataHub Project Updates (March 2021)",
link: "https://medium.com/datahub-project/linkedin-datahub-project-updates-697f0faddd10",
image: pngFormatter(March2021Update),
image: pngFormatter(March2021Update, clsx(styles.logo_image_huge)),
},
{
name: "LinkedIn DataHub Project Updates (February 2021)",
link: "https://medium.com/datahub-project/linkedin-datahub-project-updates-february-2021-edition-338d2c6021f0",
image: pngFormatter(February2021Update),
image: pngFormatter(February2021Update, clsx(styles.logo_image_huge)),
},
];

Expand Down Expand Up @@ -454,23 +458,16 @@ function Home() {
dots={true}
infinite={true}
centerMode={true}
slidesToShow={4}
slidesToShow={3}
slidesToScroll={3}
infinite={true}
dots={true}
autoplay={true}
autoplaySpeed={100000}
autoplaySpeed={3000}
cssEase={"linear"}
responsive={[
{
breakpoint: 1080,
settings: {
slidesToShow: 3,
slidesToScroll: 2,
},
},
{
breakpoint: 960,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
Expand Down Expand Up @@ -513,6 +510,76 @@ function Home() {
</div>
</section>

<section className={clsx(styles.section, styles.articles_section)}>
<div className="container">
<h1 className={clsx(styles.centerText, styles.small_padding_bottom)}>
<span className={styles.larger_on_desktop}>Articles</span>
</h1>
<div className={styles.carousel_container}>
<Slider
dots={true}
infinite={true}
centerMode={true}
slidesToShow={3}
slidesToScroll={3}
infinite={true}
dots={true}
autoplay={true}
autoplaySpeed={3000}
cssEase={"linear"}
responsive={[
{
breakpoint: 1080,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
},
},
{
breakpoint: 960,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
},
},
{
breakpoint: 720,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
},
},
]}
>
{articles.map((article) => {
return (
<div
className={styles.carousel_logo_slide_large}
key={article.name}
>
<div className={styles.carousel_article_logo_frame}>
<div className={styles.carousel_article_logo_center}>
{article.image}
</div>
<div className={styles.carousel_article_title_center}>
<Link to={article.link} className={styles.article_link}>
{article.name}
</Link>
</div>
</div>
</div>
);
})}
</Slider>
</div>
<div className={styles.sources_link}>
<Link to={"https://medium.com/datahub-project"}>
Read our Medium for more!
</Link>
</div>
</div>
</section>

<section className={styles.section}>
<div className="container">
<h1 className={clsx(styles.centerText)}>
Expand Down
39 changes: 39 additions & 0 deletions docs-website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@
background-color: var(--ifm-color-emphasis-300);
}

.articles_section {
background-color: var(--ifm-color-emphasis-300);
}

html[data-theme="dark"] .sources_section {
background-color: #303439;
}
Expand All @@ -142,6 +146,11 @@ html[data-theme="dark"] .sources_section {
height: 12rem;
width: 100%;
}
.carousel_logo_slide_large {
padding: 1rem;
height: 20rem;
width: 100%;
}
.carousel_logo_frame {
background-color: #ffffff;
width: 100%;
Expand All @@ -159,6 +168,32 @@ html[data-theme="dark"] .sources_section {
width: 100%;
height: 100%;
}
.carousel_article_logo_frame {
background-color: #ffffff;
width: 100%;
height: 100%;
padding: 1rem;
--tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
display: flex;
flex-direction: column;
}
.carousel_article_logo_center {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.carousel_article_title_center {
text-align: center;
}
.article_link {
user-select: none;
-webkit-user-drag: none;
}
.sources_link {
text-align: center;
width: 100%;
Expand All @@ -181,6 +216,10 @@ html[data-theme="dark"] .sources_section {
max-height: 10em;
max-width: 12em;
}
.logo_image_huge {
max-height: 12em;
max-width: 16em;
}
.logo_image_square {
max-height: 7em;
max-width: 7em;
Expand Down