Skip to content

Commit

Permalink
4 added fixes and new features (#234)
Browse files Browse the repository at this point in the history
* added the Youtube API

* remove one of the node

* fix

* added a and b

* added new nodes

* added data to MDX provider

* link for youtube chanel

* added the swiper to the videos page

* slider

* added button for the swiper

* added the colections of video for tutorial page

* addde slider buttons

* added data for comunity page

* update slides

* update slider

* rewrite node-config

* remove unused code

* added lists for community

* fix bug

* remove unused packege

* install axios

* removed files and fix linter bugs

* added files to the env

* add dotenv

* added fix linter

* triger rbuild

* update data

* adedd descriptions for the playlists, positioned thumbnail on the center of the blog item

* test thumbnail for linkedIn

* test seo

* added hubspot script

* added the correct tracker for hubspot chat

* added the contributors profile

* test-1

* fix

* test-2

* resolve problem with thumbnail

* createt own youtube channel for test scheduled video

* adedd changes

* added logo

* added slider for personal references

* added form.html as static file

* removed the old form

* add modal for the references into the personal profile page

* check error on the community page when scheduled video was created

* fix renge

* added https protocol

* remove the logo from the front page, added the right logo, increase the size of the title for videos sections, added the additional spacing between the videos collections

---------

Co-authored-by: VHromyk <65778221+VHromyk@users.noreply.github.com>
Co-authored-by: Viktor <vmoskalev@smart-ui.pro>
Co-authored-by: Denny Lee <denny.g.lee@gmail.com>
  • Loading branch information
4 people committed Feb 22, 2023
1 parent 4774d00 commit d64de90
Show file tree
Hide file tree
Showing 34 changed files with 806 additions and 354 deletions.
23 changes: 18 additions & 5 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ const matchedArrByPlaylistId = (arr1, arr2) => {
};

const createListIdForEachSection = async () => {
const list = await getSectionLists();
const playlistsDividedBySection = await getSectionLists();

const arr = list
const arr = playlistsDividedBySection
?.filter((el) => el.contentDetails)
.map((item) => ({
type: item.snippet.type,
Expand All @@ -98,6 +98,7 @@ const createListIdForEachSection = async () => {
.filter((item) => item.sectionTitle === "Techniques and Tutorials")
.map((el) => el.playlists)
.flat();

const videosPlaylist = arr
.filter((el) => el.type === "singleplaylist")
.map((item) => item.playlists)
Expand All @@ -110,9 +111,20 @@ const createListIdForEachSection = async () => {
};

const dataForSeparatedSection = async (playListsAll, playlistType) => {
const promisesList = playlistType.map((playlistId) =>
videoListByPlayListId(playlistId)
);
// if we do not have dividing for section and do not have playlistType

let promisesList;

if (playlistType.length > 0) {
promisesList = playlistType.map((playlistId) =>
videoListByPlayListId(playlistId)
);
} else {
promisesList = playListsAll
.map((item) => item.playlistId)
.map((playlistId) => videoListByPlayListId(playlistId));
}

const [...data] = await Promise.all(promisesList);

const collectionVideos = data.map((item) => item.data.items);
Expand Down Expand Up @@ -147,6 +159,7 @@ const getVideoListPromise = async () => {
playListsAll,
playlistForSection.videosPlaylist
);

const tutorialsList = dataForSeparatedSection(
playListsAll,
playlistForSection.tutorialPlaylists
Expand Down
2 changes: 1 addition & 1 deletion src/blog/2022-12-13-sagemaker-emr-delta-lake/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Building a more efficient data infrastructure for machine learning with Open Source using Delta Lake, Amazon SageMaker, and EMR
description: In this blog, we’ll explore how connecting Delta Lake, Amazon SageMaker Studio, and Amazon EMR can simplify the end-to-end workflow required to support data engineering and data science projects.
thumbnail: ./image0.png
thumbnail: ./thumbnail.png
author: Vedant Jain, Denny Lee
---

Expand Down
Binary file not shown.
238 changes: 0 additions & 238 deletions src/blog/2023-01-03-delta-lake-vacuum-command/index.mdx

This file was deleted.

Binary file not shown.
16 changes: 16 additions & 0 deletions src/components/Logo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { StaticImage } from "gatsby-plugin-image";
import * as React from "react";
import styled from "styled-components";

const LogoWrapper = styled.div`
margin: 0 auto 1.2rem;
width: 150px;
`;

const Logo = () => (
<LogoWrapper>
<StaticImage src="../images/delta-lake-logo.png" alt="logo" />
</LogoWrapper>
);

export default Logo;
31 changes: 16 additions & 15 deletions src/components/SEO.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,34 @@ const query = graphql`
`;

const SEO = (props) => {
const { title, description, thumbnailPath, pageIndex, children } = props;
const { title, description, thumbnailPath, pageIndex, children, slug } =
props;

const { site } = useStaticQuery(query);

const documentTitle = `${
pageIndex > 1 ? `${title} - Page ${pageIndex}` : title
} | ${site.siteMetadata.title}`;

const image = `${site.siteMetadata.siteUrl}${thumbnailPath}`;
const url = `${site.siteMetadata.siteUrl}${slug}`;

return (
<>
<title>{documentTitle}</title>
<meta name="name" content={documentTitle} />
<meta
name="image"
property="og:image"
content={`${site.siteMetadata.siteUrl}${thumbnailPath}`}
/>
{description && <meta name="description" content={description} />}
<meta name="description" content={description} />
<meta name="image" content={image} />
<meta property="og:title" content={title} />
{description && <meta property="og:description" content={description} />}
<meta name="og:type" property="website" />
<meta property="og:description" content={description} />
<meta name="image" property="og:image" content={image} />
<meta property="og:url" content={url} />
<meta name="og:type" property="article" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content={site.siteMetadata.twitter} />
<meta name="twitter:image" content={image} />
<meta name="twitter:url" content={url} />
<meta name="twitter:title" content={title} />
<meta
name="twitter:image"
content={`${site.siteMetadata.siteUrl}${thumbnailPath}`}
/>
{description && <meta name="twitter:description" content={description} />}
<meta name="twitter:description" content={description} />
{children}
</>
);
Expand All @@ -54,13 +53,15 @@ SEO.defaultProps = {
pageIndex: 0,
description: "",
thumbnailPath: undefined,
slug: "",
};

SEO.propTypes = {
title: string.isRequired,
description: string,
thumbnailPath: string,
pageIndex: number,
slug: string,
};

export default SEO;
Loading

0 comments on commit d64de90

Please sign in to comment.