CategoryCard.jsx
1 week ago
FAQs.jsx
1 week ago
PaidSupport.jsx
1 week ago
SearchBox.jsx
1 week ago
SupportForum.jsx
1 week ago
TicketModal.jsx
1 week ago
Videos.jsx
1 week ago
Videos.jsx
62 lines
| 1 | /** |
| 2 | * External Dependencies |
| 3 | */ |
| 4 | import { __ } from '@wordpress/i18n'; |
| 5 | import { CircleArrowRight, PlayCircle } from 'lucide-react'; |
| 6 | |
| 7 | /** |
| 8 | * Internal Dependencies |
| 9 | */ |
| 10 | import { Card } from '@admin/components/Card'; |
| 11 | const VIDEO_IDS = [ |
| 12 | 'RmH8YiswfIk', |
| 13 | 'EL29HYcCcxY', |
| 14 | 'jWZe020bdJc', |
| 15 | 'Q7QQGvCJh2I', |
| 16 | 'wUBa7Ht52fs', |
| 17 | 'Ywtj0Ui_TaI', |
| 18 | ]; |
| 19 | |
| 20 | export function Videos() { |
| 21 | return ( |
| 22 | <Card className="advads-card"> |
| 23 | <Card.HeaderIcon> |
| 24 | <PlayCircle /> |
| 25 | </Card.HeaderIcon> |
| 26 | <Card.HeaderTitle> |
| 27 | { __( 'Video tutorials', 'advanced-ads' ) } |
| 28 | </Card.HeaderTitle> |
| 29 | |
| 30 | <div className="grid sm:grid-cols-2 xl:grid-cols-3 gap-8"> |
| 31 | { VIDEO_IDS.map( ( videoId ) => ( |
| 32 | <div key={ videoId }> |
| 33 | <iframe |
| 34 | title={ `YouTube video ${ videoId }` } |
| 35 | src={ `https://www.youtube.com/embed/${ videoId }` } |
| 36 | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" |
| 37 | referrerPolicy="strict-origin-when-cross-origin" |
| 38 | allowFullScreen |
| 39 | className="aspect-video w-full" |
| 40 | ></iframe> |
| 41 | </div> |
| 42 | ) ) } |
| 43 | </div> |
| 44 | |
| 45 | <footer className="mt-6"> |
| 46 | <a |
| 47 | className="advads-view-all-link" |
| 48 | href="https://www.youtube.com/channel/UCBBcWLiklJ-mbq9LB6TbkVQ" |
| 49 | target="_blank" |
| 50 | rel="noopener noreferrer" |
| 51 | > |
| 52 | { __( |
| 53 | 'View all videos tutorials on YouTube', |
| 54 | 'advanced-ads' |
| 55 | ) } |
| 56 | <CircleArrowRight /> |
| 57 | </a> |
| 58 | </footer> |
| 59 | </Card> |
| 60 | ); |
| 61 | } |
| 62 |