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
65 changes: 65 additions & 0 deletions assets/header-logo copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions assets/header-logo.svg
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/header-menu-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions components/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!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 -->
<footer class="footer">
<div class="footer footer-container">
<div class="footer-logo"></div>
<div class="footer-nav">
<div class="footer-nav-column">
<a href="#" class="footer-link"></a>
<a href="#" class="footer-link"></a>
<a href="#" class="footer-link"></a>
<a href="#" class="footer-link"></a>
</div>
<div class="footer-nav-column">
<a href="#" class="footer-link"></a>
<a href="#" class="footer-link"></a>
<a href="#" class="footer-link"></a>
<a href="#" class="footer-link"></a>
</div>
</div>
<div class="footer-info">
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Rem, beatae molestiae? Obcaecati nisi distinctio sint saepe natus minus nobis accusantium. Maxime iusto dolores, iure ipsum saepe aliquam sed pariatur ipsam.</p>
<p>social</p>
<div class="footer-icons">icone</div>
</div>

<p>TERMINI E CONDIZIONI</p>

</div>
</footer>
</body>
</html>
28 changes: 23 additions & 5 deletions components/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,31 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="../style.css">
<script type="text/javascript" src="../header.js"></script>
</head>
<body style="min-height: 100vh;">
<!-- component -->
<header class="header">
<div class="container">
header
</div>
</header>
<header class="header header-container">
<div class="header-logo"></div>
<div class="header-nav-container">
<nav class="header-nav" id="dropDownMenu">
<a href="#" class="header-nav-link">BANANA</a>
<a href="#" class="header-nav-link">LAMPONE</a>
<a href="#" class="header-nav-link">FRUTTO DE LA PASSION</a>
<a href="#" class="header-nav-link">KIWI</a>
</nav>

<div class="header-menu" id="buttonMenu" onclick="toggleMenu('dropDownMenu')">

<div class="header-menu header-menu-text">
MENU
</div>

<div class="header-menu header-menu-icon">
<img src="../assets/header-menu-icon.svg">
</div>
</div>
</div>
</header>
</body>
</html>
5 changes: 5 additions & 0 deletions header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function toggleMenu(id) {
var menu = document.getElementById(id);
// document.getElementById('buttonMenu').classList.toggle('close');
menu.classList.toggle('visible');
}
93 changes: 91 additions & 2 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.

Empty file added styles/layouts/flexbox.scss
Empty file.
129 changes: 126 additions & 3 deletions styles/modules/header.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,127 @@
.header {
padding: $base-spacer;
// Variables
$header-primary: #343059;
$header-secondary: #FFC74D;

// Typography
$header-font: Roboto;

html {
box-sizing: border-box;
}

.header.header-container {
height: $base-spacer*4;
background-color: $primary-color;
}
display: flex;
flex-direction: row;
align-items: center;
min-width: 100vw;
background-color: $header-primary;
justify-content: space-between;


.header-logo {
// background-color: blue;
background-image: url(../../assets/header-logo.svg);
background-repeat: no-repeat;
background-size: cover;
margin-left: $base-spacer;
min-width: $base-spacer*10;
min-height: $base-spacer*3;
height: inherit;

}

.header-nav-container {
display: flex;
flex-direction: row;
align-items: center;

.header-nav {
// background-color: green;
display: none;

&.visible {
display: flex;
flex-direction: column;
position: absolute;
top: $base-spacer*4;
right: 0;
align-items: flex-end;
padding: $base-spacer $base-spacer*2;
border-left: 1px solid lighten($header-primary, $amount: 15);
border-right: 1px solid lighten($header-primary, $amount: 15);
border-bottom: 1px solid lighten($header-primary, $amount: 15);
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
background-color: lighten($header-primary, $amount: 20);




.header-nav-link {
color: $header-secondary;
font-family: $header-font;
padding: $base-spacer*0.5;
margin-bottom: $base-spacer*0.3;
text-decoration: none;
text-align: right;
width: 100%;


&:hover {
background-color: lighten($header-primary, $amount: 10);
color: lighten($header-secondary, $amount:30);
}
}
}
}

.header-menu {
display: flex;
flex-direction: row;
margin-right: $base-spacer;
height: $base-spacer*3.6;
// background-color: black;

.header-menu-text {
// background-color: pink;
font-family: $header-font;
font-style: normal;
font-weight: 900;
font-size: $base-spacer*1.5;
line-height: 100%;
letter-spacing: 0.045em;
color: $header-secondary;
align-items: center;
}


.header-menu-icon {
// background-color: red;

img {
height: $base-spacer*1.8;
margin: auto 0;
}
}
}
}

}

@include mobile {
#dropDownMenu {
width: 100vw;
height: (100vh-($base-spacer*4));
justify-content: center;
padding: 0px;

.header-nav-link {
text-align: center;
padding-right: 0px;
max-width: 100vw;
}
}

}
1 change: 1 addition & 0 deletions styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ $base-text-color: rgb(46, 46, 46);
$primary-color: rgb(117, 33, 213);
$secondary-color: rgb(235, 136, 14);


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