Last active
January 9, 2026 12:19
-
-
Save alexishida/49bde7667a9636291183f9fe23f0fb24 to your computer and use it in GitHub Desktop.
Grid e Flex template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Link https://codepen.io/argus-academy/pen/abRmmoz | |
| # Html | |
| <ul> | |
| <li>Home</li> | |
| <li>Produtos</li> | |
| <li>Contato</li> | |
| <li>Sobre</li> | |
| </ul> | |
| #Css | |
| @import url(https://fonts.googleapis.com/css?family=Bungee); | |
| ul{ | |
| border: solid 1px #ccc; | |
| max-width: 600px; | |
| font-family: 'Bungee'; | |
| display: flex; | |
| flex-flow: column wrap; | |
| justify-content: center; | |
| list-style-type: none; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| li{ | |
| cursor: pointer; | |
| padding: 20px; | |
| color: #E46357; | |
| background-color: #C9ECFF; | |
| } | |
| li:hover{ | |
| opacity: 0.5; | |
| color: #EA675B; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Link https://codepen.io/argus-academy/pen/wvYzoaL | |
| # Html | |
| <div class="container" > | |
| <header> | |
| Header | |
| <ul> | |
| <li> | |
| <i class="fa fa-home"></i> | |
| <span class="title">Home</span> | |
| <span class="description">Página principal</span> | |
| </li> | |
| <li> | |
| <i class="fa fa-shopping-basket"></i> | |
| <span class="title" >Products</span> | |
| <span class="description" >Some Description</span> | |
| </li> | |
| <li> | |
| <i class="fa fa-at"></i> | |
| <span class="title" >Contact</span> | |
| <span class="description" >Some Description</span> | |
| </li> | |
| </ul> | |
| </header> | |
| <aside>Aside</aside> | |
| <main>Main</main> | |
| <footer>Footer</footer> | |
| </div> | |
| # CSS | |
| @import url(https://fonts.googleapis.com/css?family=Bungee); | |
| body{ | |
| min-height: 200px; | |
| font-family: 'Bungee'; | |
| } | |
| ul{ | |
| border: solid 1px #ccc; | |
| font-family: 'Bungee'; | |
| display: flex; | |
| flex-flow: row wrap; | |
| justify-content: space-between; | |
| list-style-type: none; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| li{ | |
| cursor: pointer; | |
| padding: 10px; | |
| display: grid; | |
| grid-template-columns: 35px auto; | |
| grid-template-rows: 1fr 1fr; | |
| align-items: center; | |
| color: #E46357; | |
| background-color: #C9ECFF; | |
| } | |
| li:hover{ | |
| opacity: 0.5; | |
| color: #EA675B; | |
| } | |
| .fa{ | |
| grid-area: 1 / 1 / 3 / 2; | |
| text-align: center; | |
| font-size: 25px; | |
| } | |
| .title{ | |
| font-size: 18px; | |
| } | |
| .description{ | |
| font-size: 12px; | |
| font-family: "Roboto"; | |
| color: #272727; | |
| } | |
| li, .fa, .title, .description{ | |
| border: 1px solid black; | |
| } | |
| .container{ | |
| display: grid; | |
| color: #272727; | |
| grid-template-columns: 200px auto; | |
| grid-template-rows: auto auto 70px; | |
| grid-template-areas: "header header" "aside main" "footer footer"; | |
| } | |
| header{ | |
| padding: 10px; | |
| background-color: #8BBFDC; | |
| grid-area: header; | |
| } | |
| aside{ | |
| padding: 10px; | |
| background-color: #87D8B1; | |
| grid-area: aside; | |
| } | |
| main{ | |
| padding: 10px; | |
| background-color: #FDE483; | |
| grid-area: main; | |
| height: 200px; | |
| } | |
| footer{ | |
| padding: 10px; | |
| background-color: #F97A6E; | |
| grid-area: footer; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Link: https://codepen.io/argus-academy/pen/wvYzGNG | |
| # Html | |
| <div class="container" > | |
| <header>Header</header> | |
| <aside>Aside</aside> | |
| <main>Main</main> | |
| <footer>Footer</footer> | |
| </div> | |
| # Css | |
| @import url(https://fonts.googleapis.com/css?family=Bungee); | |
| body{ | |
| min-height: 300px; | |
| } | |
| .container{ | |
| font-family: 'Bungee'; | |
| color: #272727; | |
| display: grid; | |
| grid-template-columns: 200px auto; | |
| grid-template-rows: 70px auto 70px; | |
| grid-template-areas: "header header" "aside main" "footer footer"; | |
| } | |
| header{ | |
| padding: 10px; | |
| background-color: #8BBFDC; | |
| grid-area: header; | |
| } | |
| aside{ | |
| padding: 10px; | |
| background-color: #87D8B1; | |
| grid-area: aside; | |
| } | |
| main{ | |
| padding: 10px; | |
| background-color: #FDE483; | |
| grid-area: main; | |
| height: 200px; | |
| } | |
| footer{ | |
| padding: 10px; | |
| background-color: #F97A6E; | |
| grid-area: footer; | |
| } |
Comments are disabled for this gist.