Skip to content

Commit

Permalink
feat: adiciona modal e contador
Browse files Browse the repository at this point in the history
  • Loading branch information
Tacio Medeiros committed Feb 8, 2024
1 parent ee71bdc commit c993111
Show file tree
Hide file tree
Showing 17 changed files with 481 additions and 252 deletions.
186 changes: 7 additions & 179 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"@fortawesome/free-solid-svg-icons": "^6.2.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@vercel/analytics": "^0.1.3",
"bootstrap": "^5.3.2",
"firebase": "^10.4.0",
"firebase-admin": "^11.10.1",
"firebase-functions": "^3.23.0",
"next": "^13.4.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-modal-video": "^2.0.1",
"react-player": "^2.14.1",
"reactstrap": "^9.1.3"
},
Expand Down
Binary file added public/iwd-2024/banner/background-contador.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/iwd-2024/banner/hero-sm-old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/iwd-2024/banner/hero-sm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 10 additions & 9 deletions src/components/hero-section/iwd-2024/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import configValues from "helpers/config"

import styles from './styles.module.css'
import React from "react"

import ModalVideo from "react-modal-video";
import ModalPlayer from "components/modal-player/modal-player"

export const HeroSection = () => {

Expand All @@ -17,7 +16,7 @@ export const HeroSection = () => {
return (
<section className={styles.Section}>
<div className={styles.Content}>
<div>
<div className={styles.InnerContent}>
<div>
<h1 className={styles.H1}>Impact The Future</h1>
<h3 className={styles.H3} > International Women's Day 2024</h3>
Expand All @@ -31,18 +30,20 @@ export const HeroSection = () => {
Garantir meu ingresso
</a>

<div className={styles.AsidePlayButton} onClick={() => { toggle() }}>
<div className={styles.AsidePlayButton} onClick={() => { toggle(); }}>
<Image alt='Botão de play para vídeo do evneto ano passado' src={PlayIcon} width={44} height={32} />
<span >Confira o evento último ano</span>
</div>
</div>
</div>
</div>
<ModalVideo
channel="youtube"
isOpen={open}
videoId={'Uo59PxO9ofc'}
onClose={() => toggle()}
<ModalPlayer
url="https://www.youtube.com/embed/uY9nDt4swuU?si=EvquzOhd_7EjRulP"
open={open}
toggle={() => {
console.log('foi')
toggle()
}}
/>
</section >
)
Expand Down
Loading

0 comments on commit c993111

Please sign in to comment.