Skip to content

Commit

Permalink
Merge pull request #9 from thisyahlen-deriv/thisyahlen/button-video
Browse files Browse the repository at this point in the history
chore: add button for video
  • Loading branch information
thisyahlen-deriv authored Jul 29, 2024
2 parents 2ab248f + 25e1940 commit 1e0bbe6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Binary file added src/assets/videoicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion src/components/VideoLibrary/VideoLibrary.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React, { useCallback } from 'react'
import { Text } from '@deriv-com/ui'
import { Button, Text } from '@deriv-com/ui'
import useEmblaCarousel from 'embla-carousel-react'
import Affiliate from '@/assets/affiliatecost.jpg'
import HowToSecure from '@/assets/howtosecure.png'
import howtocheckreferral from '@/assets/howtocheckreferral.png'
import derivmasteraffiliate from '@/assets/derivmasteraffiliate.jpg'
import howthederivmaster from '@/assets/howthederivmaster.jpg'
import howtogetreferral from '@/assets/howtogetreferral.jpg'
import videoIcon from '@/assets/videoicon.png'

import {
LabelPairedChevronLeftCaptionRegularIcon,
Expand Down Expand Up @@ -99,6 +100,23 @@ export const VideoLibrary: React.FC = () => {
/>
</button>
</div>
<div className="flex justify-center">
<Button
onClick={() =>
window.open(
'https://www.youtube.com/c/Deriv/videos',
'_blank'
)
}
variant="outlined"
className="rounded-[100px] lg:w-auto w-full"
>
<div className="flex items-center gap-12 justify-center">
<img src={videoIcon} />
See all videos
</div>
</Button>
</div>
</div>
)
}
Expand Down

0 comments on commit 1e0bbe6

Please sign in to comment.