-
Notifications
You must be signed in to change notification settings - Fork 36
Даминов Нодир М3339 #31
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
Open
DaminovN
wants to merge
3
commits into
itmo2019:master
Choose a base branch
from
DaminovN:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,27 +1,98 @@ | ||
| .app { | ||
| text-align: center; | ||
| @font-face { | ||
| font-family: YandexSansBold; | ||
| font-weight: 700; | ||
| src: url("../fonts/YandexSansDisplay-Bold.ttf"); | ||
| } | ||
|
|
||
| .app-header { | ||
| display: flex; | ||
| min-height: 100vh; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| background-color: #282c34; | ||
| color: #fff; | ||
| font-size: calc(10px + 2vmin); | ||
| @font-face { | ||
| font-family: YandexSansThin; | ||
| src: url("../fonts/YandexSansDisplay-Thin.ttf"); | ||
| } | ||
|
|
||
| .app-link { | ||
| color: #61dafb; | ||
| @font-face { | ||
| font-family: HelveticaNeueLight; | ||
| src: url("../fonts/HelveticaNeueCyr-Light.otf"); | ||
| } | ||
|
|
||
| @keyframes app-logo-spin { | ||
| from { | ||
| transform: rotate(0deg); | ||
| @font-face { | ||
| font-family: HelveticaNeue; | ||
| src: url("../fonts/HelveticaNeueCyr-Medium.otf"); | ||
| } | ||
|
|
||
| .page { | ||
| position: relative; | ||
| min-width: 800px; | ||
| padding-right: 20px; | ||
| min-height: 100%; | ||
| } | ||
|
|
||
| ul{ | ||
| list-style-type: none; | ||
| } | ||
|
|
||
| a, a:active, a:visited, a:hover { | ||
| color: unset; | ||
| text-decoration: none; | ||
| position: unset !important; | ||
| } | ||
|
|
||
| .page_inline{ | ||
| display: inline; | ||
| text-decoration-color: red; | ||
| } | ||
|
|
||
| .page_text-overflow_hide{ | ||
| overflow: hidden; | ||
| text-overflow: ellipsis; | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| .page_visibility_hide{ | ||
| visibility: hidden; | ||
| } | ||
|
|
||
| .page_checkbox{ | ||
| width: 16px; | ||
| height: 16px; | ||
| } | ||
|
|
||
| .create_animation{ | ||
| animation: add 1s forwards; | ||
| } | ||
|
|
||
| .delete_animation{ | ||
| animation: remove 1s forwards; | ||
| } | ||
|
|
||
| @keyframes add{ | ||
| 0%{ | ||
| height: 0; | ||
| opacity: 0; | ||
| } | ||
|
|
||
| 50%{ | ||
| height: 500px; | ||
| opacity: 0.5; | ||
| } | ||
| to { | ||
| transform: rotate(360deg); | ||
|
|
||
| 100%{ | ||
| opacity: 1; | ||
| } | ||
| } | ||
|
|
||
| @keyframes remove{ | ||
| 0%{ | ||
| height: 22px; | ||
| opacity: 1; | ||
| } | ||
|
|
||
| 50%{ | ||
| height: 500px; | ||
| opacity: 0.5; | ||
| } | ||
|
|
||
| 100%{ | ||
| height: 0px; | ||
| opacity: 0; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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,8 @@ | ||
| .page__header { | ||
| display: inline-block; | ||
| width: 100%; | ||
| height: 31px; | ||
| position: relative; | ||
| margin-top: 13px; | ||
| margin-bottom: 13px; | ||
| } |
This file contains hidden or 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,21 @@ | ||
| import React, { Component } from 'react'; | ||
|
|
||
| import './header.css'; | ||
|
|
||
| import Menu from './menu/menu'; | ||
| import YaMailLogo from './ya-mail-logo/ya-mail-logo'; | ||
| import SearchBar from './search-bar/search-bar'; | ||
| import MessageCreator from './message-creator/message-creator'; | ||
|
|
||
| export class Header extends Component { | ||
| render() { | ||
| return ( | ||
| <header className="page__header"> | ||
| <Menu /> | ||
| <YaMailLogo /> | ||
| <SearchBar /> | ||
| <MessageCreator createMessage={this.props.createMessage} /> | ||
| </header> | ||
| ); | ||
| } | ||
| } |
This file contains hidden or 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,9 @@ | ||
| .page__ya-menu-logo{ | ||
| margin-left: 22px; | ||
| } | ||
|
|
||
| .page__sidebar-menu{ | ||
| position: relative; | ||
| vertical-align: bottom; | ||
| bottom: 3px; | ||
| } |
This file contains hidden or 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 @@ | ||
| import React from 'react'; | ||
|
|
||
| import './menu.css'; | ||
|
|
||
| import SidebarMenu from '../../../images/sidebar-menu.png'; | ||
|
|
||
| function Menu() { | ||
| return ( | ||
| <div className="page_inline page__ya-menu-logo"> | ||
| <a href="/"> | ||
| <img className="page__sidebar-menu" src={SidebarMenu} alt="menu" width="25" height="29" /> | ||
| </a> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default Menu; |
This file contains hidden or 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,7 @@ | ||
| .page__message-creator { | ||
| display: inline-block; | ||
| position: relative; | ||
| left: 18%; | ||
| opacity: 0.5; | ||
| cursor: pointer; | ||
| } |
This file contains hidden or 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 React from 'react'; | ||
|
|
||
| import './message-creator.css'; | ||
|
|
||
| class MessageCreator extends React.Component { | ||
| render() { | ||
| return ( | ||
| <button className="page__message-creator" type="button" onClick={this.props.createMessage}> | ||
| New Mail | ||
| </button> | ||
| ); | ||
| } | ||
| } | ||
|
|
||
| export default MessageCreator; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Бизнес-логику лучше отделять от UI