-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: jury section english * feat: trainers section * fix: paths * fix: cta image and text * fix: review changes * feat: add ua translation for jury * fix: update en timeline * fix: white space
- Loading branch information
Showing
22 changed files
with
261 additions
and
46 deletions.
There are no files selected for viewing
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.
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.
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,51 @@ | ||
import React from "react"; | ||
|
||
interface Props { | ||
className?: string; | ||
children?: React.ReactNode; | ||
open?: boolean; | ||
title?: string; | ||
subtitle?: string; | ||
image?: string; | ||
light?: boolean; | ||
} | ||
|
||
const Accordion: React.FC<Props> = ({ | ||
className, | ||
open, | ||
children, | ||
title, | ||
subtitle, | ||
image, | ||
light, | ||
...rest | ||
}: Props) => { | ||
return ( | ||
<details | ||
className={`py-6 ${ | ||
light | ||
? "[&_summary::after]:content-plus-white [&[open]_summary::after]:content-minus-white" | ||
: "[&_summary::after]:content-plus-green [&[open]_summary::after]:content-minus-green" | ||
} ${className || ""}`} | ||
open={open} | ||
{...rest} | ||
> | ||
<summary className="flex not-prose after:w-5 after:h-5 after:text-gray-500 after:cursor-pointer after:justify-self-end after:mt-1 gap-4"> | ||
<div className="w-16 h-16 overflow-hidden cursor-pointer"> | ||
<img | ||
className="object-cover w-full h-full" | ||
alt={`Picture of ${title}`} | ||
src={image} | ||
/> | ||
</div> | ||
<div className="flex-1 flex flex-col cursor-pointer"> | ||
<h4 className="font-aktiv font-semibold text-2xl">{title}</h4> | ||
<div>{subtitle}</div> | ||
</div> | ||
</summary> | ||
<div className="pt-6 pl-20">{children}</div> | ||
</details> | ||
); | ||
}; | ||
|
||
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
Oops, something went wrong.