forked from TheOdinProject/theodinproject
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak skills progress section in user dashboard
- Loading branch information
Showing
8 changed files
with
145 additions
and
162 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
app/assets/stylesheets/components/dashboard/course_button.scss
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,11 @@ | ||
.course-button { | ||
@include media-breakpoint-down(sm) { | ||
margin-top: 20px; | ||
text-align: center; | ||
} | ||
|
||
&--completed { | ||
font-size: 1.2rem; | ||
color: $button-primary; | ||
} | ||
} |
75 changes: 75 additions & 0 deletions
75
app/assets/stylesheets/components/dashboard/dashboard.scss
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,75 @@ | ||
#dashboard { | ||
.profile-card { | ||
margin-bottom: 100px; | ||
|
||
.user-avatar { | ||
width:100px; | ||
height:100px; | ||
margin: 0 auto 0 0; | ||
background-color:#fff; | ||
border-radius:50%; | ||
overflow: hidden; | ||
|
||
@include media-breakpoint-down(sm) { | ||
margin: 0 auto; | ||
} | ||
} | ||
|
||
.user-avatar-img { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: contain; | ||
} | ||
|
||
.welcome-text { | ||
@include media-breakpoint-down(sm) { | ||
text-align: center; | ||
} | ||
color: $text-primary; | ||
font-size: 24px; | ||
margin-top: 20px; | ||
padding-bottom: 18px; | ||
} | ||
|
||
.info { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
|
||
@include media-breakpoint-down(sm) { | ||
text-align: center; | ||
} | ||
|
||
.learning-goal { | ||
a { | ||
text-decoration: underline; | ||
color: $grey; | ||
} | ||
@include word-wrap(); | ||
} | ||
|
||
.completion-date { | ||
margin-top: 20px; | ||
} | ||
} | ||
|
||
&.card-main .row { | ||
align-items: center; | ||
} | ||
} | ||
|
||
.skills-progress { | ||
.skills-progress-heading { | ||
margin-bottom: 100px; | ||
|
||
&__sub-heading { | ||
width: 60%; | ||
margin: 0 auto; | ||
|
||
@include media-breakpoint-down(md) { | ||
width: 90%; | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
app/assets/stylesheets/components/dashboard/project_submissions.scss
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,14 @@ | ||
.project-submissions { | ||
@include box-shadow(0 2px 4px 0 rgba(0, 0, 0, 0.3)); | ||
margin-top: 100px; | ||
margin-bottom: 100px; | ||
padding: 60px; | ||
|
||
.solutions-heading { | ||
margin-bottom: 70px; | ||
} | ||
|
||
@include media-breakpoint-down(sm) { | ||
padding: 30px; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
app/assets/stylesheets/components/dashboard/skill_progress.scss
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,31 @@ | ||
.skill-progress { | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.1); | ||
margin-bottom: 30px; | ||
padding-bottom: 30px; | ||
|
||
.course-info { | ||
@include media-breakpoint-down(sm) { | ||
text-align: center; | ||
} | ||
} | ||
|
||
&__course-title { | ||
font-size: 18px; | ||
|
||
@include media-breakpoint-down(sm) { | ||
text-align: center; | ||
padding-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
} | ||
|
||
&__course-title, &__lessons-count { | ||
color: $grey; | ||
} | ||
|
||
@include media-breakpoint-down(sm) { | ||
.course-badge { | ||
width: 80px; | ||
} | ||
} | ||
} |
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