-
Notifications
You must be signed in to change notification settings - Fork 0
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 #55 from pa7lux/feature/israel
Feature/israel
- Loading branch information
Showing
205 changed files
with
2,174 additions
and
458 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
11 changes: 9 additions & 2 deletions
11
components/ArticleComponents/AlignBlocks/LargeBlock/LargeBlock.tsx
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,9 +1,16 @@ | ||
import React, { FC, PropsWithChildren } from 'react'; | ||
import cn from 'classnames'; | ||
|
||
import BlockStyles from './LargeBlock.module.css'; | ||
|
||
const LargeBlock: FC<PropsWithChildren> = ({ children }) => { | ||
return <div className={BlockStyles.block_large}>{children}</div>; | ||
type Props = { | ||
className?: string; | ||
}; | ||
|
||
const LargeBlock: FC<PropsWithChildren<Props>> = ({ children, className }) => { | ||
return ( | ||
<div className={cn(BlockStyles.block_large, className)}>{children}</div> | ||
); | ||
}; | ||
|
||
export { LargeBlock }; |
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
47 changes: 47 additions & 0 deletions
47
components/ArticleComponents/ContentImageGridList/ContentImageGridList.module.css
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,47 @@ | ||
.image_grid { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | ||
gap: 2vw 4vw; | ||
width: 100%; | ||
padding: 2vw 4vw; | ||
background-color: #1e1e1e; | ||
border-radius: var(--radius-main); | ||
align-items: start; | ||
} | ||
|
||
.image_grid:has(li:nth-child(3)) { | ||
grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); | ||
} | ||
|
||
@media (max-width: 650px) { | ||
.image_grid { | ||
grid-template-columns: 1fr; | ||
} | ||
|
||
.image_grid:has(li:nth-child(3)) { | ||
grid-template-columns: 1fr; | ||
} | ||
} | ||
|
||
.image_grid_item { | ||
width: 100%; | ||
} | ||
|
||
.image_grid_item :global(.text-type-caption) { | ||
color: #f5f5f5; | ||
text-align: center; | ||
} | ||
|
||
.image_grid_item > :global(div) { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
.image_grid_item :global(img) { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: contain; | ||
object-position: center; | ||
max-height: 300px; | ||
/* filter: contrast(1.3) brightness(1.2) grayscale(0.5) sepia(0.4); */ | ||
} |
26 changes: 26 additions & 0 deletions
26
components/ArticleComponents/ContentImageGridList/ContentImageGridList.tsx
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,26 @@ | ||
import { FC } from 'react'; | ||
import cn from 'classnames'; | ||
import { Children, cloneElement } from 'react'; | ||
|
||
import styles from './ContentImageGridList.module.css'; | ||
|
||
type Props = { | ||
children: JSX.Element[]; | ||
className?: string; | ||
}; | ||
|
||
const ContentImageGridList: FC<Props> = ({ children, className }) => { | ||
return ( | ||
<ul className={cn(styles.image_grid, className)}> | ||
{Children.map(children, (child, i) => { | ||
return ( | ||
<li className={cn(styles.image_grid_item)} key={i}> | ||
{cloneElement(child)} | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
); | ||
}; | ||
|
||
export { ContentImageGridList }; |
44 changes: 44 additions & 0 deletions
44
components/ArticleComponents/DialogBubble/DialogBubble.module.css
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,44 @@ | ||
.bubble_block { | ||
display: flex; | ||
gap: 20px; | ||
background-color: var(--accent-color); | ||
align-items: center; | ||
padding: 60px 20px 40px; | ||
border-radius: 16px; | ||
margin: 80px 0 80px; | ||
position: relative; | ||
} | ||
|
||
.bubble_block:last-of-type { | ||
margin-bottom: 60px; | ||
} | ||
|
||
.people_list { | ||
display: flex; | ||
gap: 10px; | ||
text-align: center; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
transform: translate(20px, -40%); | ||
} | ||
|
||
.people_list img { | ||
display: block; | ||
width: 80px; | ||
aspect-ratio: 1/1; | ||
object-fit: cover; | ||
object-position: center; | ||
border-radius: 50%; | ||
} | ||
|
||
.people_list span { | ||
display: block; | ||
margin-top: 4px; | ||
font-weight: bold; | ||
transform: translate(0, -70%); | ||
background-color: #fff; | ||
border-radius: 8px; | ||
padding: 0.2em; | ||
font-size: 0.8em; | ||
} |
44 changes: 44 additions & 0 deletions
44
components/ArticleComponents/DialogBubble/DialogBubble.tsx
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,44 @@ | ||
import React, { FC, PropsWithChildren } from 'react'; | ||
import cn from 'classnames'; | ||
import { useTranslation } from 'next-i18next'; | ||
import CardStyles from './DialogBubble.module.css'; | ||
|
||
type Props = { | ||
people: string; | ||
direction?: 'ltr' | 'rtl'; | ||
}; | ||
|
||
const DialogBubble: FC<PropsWithChildren<Props>> = ({ | ||
children, | ||
people, | ||
direction, | ||
}) => { | ||
const { t } = useTranslation('bubble-authors'); | ||
const peopleIdArray: string[] = people.split(','); | ||
|
||
return ( | ||
<div | ||
className={cn( | ||
CardStyles.bubble_block, | ||
direction === 'rtl' && CardStyles['rtl-card'] | ||
)} | ||
> | ||
<ul className={cn(CardStyles.people_list)}> | ||
{peopleIdArray.map((person) => { | ||
return ( | ||
<li key={t(`${person}.name`)}> | ||
<img | ||
src={t(`${person}.img`) as string} | ||
alt={`На фото ${`${person}.name`}`} | ||
/> | ||
<span>{t(`${person}.name`)}</span> | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
<div className={cn(CardStyles.text)}>{children}</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export { DialogBubble }; |
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
1 change: 1 addition & 0 deletions
1
components/ArticleComponents/TextWithUnder/TextWithUnder.module.css
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.story { | ||
/* .story { | ||
aspect-ratio: 433/236; | ||
} | ||
} */ | ||
|
||
.story.large { | ||
aspect-ratio: 1366/102; | ||
|
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
41 changes: 41 additions & 0 deletions
41
components/UI/israel-star-icon/israel-star-icon.module.css
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,41 @@ | ||
.svg { | ||
position: absolute; | ||
height: 100%; | ||
z-index: 0; | ||
} | ||
|
||
.svg path { | ||
stroke-dasharray: 1000; | ||
stroke-dashoffset: 1000; | ||
animation-timing-function: ease-out; | ||
animation-fill-mode: forwards; | ||
} | ||
|
||
.svg.svg_israel-star { | ||
width: 25%; | ||
right: 3%; | ||
bottom: -30%; | ||
} | ||
|
||
@media (width <= 600px) { | ||
.svg.svg_israel-star { | ||
width: 15%; | ||
right: 3%; | ||
bottom: -20%; | ||
} | ||
} | ||
|
||
.svg.svg_israel-star path:not(:first-child) { | ||
animation-duration: 3s; | ||
animation-delay: 0.3s; | ||
} | ||
|
||
.svg.svg_israel-star path:first-child { | ||
animation-duration: 1s; | ||
} | ||
|
||
@keyframes svgAnimation { | ||
to { | ||
stroke-dashoffset: 0; | ||
} | ||
} |
Oops, something went wrong.