feat: design homepage based on figma design

This commit is contained in:
Khaleel Gibran
2021-05-01 18:51:44 +05:30
parent 59dba7730f
commit 67d3ec75c8
4 changed files with 33 additions and 8 deletions

View File

@@ -32,7 +32,6 @@
body {
padding: 0px;
margin: 0px;
background: white;
}
.course-header {
@@ -40,7 +39,14 @@ body {
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 {
@@ -290,3 +296,9 @@ img.profile-photo {
margin-left: 5%;
display: inline-block;
}
.display-4 {
color: #2D005A;
font-weight: 600;
line-height: 51px;
}

View File

@@ -1,14 +1,21 @@
@primary-color: #08B74F;
@import url('https://rsms.me/inter/inter.css');
body {
font-family: "Inter", sans-serif;
}
.teaser {
background: white;
border-radius: 10px;
border: 1px solid #ddd;
border-radius: 9px;
border: 1px solid #C4C4C4;
}
.sketch-teaser {
.teaser();
width: 220px;
margin-bottom: 30px;
margin-top: 30px;
svg {
width: 200px;
@@ -18,8 +25,9 @@
padding: 10px;
}
.sketch-footer {
border-top: 1px solid#C4C4C4;
padding: 10px;
background: #eee;
background: #F6F6F6;
border-radius: 0px 0px 10px 10px;
}
}
@@ -27,6 +35,8 @@
.course-teaser {
.teaser();
color: #444;
margin-bottom: 20px;
margin-top: 20px;
h3, h4 {
color: black;
@@ -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 {