Skip to content

Commit

Permalink
Merge branch 'datahub-project:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Oct 3, 2024
2 parents b40167a + 86de271 commit c0c7038
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 14 deletions.
6 changes: 6 additions & 0 deletions docs-website/adoptionStoriesIndexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
"category": "B2B & B2C",
"description": "Pinterest adopted a DataHub project to enhance metadata management for its big data query platform, facilitating better data navigation and understanding."
},
{
"name": "Snap, Inc.",
"slug": "snap",
"imageUrl": "/img/logos/companies/snap.png",
"imageSize": "small"
},
{
"name": "Airtel",
"slug": "airtel",
Expand Down
20 changes: 10 additions & 10 deletions docs-website/src/pages/_components/CaseStudy/caseStudyContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ const caseStudyData = [
image: "https://datahubproject.io/img/logos/companies/netflix.png",
link: "https://datahubproject.io/adoption-stories/#netflix",
},
// {
// title: "Scaling Data Governance",
// description:
// "How VISA Uses DataHub to Scale Data Governance.",
// tag: "Finance",
// backgroundImage:
// "https://miro.medium.com/v2/resize:fit:2000/format:webp/1*[email protected]",
// image: "https://datahubproject.io/img/logos/companies/visa.png",
// link: "https://datahubproject.io/adoption-stories/#visa",
// },
{
title: "Scaling Data Governance",
description:
"How VISA Uses DataHub to Scale Data Governance.",
tag: "Finance",
backgroundImage:
"https://miro.medium.com/v2/resize:fit:2000/format:webp/1*[email protected]",
image: "/img/logos/companies/visa_text.png",
link: "https://datahubproject.io/adoption-stories/#visa",
},
{
title: "Ensuring Data Reliability",
description:
Expand Down
2 changes: 1 addition & 1 deletion docs-website/src/pages/_components/Logos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const CompanyLogos = () => (
className={clsx("mySwiper", styles.companyWrapper)}
>
{companies
.filter((company) => company.imageUrl) // Filter companies with imageUrl
.filter((company) => company.imageUrl && company.link) // Filter companies with imageUrl and link
.map((company, idx) => (
<SwiperSlide key={idx}>
{company.link ? (
Expand Down
13 changes: 11 additions & 2 deletions docs-website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import CloseButton from "@ant-design/icons/CloseCircleFilled";

const companyIndexes = require("../../adoptionStoriesIndexes.json");
const companies = companyIndexes.companies;
const keyCompanySlugs = ["netflix", "pinterest", "airtel", "notion", "optum"];
const keyCompanySlugs = ["netflix", "pinterest", "notion", "snap", "optum"]; //, "airtel"];
const keyCompanies = keyCompanySlugs
.map((slug) => companies.find((co) => co.slug === slug))
.filter((isDefined) => isDefined);
Expand Down Expand Up @@ -63,7 +63,13 @@ function Home() {
</div>
<div className="company_logos_list_wrapper">
{keyCompanies.map((company) => (
<a href={`/adoption-stories#${company.slug}`}>
<a
href={
company.slug != "snap"
? `/adoption-stories#${company.slug}`
: undefined
}
>
<img
src={useBaseUrl(company.imageUrl)}
alt={company.name}
Expand All @@ -72,6 +78,9 @@ function Home() {
/>
</a>
))}
<a href="/adoption-stories" class="more_link">
+ More
</a>
</div>
{/* <div style={{ textAlign: "center", margin: "1rem" }}>
<Link
Expand Down
15 changes: 14 additions & 1 deletion docs-website/src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ div[class^="announcementBar"] {
.text {
padding-right: 24px;
color: #777;
font-size: 1.25rem;
font-size: 1.2rem;
line-height: 1.5rem;
}

Expand All @@ -409,6 +409,16 @@ div[class^="announcementBar"] {
align-items: center;
flex-grow: 1;
justify-content: space-around;


.more_link {
font-size: 1.25rem;
color: #bbb;
font-weight: 600;
text-decoration: none;
position: relative;
top: -.4rem;
}
}
.company_logo {
max-width: 80px;
Expand Down Expand Up @@ -486,6 +496,9 @@ div[class^="announcementBar"] {
}
.company_logos_list_wrapper {
width: 100%;
.more_link {
display: none;
}
}
.company_logo {
max-width: 60px;
Expand Down
Binary file added docs-website/static/img/logos/companies/snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c0c7038

Please sign in to comment.