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
Binary file added assets/Shape.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/Shape.svg
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 assets/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions components/banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Banner</title>
<link rel="stylesheet" href="../style.css">
</head>
<body>
<div class="prova"></div>
<section class="banner">
<div class="banner-img"></div>
<div class="banner-content">
<div class="banner-content-items">
<h2 class="banner-content-items-title">Prova contenuto prova prova</h2>
<p class="banner-content-items-subtitle">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sagna aliqua consectetur adipiscing elit, sagna aliquaconsectetur adipiscing elit, sagna aliqua.</p>
</div>
<a href="#" class="banner-content-button">Call to action <span class="banner-content-button-img"></span></a>
</div>
</section>
<div class="prova"></div>
</body>
</html>
68 changes: 68 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.

3 changes: 2 additions & 1 deletion styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
@import "./layouts/container.scss";

//modules
@import "./modules/header.scss";
@import "./modules/header.scss";
@import "./modules/banner.scss";
73 changes: 73 additions & 0 deletions styles/modules/banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
.prova{
min-height: 200vh;
background-color:red;
}
.banner {
background-color: $banner-primary-color;
margin-top: -2.5rem;
margin-left: 2rem;
margin-right: 2rem;
min-height: 5.5rem;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
flex-direction: row;

&-img {
flex: 0.5 1 350px;
background-image: url(../../assets/image.jpg);
background-size: cover;
background-position: center;
width: 200%;
margin: 0 0;
align-self: stretch;
}

&-content {
display:flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
flex: 2 1 320px;
color: $banner-text-color;
margin-left: .5rem;

&-items{
flex:2 1 250px;
margin: 1.5rem 1.5rem;
&-subtitle{
font-size: 12px;
margin-top: .5rem;
}
}

&-button {
color: $banner-text-color;
flex:1 1 175px;
padding: 0.5rem 0.5rem;
margin: 1.25rem 1.25rem;
text-decoration: none;
text-transform: uppercase;
font-weight: bold;
text-align: left;
&-img {
padding: .5rem 1.5rem;
margin: 0 .5rem;
background-image: url(../../assets/Shape.svg);
background-size: cover;
background-position: center;



}
}
}

}
@include mobile {
.banner .banner-img{
height: 10rem;
flex: 0.5 1 auto;
}
}
2 changes: 2 additions & 0 deletions styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
$base-text-color: rgb(46, 46, 46);
$primary-color: rgb(117, 33, 213);
$secondary-color: rgb(235, 136, 14);
$banner-text-color: #343059;
$banner-primary-color: #FFC74D;

// brackepoints
$mobile: 768px;
Expand Down