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
14 changes: 14 additions & 0 deletions barataoJogos/assets/controle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions barataoJogos/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 24 additions & 27 deletions barataoJogos/home.html → barataoJogos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Staatliches&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Teko&display=swap" rel="stylesheet">

<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
Expand All @@ -18,32 +19,30 @@
</head>

<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">

<h1><a class="navbar-brand abs" href="#">O Baratão</a></h1>
<!-- tipo 1 barra de navegação -->
<div class="nav">
<div class="links">
<ul>
<li>
<a href="#">Xbox</a>
</li>
<li>
<a href="#">PS4</a>
</li>
<li>
<a href="#">STEAM</a>
</li>
<li>
<a href="#">SWITCH</a>
</li>
</ul>
</div>
<div class="logo">
<img src="assets/logo.svg" />
</div>
</div>
<!-- final do tipo 1 barra de navegação -->

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="#">Xbox</a>
</li>
<li>
<a class="nav-link" href="#">Ps4</a>
</li>
<li>
<a class="nav-link" href="#">Switch</a>
</li>
<li>
<a class="nav-link" href="#">Steam</a>
</li>
</ul>
</div>
</nav>

<ul class="list-group">
<li>
<img src="assets/playstation-icon.svg" alt="Playstation games">
Expand All @@ -65,7 +64,5 @@ <h1><a class="navbar-brand abs" href="#">O Baratão</a></h1>
<a href="#">CONTACT US</a>
</li>
</ul>

</body>

</html>
65 changes: 56 additions & 9 deletions barataoJogos/styles/home.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,60 @@
.logo{
font-family: 'Staatliches', cursive;
color: #000000;
text-align: center;
.nav{
background: blue;
width: 100%;
display: flex;
height: 10vh;
position: relative;
}

.links {
width: 50%;
height: 100%;
background: purple;
display: flex;
align-items: center;
}

.links > ul{
list-style: none;
display: flex;
align-items: center;
margin: 0;
}

.links > ul li{
padding: 0 6px;
}

.links > ul > li > a{
/* border: 1px solid black; */
text-decoration: none;
color: black;
}

.links > ul > li > a:hover{
color: red;
}

.navbar-brand.abs
{
.logo{
position: absolute;
width: 100%;
left: 0;
text-align: center;

top:50%;
left: 50%;

transform: translate(-50%, -35%);
display: flex;
align-items: center;
}

.logo > img {
width: 20vw;
}

@media (max-width: 900px) {
.nav{
background: green;
}
.logo > img{
width: 100%;
}
}