Skip to content

Commit

Permalink
Make the footer and placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
VishwaAmarasinghe committed Apr 16, 2024
1 parent 861e3e7 commit e60f582
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 29 deletions.
6 changes: 5 additions & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

$(function(){
$("#nav-placeholders").load("../assets/placeholders/nav.html");
$("#nav-placeholder").load("../assets/placeholders/nav.html");
});

$(function(){
$("#footer-placeholder").load("../assets/placeholders/footer.html");
});
36 changes: 36 additions & 0 deletions assets/placeholders/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<footer class="footer">
<hr><br>
<div class="row footer-row">
<div class="col-9 col-md-6">
<span class="footer-head">
<img src="/assets/img/acf.png" alt="" srcset="" class="footer-acf">
<div class="footer-name">
<h2>Cyber Pulse</h2> Organized by ACF
</div>

</span>
</div>
<div class="col-9 col-md-6 link-col">
<h4>Links</h4>
<ul class="footer-links">
<li class="footer-link">
<a class="footer-link-home " href="index.html">Home</a>
</li>
<li class="footer-link">
<a class="footer-link-about " href="/index.html#about">About</a>
</li>
<li class="footer-link">
<a class="footer-link-contact " href="/index.html#contact">Contact</a>
</li>
<li class="footer-link">
<a class="footer-link-competitions " href="#">Competitions</a>
</li>
</ul>
</div>
</div>
<br>
<center>
<h5>All rights reserved by ©️ 2024 Antonian Computer Fraternity</h5>
</center>
</div>
</footer>
28 changes: 28 additions & 0 deletions assets/placeholders/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<nav class="navbar navbar-expand-lg ">
<div class="container-fluid">
<a class="navbar-brand" href="index.html"><img src=""class="nav-img" alt="">Cyber Pulse</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" >
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-center" id="navbarNavDropdown">

<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link " href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item ">
<a class="nav-link " href="#contact">
Contact Us
</a>
</li>
<li class="nav-item nav-end">
<a class="nav-link " href="">Competitions</a>
</li>
</ul>

</div>
</div>
</nav>
27 changes: 27 additions & 0 deletions assets/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,30 @@ background: url("../img/bg.png");
border: none;
color: #000000;
}
.footer{
background-color: #000000;
color: #ffffff;
padding: 50px;
}
.footer .row{
margin: 0px !important;
}
.footer-acf{
width: 100px;
height: auto;
}
.footer-head{
display: flex;
padding-bottom: 30px;
}
.link-col{
padding-left: 30px;
}
.footer-links{
list-style: none;
padding: 0px;
}
.footer-link a{
text-decoration: none;
color: #ffffff;
}
33 changes: 5 additions & 28 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,8 @@
</head>
<body>
<!--navbar starts here-->
<nav class="navbar navbar-expand-lg ">
<div class="container-fluid">
<a class="navbar-brand" href="index.html"><img src=""class="nav-img" alt="">Cyber Pulse</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" >
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-center" id="navbarNavDropdown">

<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link " href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item ">
<a class="nav-link " href="#contact">
Contact Us
</a>
</li>
<li class="nav-item nav-end">
<a class="nav-link " href="">Competitions</a>
</li>
</ul>

</div>
</div>
</nav>
<div id="nav-placeholder">
</div>
<!--navbar ends here-->

<!--Home section starts here-->
Expand Down Expand Up @@ -140,12 +114,15 @@ <h1 class="contact-heading">
</center>
</section>
<!--Contact section ends here-->
<div id="footer-placeholder">
</div>
<!--bootstraps-link-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<!--bootstraps-link-->
<!--Font awsome starts-->
<script src="https://kit.fontawesome.com/8d78513a47.js" crossorigin="anonymous"></script>
<!--Font awsome ends-->
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html>

0 comments on commit e60f582

Please sign in to comment.