Skip to content

Commit

Permalink
feat: gif in webinar hero section
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandraprakash-Darji committed Mar 10, 2023
1 parent 5672a91 commit 679e374
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
Binary file added src/assets/webinar/hero.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 4 additions & 18 deletions src/components/Webinar/Hero/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import styles from './index.module.css';
import ArrowLink from '@/components/links/ArrowLink';
import ButtonLink from '@/components/links/ButtonLink';

import HeroImg from '@/assets/webinar/hero.png';
import HeroImg from '@/assets/webinar/hero.gif';
const Hero = () => {
return (
<header className={styles.section} id='about'>
<div className={clsx('layout', styles.layout)}>
<h1 className='heading'>
TechTalks: Expert Webinar on the latest technologies
<h1 className='heading highlight highlight--light'>
Expert Webinar on the latest technologies
</h1>
<p className={styles.tagLine}>
Expand your knowledge and enhance your skills with our expert-led
Expand All @@ -20,17 +20,7 @@ const Hero = () => {
<ArrowLink className={styles.cta} as={ButtonLink} href='#upcoming'>
Upcoming webinars
</ArrowLink>
<div
className=''
style={{
width: '100%',
paddingBlock: '4rem',
paddingInline: '2rem',
marginTop: '4rem',
backgroundColor: 'var(--clr-primary)',
position: 'relative',
}}
>
<div className={styles.webinarGIfContainer}>
<img
src={HeroImg}
style={{
Expand All @@ -39,8 +29,6 @@ const Hero = () => {
/>
<svg
style={{
widthh: '7rem',
height: '7rem',
position: 'absolute',
top: '0',
right: '0',
Expand All @@ -61,8 +49,6 @@ const Hero = () => {

<svg
style={{
widthh: '10rem',
height: '10rem',
position: 'absolute',
top: '0',
left: '0',
Expand Down
25 changes: 24 additions & 1 deletion src/components/Webinar/Hero/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,29 @@
.tagLine {
font-size: 1.5rem;
color: var(--clr-content);
margin-block: 1.5rem;
margin-block: 2.3rem;
line-height: 2rem;
}

.webinarGIfContainer {
width: 100%;
padding-block: 2rem;
margin-top: 4rem;
background-color: var(--clr-primary);
position: relative;
}
.webinarGIfContainer svg {
width: 5rem;
height: 5rem;
}
@media (min-width: 1024px) {
.webinarGIfContainer {
padding-block: 4rem;
padding-inline: 2rem;
margin-top: 6rem;
}
.webinarGIfContainer svg {
width: 7rem;
height: 7rem;
}
}

0 comments on commit 679e374

Please sign in to comment.