-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from ainafi/main
retour en photo
- Loading branch information
Showing
22 changed files
with
406 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// src/components/Accordion.js | ||
import React, { useState } from 'react'; | ||
import { AccordionContent } from '../utils'; | ||
import { MdOutlineKeyboardArrowUp } from "react-icons/md"; | ||
import { MdOutlineKeyboardArrowDown } from "react-icons/md"; | ||
const AccordionItem = ({ title, children }) => { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
return ( | ||
<div className="border-b ml-8 max-w-4xl"> | ||
<button | ||
className="w-full text-left p-4 focus:outline-none" | ||
onClick={() => setIsOpen(!isOpen)} | ||
> | ||
<div className="flex justify-between items-center"> | ||
<span className={`${isOpen ? "text-bruning":"text-white"} font-DMMono text-[18px] md:text-[28px] `}>{title}</span> | ||
<span>{isOpen ? <MdOutlineKeyboardArrowUp color='white' width="200px" />: <MdOutlineKeyboardArrowDown color='white' />}</span> | ||
</div> | ||
</button> | ||
{isOpen && ( | ||
<div className="p-4 text-white font-DMMono text-[14px] md:text-[20px]"> | ||
{children} | ||
</div> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
const Accordion = () => { | ||
return ( | ||
<div className=" mx-auto my-8 rounded-lg overflow-hidden shadow-lg"> | ||
{AccordionContent.map((accordion)=>( | ||
<AccordionItem key={accordion.id} title={accordion.title}> | ||
<p className='text-white '>{accordion.description}</p> | ||
</AccordionItem> | ||
))} | ||
|
||
</div> | ||
); | ||
}; | ||
|
||
export default Accordion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,31 @@ import Vector from '../assets/images/Vector.png' | |
const Button = ({content}) => { | ||
return ( | ||
<> | ||
<motion.a | ||
whileHover={{ scale: 1.1 }} | ||
whileTap={{ scale: 0.9 }} | ||
target='_blank' href='http://[email protected] ' | ||
className='flex w-[300px] border border-raven rounded-md items-center justify-center p-2 '> | ||
<a className='text-white capitalize mr-6 font-DMMono text-nowrap hover:text-bruning' >{content}</a> | ||
<img className='object-contain' src={Vector} alt="" /> | ||
</motion.a> | ||
<motion.button | ||
whileHover={{ scale: 1.1 }} | ||
whileTap={{ scale: 0.9 }} | ||
className="bg-transparent border border-white font-DMMono rounded-md mb-3 w-full max-w-xs h-14 flex items-center justify-center px-4 py-2 sm:w-auto" | ||
aria-label="Get a ticket" | ||
> | ||
<span className="text-sm md:text-xl mb-0 text-white">{content}</span> | ||
<svg | ||
className="ml-2 inline-block" | ||
width="24" | ||
height="14" | ||
viewBox="0 0 24 15" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M16 0.288086C16 1.03009 16.733 2.13809 17.475 3.06809C18.429 4.26809 19.569 5.31509 20.876 6.11409C21.856 6.71309 23.044 7.28809 24 7.28809M24 7.28809C23.044 7.28809 21.855 7.86309 20.876 8.46209C19.569 9.26209 18.429 10.3091 17.475 11.5071C16.733 12.4381 16 13.5481 16 14.2881M24 7.28809H0" | ||
stroke="#fff" | ||
strokeWidth="1.66667" | ||
/> | ||
</svg> | ||
</motion.button> | ||
</> | ||
) | ||
} | ||
|
||
export default Button | ||
export default Button | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
import React from 'react'; | ||
import { motion } from 'framer-motion'; | ||
function GetTicketButton() { | ||
return ( | ||
<button className="px-8 py-4 bg-white self-stretch sm:self-center font-[DMMono] rounded-md"> | ||
<span className="text-[15px] md:text-xl">Obtenir un billet</span> | ||
<svg className="ms-4 inline" width="24" height="14" viewBox="0 0 24 15" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M16 0.288086C16 1.03009 16.733 2.13809 17.475 3.06809C18.429 4.26809 19.569 5.31509 20.876 6.11409C21.856 6.71309 23.044 7.28809 24 7.28809M24 7.28809C23.044 7.28809 21.855 7.86309 20.876 8.46209C19.569 9.26209 18.429 10.3091 17.475 11.5071C16.733 12.4381 16 13.5481 16 14.2881M24 7.28809H0" stroke="#020F13" strokeWidth="1.66667" /> | ||
</svg> | ||
</button> | ||
) | ||
<motion.button | ||
whileHover={{ scale: 1.1 }} | ||
whileTap={{ scale: 0.9 }} | ||
className="bg-white font-DMMono rounded-md mb-3 w-full max-w-xs h-14 flex items-center justify-center px-4 py-2 sm:w-auto mr-5" | ||
aria-label="Get a ticket" | ||
> | ||
<span className="text-sm md:text-xl mb-0">Obtenir un billet</span> | ||
<svg | ||
className="ml-2 inline-block" | ||
width="24" | ||
height="14" | ||
viewBox="0 0 24 15" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M16 0.288086C16 1.03009 16.733 2.13809 17.475 3.06809C18.429 4.26809 19.569 5.31509 20.876 6.11409C21.856 6.71309 23.044 7.28809 24 7.28809M24 7.28809C23.044 7.28809 21.855 7.86309 20.876 8.46209C19.569 9.26209 18.429 10.3091 17.475 11.5071C16.733 12.4381 16 13.5481 16 14.2881M24 7.28809H0" | ||
stroke="#020F13" | ||
strokeWidth="1.66667" | ||
/> | ||
</svg> | ||
</motion.button> | ||
); | ||
} | ||
|
||
export default GetTicketButton | ||
export default GetTicketButton; |
Oops, something went wrong.