-
Notifications
You must be signed in to change notification settings - Fork 78
Update designs of project page to be responsive #1049
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
Changes from all commits
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,5 +1,5 @@ | ||
| .container { | ||
| max-width: 1040px; | ||
| max-width: 1200px; | ||
| margin: 0 auto; | ||
| padding: 0 10px; | ||
| height: 100%; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,4 @@ | ||
| .project-long-description { | ||
| @include span-columns(8); | ||
| } | ||
|
|
||
| .long-description { | ||
|
Contributor
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. Also remove the class in the component js file?
Contributor
Author
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. I didn't remove that because I like to keep the component 1-1 with classes, even if it doesn't have styling. |
||
| @include span-columns(12); | ||
|
|
||
| &.empty { | ||
| background: $background-gray; | ||
| border-radius: 6px; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,10 +5,23 @@ | |
|
|
||
| .project-main { | ||
| @include span-columns(8); | ||
| @include media($lg-screen) { | ||
|
Contributor
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. Just for my knowledge, where does the
Contributor
Author
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. Just normal media breakpoints. Browser behavior comes into play here. |
||
| @include span-columns(7); | ||
| } | ||
| @include media($md-screen) { | ||
| @include span-columns(12); | ||
| } | ||
| } | ||
|
|
||
| .project-sidebar { | ||
| @include span-columns(4); | ||
| @include media($lg-screen) { | ||
| @include span-columns(5); | ||
| } | ||
| @include media($md-screen) { | ||
| @include span-columns(12); | ||
| } | ||
|
|
||
| .project-sidebar__section { | ||
| margin: 40px 0; | ||
| &:first-child { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,14 @@ | ||
| <div class="information"> | ||
| <div class="amount"> | ||
| <div class="value">{{format-currency amountDonated trimZero=true}}</div> | ||
| <div class="description">given each month</div> | ||
| {{progress-bar-container percentage=percentage}} | ||
| <div class="donation-progress__details"> | ||
| <div class="donation-progress__details__amount"> | ||
| <div class="donation-progress__details__amount__value">{{format-currency amountDonated trimZero=true}}</div> | ||
| <div class="donation-progress__details__amount__label">given each month</div> | ||
| </div> | ||
| <div class="percentage"> | ||
| <div class="value">{{format-percentage percentage trimZero=true}}</div> | ||
| <div class="description">of {{format-currency donationGoal.amount trimZero=true}} goal</div> | ||
| <div class="donation-progress__details__percentage"> | ||
| <div class="donation-progress__details__percentage__value">{{format-percentage percentage trimZero=true}}</div> | ||
| <div class="donation-progress__details__percentage__label">of {{format-currency donationGoal.amount trimZero=true}} goal</div> | ||
| </div> | ||
| </div> | ||
| {{progress-bar-container percentage=percentage}} | ||
| <p class="donation-progress__description-header"> | ||
| Current Goal | ||
| </p> | ||
| <p class="donation-progress__description"> | ||
| {{description}} | ||
| </p> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,13 +9,14 @@ | |
| <div class="container"> | ||
| <div class="project-wrapper"> | ||
|
|
||
| {{project-long-description project=project}} | ||
| <div class="project-main"> | ||
| {{project-long-description project=project}} | ||
|
Contributor
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. Include this tag and class in the component js?
Contributor
Author
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. There may be more things that go into the main area.
Contributor
Author
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. See the sidebar below to see what I mean. |
||
| </div> | ||
|
|
||
| <aside class="project-sidebar"> | ||
|
|
||
| {{#if project.donationsActive}} | ||
| <section class="project-sidebar__section"> | ||
| <h4>Donations</h4> | ||
| {{donations/donation-progress | ||
| amountDonated=project.totalMonthlyDonated | ||
| donationGoal=project.currentDonationGoal | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,21 @@ | ||
| {{task-header task=task saveTask=(action 'saveTask')}} | ||
| {{task-status task=task}} | ||
| <div class="container"> | ||
| {{task-header task=task saveTask=(action 'saveTask')}} | ||
| {{task-status task=task}} | ||
|
|
||
| <div class="task-wrapper"> | ||
| <div class="task-timeline"> | ||
| {{task-details task=task saveTask=(action 'saveTask')}} | ||
| {{task-comment-list comments=comments onSaveError=(action 'onSaveError')}} | ||
| <div> | ||
| {{#create-comment-form comment=newComment save=(action 'saveComment')}} | ||
| {{#if (can "edit task" task)}}{{task-status-button task=task}}{{/if}} | ||
| {{/create-comment-form}} | ||
| {{#if error}} | ||
| {{error-formatter error=error}} | ||
| {{/if}} | ||
| <div class="task-wrapper"> | ||
| <div class="task-timeline"> | ||
| {{task-details task=task saveTask=(action 'saveTask')}} | ||
| {{task-comment-list comments=comments onSaveError=(action 'onSaveError')}} | ||
| <div> | ||
| {{#create-comment-form comment=newComment save=(action 'saveComment')}} | ||
| {{#if (can "edit task" task)}}{{task-status-button task=task}}{{/if}} | ||
| {{/create-comment-form}} | ||
| {{#if error}} | ||
| {{error-formatter error=error}} | ||
| {{/if}} | ||
| </div> | ||
| </div> | ||
| <div class="task-sidebar"> | ||
| </div> | ||
| </div> | ||
| <div class="task-sidebar"> | ||
| </div> | ||
| </div> |
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.
Is the last
nhere the placeholder that was supposed to be taken out?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.
No this is the
_x_n-th item we want that to happen on. That means it repeats.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.
Ahh gotcha, makes sense