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

SGM-6270 - V2 Homepage updates #6276

Merged
merged 5 commits into from
May 26, 2023
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
chore: format files
  • Loading branch information
gitstart-sourcegraph committed May 26, 2023
commit 5263eab2bf028a670db9fadedc7d025775218bcd
6 changes: 3 additions & 3 deletions src/components/Carousels/VideoCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const VideoCarousel: FunctionComponent<VideosCarouselProps> = ({ videos }
containerElement.style.height = `${containerHeight}px`
}
}, [currentVideo])

useEffect(() => {
// Update the height initially
handleResize()
Expand Down Expand Up @@ -145,7 +145,7 @@ export const VideoCarousel: FunctionComponent<VideosCarouselProps> = ({ videos }

<div className="flex flex-col-reverse md:flex-col">
<div>
<p className="md:mt-4 mb-2 text-center text-xl font-semibold text-white">
<p className="mb-2 text-center text-xl font-semibold text-white md:mt-4">
{videos[currentVideo].title}
</p>
<div className="flex flex-wrap justify-center">
Expand All @@ -156,7 +156,7 @@ export const VideoCarousel: FunctionComponent<VideosCarouselProps> = ({ videos }
</div>
</div>

<div className="mb-6 flex items-center justify-center md:mb-0 mt-6 md:mt-4">
<div className="mb-6 mt-6 flex items-center justify-center md:mb-0 md:mt-4">
<ChevronLeftIcon
className="hidden cursor-pointer text-white opacity-80 hover:opacity-100 md:block"
onClick={prevVideo}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const carouselVideos = [
description: 'Generate unit tests, summarize changes, or create docs with prebuilt recipes.',
video: 'https://storage.googleapis.com/sourcegraph-assets/website/Product%20Animations/cody-unit-test-may2023.mp4',
link: '/cody',
}
},
]

const Home: FunctionComponent = () => (
Expand Down
Loading