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-site) added snap logo #11522

Merged
merged 2 commits into from
Oct 3, 2024
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
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
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
5 changes: 3 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,7 @@ 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 +72,7 @@ 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