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
27 changes: 26 additions & 1 deletion website/assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
body{
background: #BDBDBD;
}
}

.custom-navbar {
background-color: #212529;
max-width: auto px;
margin: 0 auto; /* centra la barra */
padding: 10px 20px;
}

.navbar-nav .nav-link {
color: #adb5bd;
margin-left: 15px;
}

.navbar-nav .nav-link.active {
color: #ffffff;
}

.navbar-nav .nav-link:hover {
color: #ffffff;
}

.navbar-brand {
color: #ffffff;
margin-right: 30px;
}
2 changes: 1 addition & 1 deletion website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<body>

<!-- Navigation -->
<div class="container-fluid">
<div class="mx-0">
<span require-file="./templates/navbar.html"></span>
<!-- Full Width Image Header -->
<span require-file="./templates/tagline.html"></span>
Expand Down
33 changes: 31 additions & 2 deletions website/templates/navbar.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,31 @@
<!-- your html code here -->
<p>Hello, I'm the navbar.html</p>
<!--Marcos -->
<nav class="navbar navbar-expand-lg custom-navbar">
<div class="container-fluid">
<a class="navbar-brand" href="#">Code.Gym</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#menu">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="menu">
<ul class="navbar-nav">

<li class="nav-item">
<a class="nav-link active" href="#">About</a>
</li>

<li class="nav-item">
<a class="nav-link" href="#">Services</a>
</li>

<li class="nav-item">
<a class="nav-link" href="#">Portfolio</a>
</li>

<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>

</ul>
</div>

</div>
</nav>
17 changes: 15 additions & 2 deletions website/templates/tagline.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<!-- your html code here -->
<!-- your html code here Marcos -->
<!-- Also called a hero image or a jumbotron before bootstrap 5. This might be helpful: https://getbootstrap.com/docs/5.1/examples/jumbotron/ -->
<p>Hello, I'm the tagline and I was loaded using ajax from templates/tagline.html</p>
<div class="d-flex align-items-center" style="
background-image: url('https://images.squarespace-cdn.com/content/v1/5f2729003294916c4921e58b/1628013909072-BYOGEASFLPUYO5ZITBF9/GYM-BG-Olimpia-1.jpg?format=2500w');
height: 500px;
background-size: cover;
background-position: center;
">
<div class="w-100 text-center">
<h1 class="fw-bold py-3 my-2" style="background: rgba(255,255,255,0.85);">
Transform Your Body
</h1>
<h2 class="py-3 my-2" style="background: rgba(255,255,255,0.85);">
Train Like Never Before
</h2>
</div>