-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output cards with dynamic content (#67)
- Loading branch information
1 parent
9b8feea
commit 8612343
Showing
28 changed files
with
377 additions
and
26 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
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
6 changes: 6 additions & 0 deletions
6
client/components/MainPage/Card/CardDynamic/CardTrafficJams.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,6 @@ | ||
.CardTrafficJams { | ||
position: absolute; | ||
bottom: .35em; | ||
right: .45em; | ||
font-size: 100px; | ||
} |
15 changes: 15 additions & 0 deletions
15
client/components/MainPage/Card/CardDynamic/CardTrafficJams.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,15 @@ | ||
import classNames from 'classnames/bind'; | ||
|
||
import styles from './CardTrafficJams.module.css'; | ||
|
||
const cn = classNames.bind(styles); | ||
|
||
export function CardTrafficJams({ score }) { | ||
return ( | ||
<> | ||
<div className={cn(styles.CardTrafficJams)}> | ||
{score} | ||
</div> | ||
</> | ||
) | ||
} |
17 changes: 17 additions & 0 deletions
17
client/components/MainPage/Card/CardDynamic/CardTransportA11y.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,17 @@ | ||
.CardTransportA11y { | ||
font-size: 1.25em; | ||
} | ||
|
||
.CardTransportA11yList { | ||
display: flex; | ||
gap: 1.25em; | ||
} | ||
|
||
.CardTransportA11yItem { | ||
font-weight: 600; | ||
text-align: left; | ||
} | ||
|
||
.CardTransportA11yItem dd { | ||
margin: 12px 0 0; | ||
} |
32 changes: 32 additions & 0 deletions
32
client/components/MainPage/Card/CardDynamic/CardTransportA11y.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,32 @@ | ||
import classNames from 'classnames/bind'; | ||
|
||
import styles from './CardTransportA11y.module.css'; | ||
|
||
const cn = classNames.bind(styles); | ||
|
||
export function CardTransportA11y({ buses, trolls, trams }) { | ||
return ( | ||
<div className={cn(styles.CardTransportA11y)}> | ||
<p> | ||
Сейчас в городе ходит низкопольный транспорт: | ||
</p> | ||
|
||
<dl className={cn(styles.CardTransportA11yList)}> | ||
<div className={cn(styles.CardTransportA11yItem)}> | ||
<dt>Автобусы</dt> | ||
<dd>{buses}</dd> | ||
</div> | ||
|
||
<div className={cn(styles.CardTransportA11yItem)}> | ||
<dt>Троллейбусы</dt> | ||
<dd>{trolls}</dd> | ||
</div> | ||
|
||
<div className={cn(styles.CardTransportA11yItem)}> | ||
<dt>Трамваи</dt> | ||
<dd>{trams}</dd> | ||
</div> | ||
</dl> | ||
</div> | ||
) | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.