-
Notifications
You must be signed in to change notification settings - Fork 2
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
Offers mockup #16
Merged
Merged
Offers mockup #16
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6f5e96f
Created mockup with KTM SX info
jasiek-net 69d2ae5
Created Form in Detail view
jasiek-net 8eb3e37
Added all fields to DetailForm
jasiek-net 322c5ee
Optional Header in Container (for Detail view)
jasiek-net abce66e
Added icons to DetailForm
jasiek-net b4ff597
Added dummy DetailForm calculation
jasiek-net 06ac667
Style fixes for DetialForm
jasiek-net 33a6976
Added details to Detail View (owener, short description)
jasiek-net 8977095
Added husaberg & freeride to mockup
jasiek-net a73cea4
Implementing routing for mockup offers
jasiek-net 77dac33
Small fixes, all tests pass
jasiek-net 1842c8c
Added hardcoded comments to Detail view
jasiek-net f301525
Small fixes after PR #16
jasiek-net File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,6 @@ ul { | |
max-width: 1120px; | ||
width: 100%; | ||
margin: auto; | ||
display: flex; | ||
box-sizing: border-box; | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.header { | ||
padding: 139px 0 85px 0; | ||
display: flex; | ||
.title { | ||
display: flex; | ||
flex-direction: column; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import * as React from 'react'; | ||
import { | ||
FontIcon, | ||
Paper, | ||
} from 'material-ui'; | ||
import * as _ from 'lodash'; | ||
|
||
export default function Comments(props) { | ||
const stars = _.times(5, i => <FontIcon key={i} className="fa fa-star"/>); | ||
return ( | ||
<div className="comments"> | ||
<Paper style={{ width: '100%' }} zDepth={2} rounded={false}> | ||
<div className="comments-cont"> | ||
<div className="references"> | ||
55 References | ||
</div> | ||
<div className="ratings"> | ||
<div className="row"> | ||
<div className="rate"> | ||
<div className="type">Bike performance</div> | ||
<div className="stars">{stars}</div> | ||
</div> | ||
<div className="rate"> | ||
<div className="type">Communication</div> | ||
<div className="stars">{stars}</div> | ||
</div> | ||
</div> | ||
<div className="row"> | ||
<div className="rate"> | ||
<div className="type">Mechanical condition</div> | ||
<div className="stars">{stars}</div> | ||
</div> | ||
<div className="rate"> | ||
<div className="type">Rating</div> | ||
<div className="stars">{stars}</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="comment"> | ||
<div className="author"> | ||
<div className="picture"></div> | ||
<div className="fullname">Gustaw Mikolajczyk</div> | ||
<div className="location">Warsaw, Poland</div> | ||
</div> | ||
<div className="text"> | ||
The motorcycle looks and rides as described. Mint condition, raw power. | ||
<br/> | ||
I can also recommend the owner, he is my dad. | ||
</div> | ||
</div> | ||
<div className="comment"> | ||
<div className="author"> | ||
<div className="picture"></div> | ||
<div className="fullname">Henryk Mikolajczyk</div> | ||
<div className="location">Warsaw, Poland</div> | ||
</div> | ||
<div className="text"> | ||
Aba. By that I mean a comment which is actually quite in-depth, but I can't really | ||
<br/> | ||
articulate it well just yet, because I am only two years old. | ||
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. 😂 |
||
</div> | ||
</div> | ||
</div> | ||
<div className="view-all"> | ||
<a href="">View all references</a> | ||
</div> | ||
</Paper> | ||
</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
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.
?? what's this for?
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.
It's convenient way to keep images with different dimensions in the same frame (I assume that pictures from users have different sizes)
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.
yep, but do we use it as backgrounds? Is that better then
<img>
?