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
21 changes: 21 additions & 0 deletions components/banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="../style.css">
</head>
<body style="min-height: 100vh;">
<!-- component -->
<section class="banner">
<div class="banner-img"></div>
<div class="banner-content">
<h3 class="banner-content-title">Tristique senectus et netus</h3>
<p class="banner-content-subtitle">Ut enim ad minim veniam, quis nostrud exercitation recedendum est omnis divisa in partes tres, quarum.</p>
</div>
<a href="#" class="banner-button">call to action<img src="../styles/assets/next.png" alt="#" width="15px" height="15px"></a>
</div>
</section>
</body>
</html>
34 changes: 34 additions & 0 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added styles/assets/Rectangle 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added styles/assets/next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
@import "./layouts/container.scss";

//modules
@import "./modules/header.scss";
@import "./modules/header.scss";

@import "./modules/banner.scss";
37 changes: 37 additions & 0 deletions styles/modules/banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
html {
font-family: "Roboto", sans-serif, serif;
color: #343059;
}

.banner {
background-color: #ffc74d;
display: flex;
flex-direction: raw;
margin-left: 2rem;
margin-right: 2rem;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;

&-img {
flex: 0.5 1 auto;
background-image: url("../styles/assets/Rectangle 2.png");
background-size: cover;
background-position: left center;
width: 200px;
height: 8rem;
align-self: stretch;
}

&-content {
margin: 0 auto;
width: 515px;
}

&-button {
text-decoration: none;
text-transform: uppercase;
color: #343059;
}
}