Skip to content
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

feat: design homepage based on figma design #53

Merged
merged 1 commit into from
May 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion community/lms/widgets/CourseTeaser.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h3 class="course-title"><a href="/courses/{{ course.slug }}">{{ course.title }}
</div>
<div class="course-footer">
<div class="course-author">
{{ course.get_instructor().full_name }}
<img class="course-author-avatar" src="{{ course.get_instructor().avatar }}" />{{ course.get_instructor().full_name }}
</div>
</div>
</div>
16 changes: 14 additions & 2 deletions community/public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,21 @@
body {
padding: 0px;
margin: 0px;
background: white;
}

.course-header {
margin-top: 20px;
padding: 20px;
background: var(--header-bg);
color: var(--header-color);
border-radius: 10px;
border-radius: 9px;
}

.course-author-avatar {
width: 20px;
height: 20px;
border-radius: 50%;
margin-right: 20px;
}

.course-header h1 {
Expand Down Expand Up @@ -290,3 +296,9 @@ img.profile-photo {
margin-left: 5%;
display: inline-block;
}

.display-4 {
color: #2D005A;
font-weight: 600;
line-height: 51px;
}
21 changes: 17 additions & 4 deletions community/public/css/style.less
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
@primary-color: #08B74F;
@import url('https://rsms.me/inter/inter.css');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer not to have external dependencies. Could you please add the css and the fonts to public/ folder?


body {
font-family: "Inter", sans-serif;
}

.teaser {
background: white;
border-radius: 10px;
border: 1px solid #ddd;
border-radius: 9px;
border: 1px solid #C4C4C4;
khalby786 marked this conversation as resolved.
Show resolved Hide resolved
}

.sketch-teaser {
.teaser();
width: 220px;
margin-bottom: 30px;
margin-top: 30px;

svg {
width: 200px;
Expand All @@ -18,15 +25,18 @@
padding: 10px;
}
.sketch-footer {
border-top: 1px solid#C4C4C4;
padding: 10px;
background: #eee;
background: #F6F6F6;
border-radius: 0px 0px 10px 10px;
}
}

.course-teaser {
.teaser();
color: #444;
margin-bottom: 20px;
margin-top: 20px;

h3, h4 {
color: black;
Expand Down Expand Up @@ -57,10 +67,13 @@ section {

section h2 {
margin-bottom: 40px;
font-size: 48px;
line-height: 58px;
font-weight: bold;
}

section.lightgray {
background: #f8f8f8;
background: #F6F6F6;
}

#hero .jumbotron {
Expand Down
2 changes: 1 addition & 1 deletion community/www/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<section id="hero">
<div class="container">
<div class="jumbotron">
<h1 class="display-4">Guided online courses, with a mentor at your back.</h1>
<h1 class="display-4">Guided online courses, with a <br />mentor at your back.</h1>
khalby786 marked this conversation as resolved.
Show resolved Hide resolved
<p class="lead">Hands-on online courses designed by experts, delivered by passionate mentors.</p>
<p class="lead">
<a class="btn btn-primary btn-lg" href="#" role="button">Request Invite</a>
Expand Down