-
Notifications
You must be signed in to change notification settings - Fork 0
Components questions #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: refactoring
Are you sure you want to change the base?
Changes from all commits
d7de398
716d117
2ba3655
db45c88
c75a971
7720610
0b583f4
0da9016
35a1c13
e4e5774
6102ad3
c4a0714
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| .container { | ||
| position: relative; | ||
| top: 55px; | ||
| width: 100%; | ||
| max-width: 1120px; | ||
| height: 100vh; | ||
| height: calc(100vh - 110px); | ||
| margin: 0 auto; | ||
| &--small { | ||
| max-width: 845px; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| @import '../../assets/styles/partials/variables'; | ||
|
|
||
| .footer { | ||
| padding: 15px 0; | ||
| a { | ||
| display: flex; | ||
| flex-flow: row nowrap; | ||
| align-items: center; | ||
| justify-content: center; | ||
| color: $border; | ||
| font-size: 11px; | ||
| text-align: center; | ||
| svg { | ||
| path { | ||
| transition: .2s; | ||
| } | ||
| } | ||
| span { | ||
| margin-left: 10px; | ||
| transition: .2s; | ||
| } | ||
| &:hover{ | ||
| svg { | ||
| path { | ||
| opacity: 1; | ||
| fill: $primary; | ||
| } | ||
| } | ||
| span { | ||
| color: $primary; | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import React from 'react'; | ||
| import { GithubIcon } from '../Icons'; | ||
|
|
||
| import styles from './Footer.scss'; | ||
|
|
||
| const Footer = () => ( | ||
| <footer className={styles.footer}> | ||
| <a href="/"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you mean Link |
||
| <GithubIcon /> | ||
| <span>GitHub</span> | ||
| </a> | ||
| </footer> | ||
| ); | ||
|
|
||
| export default Footer; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| @import '../../assets/styles/partials/variables'; | ||
|
|
||
| .header { | ||
| position: absolute; | ||
| position: relative; | ||
| top: 30px; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you mean margin-top and margin-left |
||
| left: 50%; | ||
| z-index: 2; | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import React from 'react'; | ||
|
|
||
| const StartIcon = () => ( | ||
| <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
| <g opacity="0.7"> | ||
| <path d="M16.0002 29.3332C23.364 29.3332 29.3335 23.3636 29.3335 15.9998C29.3335 8.63604 23.364 2.6665 16.0002 2.6665C8.63637 2.6665 2.66683 8.63604 2.66683 15.9998C2.66683 23.3636 8.63637 29.3332 16.0002 29.3332Z" stroke="black" strokeLinecap="round" strokeLinejoin="round" /> | ||
| <path d="M13.3332 10.6665L21.3332 15.9998L13.3332 21.3332V10.6665Z" stroke="black" strokeLinecap="round" strokeLinejoin="round" /> | ||
| </g> | ||
| </svg> | ||
| ); | ||
|
|
||
| export default StartIcon; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import React from 'react'; | ||
| import { useHistory, useParams } from 'react-router-dom'; | ||
| import Container from '../../Container'; | ||
| import Question from '../Question'; | ||
| import Button from '../../Button/Button'; | ||
|
|
||
| import styles from '../Questions.scss'; | ||
|
|
||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. extra line |
||
| const FullQuestion = () => { | ||
| const { id } = useParams(); | ||
| const { goBack } = useHistory(); | ||
| return ( | ||
| <Container className="container--small"> | ||
| <div className={styles.questions}> | ||
| <div className={styles.questions__head}> | ||
| <div className={styles['questions__head-create']}> | ||
| <Button theme="white" onClick={goBack}> | ||
| Назад | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. l18n |
||
| </Button> | ||
| </div> | ||
| </div> | ||
| <div className={styles.questions__wrapper}> | ||
| <Question id={id} extended /> | ||
| </div> | ||
| </div> | ||
| </Container> | ||
| ); | ||
| }; | ||
|
|
||
| export default FullQuestion; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean margin-top