Skip to content
Open
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
3 changes: 3 additions & 0 deletions 1_blog_cards/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ body {
overflow: hidden;
width: 300px;
}
.card:hover{
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.card-header img {
object-fit: cover;
Expand Down
108 changes: 108 additions & 0 deletions 1_blog_cards/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

* {
box-sizing: border-box;
}

body {
background-color: #f7f8fc;
font-family: 'Open Sans', sans-serif;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
}

.container {
/* CHANGE TO GRID */
display: grid;
grid-template-columns: repeat(3, 1fr);
justify-items: center;
grid-gap: 20px;
width: 940px;
max-width: 100%;
margin: auto;
}

.card {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
overflow: hidden;
width: 300px;
}
.card:hover{
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.card-header img {
object-fit: cover;
height: 200px;
width: 100%;
}

.card-body {
display: flex;
flex-direction: column;
align-items: start;
padding: 20px;
min-height: 250px;
}

.card-body h4 {
margin: 10px 0;
}

.card-body p {
font-size: 13px;
margin: 0 0 40px;
}

.tag {
background-color: #fff;
border-radius: 50px;
font-size: 12px;
color: #fff;
margin: 0;
padding: 2px 10px;
text-transform: uppercase;
}

.tag-teal {
background-color: #92d4e4;
}

.tag-purple {
background-color: #3d1d94;
}

.tag-pink {
background-color: #c62bcb;
}

.user {
display: flex;
margin-top: auto;
}

.user img {
border-radius: 50%;
margin-right: 10px;
height: 40px;
width: 40px;
}

.user-info h5 {
margin: 0;
}

.user-info small {
color: #888785;
}

@media (max-width: 940px) {
.container {
grid-template-columns: 1fr;
}
}
137 changes: 137 additions & 0 deletions 2_login/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
$color_1: #141c2c;
$color_2: #2762eb;
$color_3: #7a7e8c;
$color_4: #fff;
$font-family_1: 'Open Sans', sans-serif;
$font-family_2: inherit;
$background-color_1: #f7f8fc;
$background-color_2: #fff;
$background-color_3: transparent;
$background-color_4: #141c2c;
$border-color_1: #ecf2ff;

@import "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap";
* {
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: $background-color_1;
color: $color_1;
font-family: $font-family_1;
margin: 0;
}
a {
color: $color_2;
text-decoration: none;
}
.container {
background-color: $background-color_2;
border-radius: 3px;
border: 20px solid #dce7ff;
width: 1000px;
box-shadow: 0 4px 5px rgba(0,0,0,0.1);
display: flex;
}
form {
border-right: 1px solid #ecf2ff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
flex: 1;
}
.form-control {
margin: 10px 0;
width: 100%;
}
label {
display: inline-block;
font-weight: bold;
margin-bottom: 5px;
}
input {
&:not([type="checkbox"]) {
background-color: $background-color_3;
border: 2px solid #ecf2ff;
border-radius: 3px;
font-family: $font-family_2;
font-size: 14px;
padding: 10px;
width: 100%;
}
}
.checkbox-container {
display: flex;
justify-content: space-between;
font-size: 14px;
margin-bottom: 15px;
width: 100%;
a {
margin-left: auto;
}
label {
color: $color_3;
font-weight: normal;
}
}
.btn {
cursor: pointer;
background-color: $background-color_4;
border: 2px solid #141c2c;
border-radius: 3px;
color: $color_4;
display: flex;
align-items: center;
justify-content: center;
font-family: $font-family_2;
font-weight: bold;
font-size: 14px;
padding: 10px;
margin: 20px 0;
width: 100%;
img {
margin-right: 5px;
width: 20px;
}
}
.btn-ghost {
background-color: $background-color_3;
border-color: $border-color_1;
color: $color_1;
}
.features {
flex: 1.5;
padding: 40px;
}
.feature {
position: relative;
padding-left: 30px;
margin: 40px 0;
i {
color: $color_2;
position: absolute;
top: 5px;
left: 0;
}
h3 {
margin: 0;
}
p {
font-size: 14px;
line-height: 1.8;
margin: 5px 0;
}
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}
form {
border-right: 0;
}
}
Loading