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/arrow_right.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 assets/pong.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions components/carousel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!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;">
<section class="carousel">
<div class="carousel-intro">
<h2 class="carousel-intro-title">Cum Ceteribus</h2>
<p class="carousel-intro-subtitle"> Lorem ipsum, dolor sit amet consectetur adipisicing elit. <br>
Minus, officia corporis iusto vero ratione labore, placeat rem facere quod ut, eligendi voluptas
sapiente eos. Deserunt eius impedit sunt ipsam cum! </p>
</div>
<div class="carousel-container">
<div class="carousel-card">
<div class="carousel-card-image"></div>
<h6 class="carousel-card-title"> Titolo Iconcina </h6>
</div> <div class="carousel-card">
<div class="carousel-card-image"></div>
<h6 class="carousel-card-title"> Titolo Iconcina </h6>
</div> <div class="carousel-card">
<div class="carousel-card-image"></div>
<h6 class="carousel-card-title"> Titolo Iconcina </h6>
</div> <div class="carousel-card">
<div class="carousel-card-image"></div>
<h6 class="carousel-card-title"> Titolo Iconcina </h6>
</div>
<div class="carousel-card">
<div class="carousel-card-image"></div>
<h6 class="carousel-card-title"> Titolo Iconcina </h6>
</div>
</div>
<div class="carousel-button">
<a class="carousel-button-action"><b>Call to action</b><div class="carousel-button-icon"> </div></a>
</div>
</section>
</body>

</html>
53 changes: 53 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.

60 changes: 60 additions & 0 deletions styles/layouts/container_carousel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
.carousel {
padding: 2rem;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: column;
background-color: $backgroundcolor;
color: #343059;

&-intro{
text-align: center;
padding: 2rem;

&-title{
padding: 1rem;
}
}

&-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;

}

&-card{
padding: 0 2rem 0 2rem;

&-image{
background-image: url('./assets/pong.jpg');
background-size: cover;
background-repeat: no-repeat;
width: 5rem;
height: 5rem;
border-radius: 5px;
box-shadow: 2px 2px 5px rgb(148, 147, 147);
}

&-title {
text-align: center;
}
}

&-button{
padding: 2rem;
font-style: uppercase;
display: flex;
flex-direction: row;
flex-wrap: wrap;
&-icon{
background-image: url('./assets/arrow_right.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
width: 2rem;
height: 1rem;
}
}
}
1 change: 1 addition & 0 deletions styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

//layouts
@import "./layouts/container.scss";
@import "./layouts/container_carousel.scss";

//modules
@import "./modules/header.scss";
4 changes: 4 additions & 0 deletions styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ $base-text-color: rgb(46, 46, 46);
$primary-color: rgb(117, 33, 213);
$secondary-color: rgb(235, 136, 14);

// carousel-colours
$backgroundcolor: #f0edec;
$carousel-text-color: #343059;

// brackepoints
$mobile: 768px;
$tablet: 1024px;
Expand Down