correcting header
This commit is contained in:
parent
8be6543a3c
commit
eda38247ba
4 changed files with 36 additions and 9 deletions
|
|
@ -7,18 +7,27 @@
|
||||||
padding: 4.58px 13px 4.58px 4.58px;
|
padding: 4.58px 13px 4.58px 4.58px;
|
||||||
margin: 26px 33px 27px 0;
|
margin: 26px 33px 27px 0;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
display: inline-flex;
|
||||||
|
max-width: 100%;
|
||||||
|
min-width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.accountText{
|
.accountText{
|
||||||
|
width: 100%;
|
||||||
|
gap: 9px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-around;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: black;
|
color: black;
|
||||||
width: 100%;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.accountImg{
|
.accountImg{
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
width: 55px;
|
width: 55px;
|
||||||
margin-right: 9px;
|
margin-right: 9px;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
@ -4,6 +4,8 @@ import Account from "../Account/Account.tsx";
|
||||||
import styles from './Header.module.css'
|
import styles from './Header.module.css'
|
||||||
import SurveyPagesList from "../SurveyPagesList/SurveyPagesList.tsx";
|
import SurveyPagesList from "../SurveyPagesList/SurveyPagesList.tsx";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const Header: React.FC = () => {
|
const Header: React.FC = () => {
|
||||||
const [activePage, setActivePage] = useState('Создать опрос');
|
const [activePage, setActivePage] = useState('Создать опрос');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,13 @@
|
||||||
|
|
||||||
.active{
|
.active{
|
||||||
color: #000000;
|
color: #000000;
|
||||||
text-decoration: underline;
|
|
||||||
text-decoration-color: #3881C8;
|
text-decoration-color: #3881C8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.line{
|
||||||
|
border: 1px solid #000000;
|
||||||
|
width: 50%;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0;
|
||||||
|
box-shadow: 0 1px 4px 0 #3881C8;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,18 @@ interface PageSurveyProps{
|
||||||
const PageSurvey: React.FC<PageSurveyProps> = ({name, isActive, onClick}) => {
|
const PageSurvey: React.FC<PageSurveyProps> = ({name, isActive, onClick}) => {
|
||||||
return (
|
return (
|
||||||
<li className={styles.pagesSurveyItem}>
|
<li className={styles.pagesSurveyItem}>
|
||||||
<button className={`${styles.pageSurvey} ${isActive ? styles.active : ''}`} onClick={onClick}>
|
{isActive ? (
|
||||||
{name}
|
<>
|
||||||
</button>
|
<button className={`${styles.pageSurvey} ${styles.active}`} onClick={onClick}>
|
||||||
|
{name}
|
||||||
|
</button>
|
||||||
|
<hr className={styles.line}/>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<button className={`${styles.pageSurvey}`} onClick={onClick}>
|
||||||
|
{name}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue