Skip to content

Commit

Permalink
Feat/jury accordion (#151)
Browse files Browse the repository at this point in the history
* 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
pReya authored Feb 23, 2024
1 parent b9107ac commit e840162
Show file tree
Hide file tree
Showing 22 changed files with 261 additions and 46 deletions.
4 changes: 2 additions & 2 deletions public/images/award/award-timeline.svg
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/images/award/jury/Alina_Nosenko.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/images/award/jury/Roman_Zinchenko.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/images/award/jury/Valeriya_Ionan.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/images/award/jury/Volodymyr_Orlov.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/images/award/jury/Yevheniia_Talinovska.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/images/award/minus-green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/images/award/minus-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions public/images/award/plus-green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions public/images/award/plus-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/images/award/selection-criteria-ua.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/images/award/selection-criteria.svg
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.
Binary file added public/images/award/trainers/Ksenia_Yemshyna.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/images/award/trainers/Olena_Kukhar.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/images/award/trainers/Serhiy_Kornyliuk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions src/components/Accordion.tsx
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;
1 change: 1 addition & 0 deletions src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as Accordion } from "@components/Accordion";
export { default as TextBlock } from "@components/TextBlock";
export { default as Card } from "@components/Card";
export { default as HeaderLogo } from "@components/HeaderLogo";
Expand Down
Loading

0 comments on commit e840162

Please sign in to comment.