-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1748957
commit 7e3bfd8
Showing
8 changed files
with
179 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,17 @@ | |
|
||
@import url("https://unpkg.com/[email protected]/css/boxicons.min.css"); | ||
|
||
/* Colors: */ | ||
|
||
*:root { | ||
|
||
--main-color: #B20000; | ||
--page-color: #FFFFFF; | ||
--neutral-color: #000000; | ||
--contrast-color: #005C6D; | ||
|
||
} | ||
|
||
/* Styles: */ | ||
|
||
#menu { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* Resources: */ | ||
|
||
@import url("./Global.css"); | ||
|
||
/* Styles: */ | ||
|
||
#rooms { | ||
|
||
height: auto; | ||
width: 100%; | ||
min-height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: flex-start; | ||
gap: 15px; | ||
background-color: transparent; | ||
padding: 80px 15px 15px 15px; | ||
|
||
} | ||
|
||
#rooms h1 { | ||
|
||
font-size: 35px; | ||
font-weight: bolder; | ||
text-transform: uppercase; | ||
text-align: center; | ||
color: var(--main-color); | ||
margin-bottom: 25px; | ||
|
||
} | ||
|
||
#rooms .room { | ||
|
||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: center; | ||
border: 1px solid var(--neutral-color); | ||
border-radius: 10px; | ||
text-decoration: none; | ||
padding: 15px; | ||
cursor: pointer; | ||
|
||
} | ||
|
||
#rooms .room h2 { | ||
|
||
font-size: 18px; | ||
font-weight: bold; | ||
color: var(--neutral-color); | ||
text-align: center; | ||
transition: 0.5s; | ||
|
||
} | ||
|
||
#rooms .room:hover h2 { | ||
|
||
color: var(--main-color); | ||
|
||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Constants and Variables: | ||
|
||
const rooms = [ | ||
|
||
{name: "Laboratório 04"}, | ||
{name: "Laboratório 09"}, | ||
{name: "Laboratório 02"}, | ||
{name: "Laboratório 06"} | ||
|
||
]; | ||
|
||
// Functions: | ||
|
||
function ADD_Rooms() | ||
{ | ||
|
||
const rooms_list = document.getElementById("rooms").innerHTML; | ||
|
||
let rooms_inserts = ""; | ||
|
||
rooms.forEach(room => { | ||
|
||
rooms_inserts = rooms_inserts.concat( | ||
|
||
'<a class="room" href="#">' + | ||
|
||
`<h2 class="room-name"> ${room.name} </h2>` + | ||
|
||
'</a>' | ||
|
||
); | ||
|
||
}); | ||
|
||
document.getElementById("rooms").innerHTML = rooms_list.concat(rooms_inserts); | ||
|
||
} | ||
|
||
// Events: | ||
|
||
window.addEventListener("load", function() { | ||
|
||
ADD_Rooms(); | ||
|
||
}); |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html lang="pt-br"> | ||
|
||
<head> | ||
|
||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title> Salas | Agenda Fatec </title> | ||
|
||
<script defer type="text/javascript" src="../Assets/JS/Global.js"> </script> | ||
<script defer type="text/javascript" src="../Assets/JS/Rooms.js"> </script> | ||
|
||
<link rel="stylesheet" type="text/css" href="../Assets/CSS/Rooms.css"> | ||
|
||
<!-- Favicon (Global.js) --> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<!-- Menu (Global.js) --> | ||
|
||
<div id="container"> | ||
|
||
<!-- Header (Global.js) --> | ||
|
||
<main> | ||
|
||
<section id="rooms"> | ||
|
||
<h1> Salas da Fatec Jahu </h1> | ||
|
||
</div> | ||
|
||
</main> | ||
|
||
</div> | ||
|
||
</body> | ||
|
||
</html> |