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

fix(docs-site) improvements to home page #11783

Merged
merged 4 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 10 additions & 0 deletions docs-website/adoptionStoriesIndexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
"category": "Financial & Fintech",
"description": "<i>\"We found DataHub to provide excellent coverage for our needs. What we appreciate most about DataHub is <b>its powerful API platform.</b>\"<br /><br /><div style='color: gray;'>— Jean-Pierre Dijcks, Sr. Dir. Product Management at VISA</div></i><br />"
},
{
"name": "Apple",
"slug": "apple",
"link": "https://youtu.be/5eFZuzG4c-s?feature=shared",
"linkType": "video",
"tagline": "How Apple built a solid foundation for observability, governance, and data sharing with DataHub",
"category": "B2B & B2C",
"platform": "cloud",
"description": "Discover how DataHub provides a solid foundation for observability, governance, and data sharing, while we explore its role in managing AI and data metadata."
},
{
"name": "Notion",
"slug": "notion",
Expand Down
4 changes: 2 additions & 2 deletions docs-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ module.exports = {
// },
// }),
announcementBar: {
id: "announcement-2",
id: "announcement-3",
content:
'<div style="display: flex; justify-content: center; align-items: center;width: 100%;"><!--img src="/img/acryl-logo-white-mark.svg" / --><div style="font-size: .8rem; font-weight: 600; background-color: white; color: #111; padding: 0px 8px; border-radius: 4px; margin-right:12px;">NEW</div><p>Join us at Metadata & AI Summit, Oct. 29 & 30!</p><a href="http://www.acryldata.io/conference?utm_source=datahub_web&utm_medium=metadata_ai_2024&utm_campaign=home_banner" target="_blank" class="button">Register<span> →</span></a></div>',
'<div style="display: flex; justify-content: center; align-items: center;width: 100%;"><!--img src="/img/acryl-logo-white-mark.svg" / --><!--div style="font-size: .8rem; font-weight: 600; background-color: white; color: #111; padding: 0px 8px; border-radius: 4px; margin-right:12px;">NEW</div--><p>Watch Metadata & AI Summit sessions on-demand.</p><a href="https://www.youtube.com/@DataHubProject/videos" target="_blank" class="button">Watch Now<span> →</span></a></div>',
backgroundColor: "#111",
textColor: "#ffffff",
isCloseable: false,
Expand Down
1 change: 1 addition & 0 deletions docs-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"markprompt": "^0.1.7",
"react": "^18.2.0",
"react-dom": "18.2.0",
"react-use-draggable-scroll": "^0.4.7",
"sass": "^1.43.2",
"swc-loader": "^0.2.6",
"swiper": "^11.1.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
flex: 1;
}
.cardLink {
user-select: none;
-webkit-user-drag: none;

color: #000;

&:hover {
Expand Down Expand Up @@ -88,6 +91,8 @@
z-index: 10;
filter: brightness(2);
opacity: .9;
user-select: none;
-webkit-user-drag: none;
}
.cardImageBackground {
position: absolute;
Expand Down
10 changes: 10 additions & 0 deletions docs-website/src/pages/_components/CaseStudy/caseStudyContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ const caseStudyData = [
image: "https://datahubproject.io/img/logos/companies/netflix.png",
link: "https://datahubproject.io/adoption-stories/#netflix",
},
{
title: "A Solid Foundation For Data and AI",
description:
"How Apple built a solid foundation for observability, governance, and data sharing with DataHub.",
tag: "Technology",
backgroundImage:
"https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Aerial_view_of_Apple_Park_dllu.jpg/2560px-Aerial_view_of_Apple_Park_dllu.jpg",
image: "/img/logos/companies/apple_text.png",
link: "https://datahubproject.io/adoption-stories/#apple",
},
{
title: "Scaling Data Governance",
description:
Expand Down
16 changes: 10 additions & 6 deletions docs-website/src/pages/_components/CaseStudy/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React from "react";
import React, { useRef } from "react";
import styles from "./case-study.module.scss";
import Link from '@docusaurus/Link'
import { Carousel } from "antd";
import { useDraggable } from "react-use-draggable-scroll";
import caseStudyData from "./caseStudyContent";


const CaseStudy = () => {
const containerRef = useRef(null);

const { events } = useDraggable(containerRef);

return (
<div className={styles.container}>
{/* Section-1 */}
Expand All @@ -15,16 +19,16 @@ const CaseStudy = () => {
<p>Across finance, healthcare, e-commerce, and countless more.</p>
</div>

<div className={styles.card_row}>
<div className={styles.card_row_wrapper} >
<div className={styles.card_row} {...events} ref={containerRef}>
<div className={styles.card_row_wrapper}>
{caseStudyData.map((caseStudy) => (
<div className={styles.card} key={caseStudy.link}>
<a className={styles.cardLink} href={caseStudy.link} style={caseStudy.backgroundImage ? null : {
<a draggable={false} className={styles.cardLink} href={caseStudy.link} style={caseStudy.backgroundImage ? null : {
opacity: .5
}}>
{caseStudy.tag ? <span className={styles.card_tag}>{caseStudy.tag}</span> : null}
<div className={styles.card_image} style={{ backgroundColor: caseStudy.backgroundImage ? null : '#eee' }}>
<img src={caseStudy.image} alt="" />
<img src={caseStudy.image} draggable={false} alt="" />
<div className={styles.cardImageBackground} style={{ backgroundImage: `url(${caseStudy.backgroundImage})` }} />
</div>
<div className={styles.card_heading_div}>
Expand Down
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.
15 changes: 6 additions & 9 deletions docs-website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,7 @@
"@docusaurus/theme-search-algolia" "2.4.3"
"@docusaurus/types" "2.4.3"

"@docusaurus/[email protected]":
"@docusaurus/[email protected]", "react-loadable@npm:@docusaurus/[email protected]":
version "5.5.2"
resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce"
integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==
Expand Down Expand Up @@ -9708,14 +9708,6 @@ react-loadable-ssr-addon-v5-slorber@^1.0.1:
dependencies:
"@babel/runtime" "^7.10.3"

"react-loadable@npm:@docusaurus/[email protected]":
version "5.5.2"
resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce"
integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==
dependencies:
"@types/react" "*"
prop-types "^15.6.2"

react-markdown@^8.0.6:
version "8.0.7"
resolved "https://registry.yarnpkg.com/react-markdown/-/react-markdown-8.0.7.tgz#c8dbd1b9ba5f1c5e7e5f2a44de465a3caafdf89b"
Expand Down Expand Up @@ -9830,6 +9822,11 @@ react-textarea-autosize@^8.3.2:
use-composed-ref "^1.3.0"
use-latest "^1.2.1"

react-use-draggable-scroll@^0.4.7:
version "0.4.7"
resolved "https://registry.yarnpkg.com/react-use-draggable-scroll/-/react-use-draggable-scroll-0.4.7.tgz#86e77caab921ca07b134e9e1d1bc1810aeee4916"
integrity sha512-6gCxGPO9WV5dIsBaDrgUKBaac8CY07PkygcArfajijYSNDwAq0girDRjaBuF1+lRqQryoLFQfpVaV2u/Yh6CrQ==

react-waypoint@^10.3.0:
version "10.3.0"
resolved "https://registry.yarnpkg.com/react-waypoint/-/react-waypoint-10.3.0.tgz#fcc60e86c6c9ad2174fa58d066dc6ae54e3df71d"
Expand Down
Loading