Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>WEB5 - Desenvolvimento Web e Mobile.</title>
- <link rel="stylesheet" type="text/css" href="css/style.css">
- <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- </head>
- <body>
- <header>
- <nav class="nav-bar">
- <ul>
- <li><a href="#">Home</a></li>
- <li><a href="#">Nossos Serviços</a></li>
- <li><a href="#">Nosso time</a></li>
- <li><a href="#">Contato</a></li>
- </ul>
- </nav>
- <div class="hamburguer-menu"><div class="holder"></div></div>
- </header>
- <nav class="nav-mobile">
- <ul class="nav-content">
- <li><a href="#">Home</a></li>
- <li><a href="#">Nossos Serviços</a></li>
- <li><a href="#">Nosso time</a></li>
- <li><a href="#">Contato</a></li>
- </ul>
- </nav>
- <div class="container">
- <div class="row">
- <div class="col-md-12 first-section" style="text-align:center; margin:0 auto;">
- <div class="text-content" style="text-align:center;">
- <h1 style="width:391px;">WE CODE</h1>
- <h1 style="width:475px">WE CREATE</h1>
- <h1 style="width:575px">WE ARE <span style="color:rgba(255, 235, 59,1.0);">WEB5</span></h1></h1>
- </div>
- </div>
- </div>
- </div>
- <script
- src="https://code.jquery.com/jquery-3.1.1.min.js"
- integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
- crossorigin="anonymous"></script>
- <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <script type="text/javascript" src="js/app.js"></script>
- </body>
- </html>
- *** CSS ***
- @import url('https://fonts.googleapis.com/css?family=Roboto+Condensed');
- @import url('https://fonts.googleapis.com/css?family=Nunito:400,800');
- *{
- padding: 0px;
- margin: 0px;
- box-sizing: border-box;
- }
- html, body{
- padding: 0px;
- margin: 0px
- }
- .container{
- min-width: 100%;
- position: relative;
- display: block;
- }
- header{
- width: 100%;
- background-color: black;
- position: fixed;
- height: 50px;
- z-index: 666;
- }
- nav{
- min-width: auto;
- }
- ul li {
- display: inline-block;
- padding: 16px;
- top: -4px;
- font-size: 17px;
- font-family: 'Roboto Condensed', sans-serif;
- overflow: hidden;
- list-style-type: none;
- text-decoration: none;
- position: relative;
- }
- li{
- left: 850px;
- }
- li a{
- color: white;
- text-decoration: none;
- }
- li a:hover{
- color: white;
- text-decoration: none;
- }
- li a:active{
- color: white;
- text-decoration: none;
- }
- li a:hover{
- color: white;
- text-decoration: none;
- }
- li a:target{
- color: white;
- text-decoration: none;
- }
- li a:link{
- color: white;
- text-decoration: none;
- }
- li a:visited{
- color: white;
- text-decoration: none;
- }
- li a::after{
- content: '';
- display: block;
- position: relative;
- width: 0%;
- margin: 0 auto;
- background-color: transparent;
- height: 2px;
- transition: 0.75s ease;
- }
- li a:hover:after{
- width: 100%;
- background-color: rgba(255, 235, 59,1.0);
- }
- .nav-mobile{
- width: auto;
- height: 0px;
- background-color: black;
- transition: 0.75s ease;
- }
- .nav-content{
- position: relative;
- top: 45px;
- width: auto;
- }
- .nav-content li a{
- color: white;
- top: 15px;
- position: relative;
- width: 50px;
- }
- .nav-content li{
- margin: 0 auto;
- display: block;
- left: 0px;
- text-align: center;
- position: relative;
- width: 150px;
- height: 0px;
- }
- .hamburguer-menu{
- width: 35px;
- height: 4px;
- background-color: #FFC107;
- float: right;
- right: 45px;
- position: relative;
- top: 3px;
- display: none;
- transition: 0.25s linear;
- cursor: pointer;
- z-index: 0;
- }
- .holder{ /*Elementy that contain the menu behind him. Used to not have "miss clicks" on the menu .*/
- width: 50px;
- height: 40px;
- cursor: pointer;
- position: absolute;
- top: -7px;
- right: -8px;
- float: right;
- z-index: 1;
- }
- .hamburguer-menu::after{
- content: '';
- display: block;
- width: 35px;
- height: 4px;
- position: relative;
- top: 6px;
- background-color: #FFC107;
- transition: 0.25s linear;
- cursor: pointer;
- }
- .hamburguer-menu::before{
- content: '';
- display: block;
- width: 35px;
- height: 4px;
- position: relative;
- top: 20px;
- background-color: #FFC107;
- transition: 0.25s linear;
- cursor: pointer;
- }
- /*The class called "opened" changes the hamburguer menu into a "X" */
- .opened.hamburguer-menu{
- transform: rotate(-45deg);
- position: relative;
- top: -25px;
- }
- .opened.hamburguer-menu::after{
- transform: rotate(-95deg);
- position: relative;
- top: -3px;
- }
- .opened.hamburguer-menu::before{
- background-color: transparent;
- }
- .col-md-12{
- display: flex;
- }
- .first-section{
- width: 100%;
- height: 650px;
- position: relative;
- background: url('../images/photo02.jpg') no-repeat center center fixed;
- -webkit-background-size: cover;
- -moz-background-size: cover;
- -o-background-size: cover;
- background-size: cover;
- margin: 0 auto;
- display: table;
- }
- .first-section h1{
- top: 135px;
- font-size: 75px;
- position: relative;
- padding: 15px;
- color: white;
- font-family: 'Nunito', sans-serif;
- font-style: bold;
- font-weight: 75px;
- background-color: black;
- display: table;
- margin-right: auto;
- margin-left: auto;
- }
- .text-content h1{
- height:105px;
- margin-top: 0 auto;
- display: block;
- position: relative;
- }
- /*configurations to mobile devices */
- @media (max-width: 1024px){
- .nav-bar li{
- left: 0px;
- }
- .nav-bar li a{
- display: none;
- left: 0px;
- }
- .hamburguer-menu{
- display: inherit;
- position: relative;
- top: -35px;
- z-index: 5000;
- }
- .nav-mobile{
- width: 100%;
- height: 0px;
- transition: 0.75s ease;
- z-index: 0;
- display: inherit;
- }
- .menu-opened.nav-mobile{ /*apply this class with jquery when the hamburguer-button is clicked*/
- width: 100%;
- height: 300px;
- z-index: 5;
- position: fixed;
- }
- .menu-opened.nav-content li{
- height: 50px;
- transition: 0.55s linear;
- color: blue;
- }
- .first-section h1{
- font-size: 45px;
- text-align: center;
- display: table;
- margin-right: auto;
- margin-left: auto;
- height: 65px;
- width: 325px !important;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment