-
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.
- Loading branch information
Showing
10 changed files
with
247 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.selector { | ||
display: flex; | ||
flex-flow: row nowrap; | ||
padding: 16px; | ||
margin-top: 24px; | ||
margin-bottom: 24px; | ||
justify-content: space-around; | ||
border-top: 2px solid rgba(0, 0, 0, 0.1); | ||
border-bottom: 2px solid rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.selectorItem { | ||
font-size: var(--font-size-l); | ||
cursor: pointer; | ||
} | ||
|
||
.selected { | ||
color: var(--main-color-contrast); | ||
font-weight: 600; | ||
} | ||
|
||
.filtersHeader { | ||
color: var(--placeholder-color); | ||
} | ||
|
||
.filters { | ||
display: flex; | ||
flex-flow: row nowrap; | ||
gap: 24px; | ||
margin-top: 8px; | ||
} | ||
|
||
.inputContainer { | ||
display: flex; | ||
flex-flow: column nowrap; | ||
gap: 8px; | ||
flex: 1 0 auto; | ||
} | ||
|
||
.inputContainer select { | ||
width: 100%; | ||
} | ||
|
||
.grid { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | ||
gap: 32px; | ||
margin-top: 40px; | ||
} |
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,72 @@ | ||
'use client' | ||
|
||
import { useDispatch, useSelector } from "react-redux"; | ||
import { ApplicationCard } from "@components/ApplicationCard" | ||
import styles from "./page.module.css"; | ||
import cn from 'classnames'; | ||
|
||
export default function Applications() { | ||
return (<> | ||
<title>Заявки на донацию - petdonor.ru</title> | ||
<main> | ||
<h1 className='header'>Заявки на донацию</h1> | ||
<div className={styles.selector}> | ||
<div className={cn(styles.selected, styles.selectorItem)}>Мои заявки</div> | ||
<div className={styles.selectorItem}>Все заявки</div> | ||
</div> | ||
<h2 className={styles.filtersHeader}>Фильтры</h2> | ||
<div className={styles.filters}> | ||
<div className={styles.inputContainer}> | ||
<label className={styles.label}>Тип животного</label> | ||
<select className="input"> | ||
<option>Любой</option> | ||
<option>Кошка</option> | ||
<option>Собака</option> | ||
</select> | ||
</div> | ||
<div className={styles.inputContainer}> | ||
<label className={styles.label}>Группа крови</label> | ||
<select className="input"> | ||
<option>Любая</option> | ||
<option>112312</option> | ||
<option>5643tdca</option> | ||
</select> | ||
</div> | ||
<div className={styles.inputContainer}> | ||
<label className={styles.label}>Город</label> | ||
<select className="input"> | ||
<option>Любой</option> | ||
<option>Санкт-Петербург</option> | ||
<option>Москва</option> | ||
</select> | ||
</div> | ||
<div className={styles.inputContainer}> | ||
<label className={styles.label}>Район</label> | ||
<select className="input"> | ||
<option>Любой</option> | ||
<option>Санкт-Петербург</option> | ||
<option>Москва</option> | ||
</select> | ||
</div> | ||
</div> | ||
<div className={styles.grid}> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
<ApplicationCard/> | ||
</div> | ||
</main> | ||
</>); | ||
} |
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,34 @@ | ||
import styles from './styles.module.css'; | ||
|
||
export const ApplicationCard = () => { | ||
return ( | ||
<div className={styles.card}> | ||
<div className={styles.row}> | ||
<div className={styles.label}>Тип животного</div> | ||
<div className={styles.value}>Кошка</div> | ||
</div> | ||
<div className={styles.row}> | ||
<div className={styles.label}>Группа крови</div> | ||
<div className={styles.value}>15432</div> | ||
</div> | ||
<div className={styles.row}> | ||
<div className={styles.label}>Город</div> | ||
<div className={styles.value}>Омск</div> | ||
</div> | ||
<div className={styles.row}> | ||
<div className={styles.label}>Район</div> | ||
<div className={styles.value}>из которого не возвращаются</div> | ||
</div> | ||
<div className={styles.row}> | ||
<div className={styles.label}>Кол-во крови</div> | ||
<div className={styles.value}>1847 мл</div> | ||
</div> | ||
<div className={styles.row}> | ||
<div className={styles.label}>Актуально до</div> | ||
<div className={styles.value}>27.03.2004</div> | ||
</div> | ||
<div className={styles.button}>Редактировать</div> | ||
<div className={styles.button}>Удалить</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.card { | ||
box-shadow: 0px 3px 5px 1px var(--box-shadow-color-light); | ||
border: solid 1px var(--border-color); | ||
background-color: var(--main-color); | ||
border-radius: var(--border-radius); | ||
|
||
display: flex; | ||
flex-direction: column; | ||
align-items: stretch; | ||
row-gap: 16px; | ||
|
||
padding: 24px; | ||
} | ||
|
||
.row { | ||
display: flex; | ||
flex-flow: row nowrap; | ||
gap: 8px; | ||
} | ||
|
||
.label { | ||
flex: 1 0 auto; | ||
color: var(--placeholder-color); | ||
} | ||
|
||
.value { | ||
text-align: right; | ||
} | ||
|
||
.button { | ||
text-align: center; | ||
} |
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
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