Commit 221e82e6 authored by Hildegunn Elin Olaussen Nedregård's avatar Hildegunn Elin Olaussen Nedregård
Browse files

Made static link to header and footer

parent 97c0b792
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="CssUnknownProperty" enabled="true" level="WARNING" enabled_by_default="true">
<option name="myCustomPropertiesEnabled" value="true" />
<option name="myIgnoreVendorSpecificProperties" value="false" />
<option name="myCustomPropertiesList">
<value>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="margine-left" />
</list>
</value>
</option>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
var html =[
'<div class="container text-center">',
'<small> Copyright &copy; </small>',
'</div>',
].join('');
var div = document.createElement('div');
div.innerHTML = html;
document.getElementById('footer').appendChild(div);
var html = [
'<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="navbar">',
'<a class="navbar-brand" href="#" id="logo">',
'<img href="" src="../../static/Frame1.png"/>',
'</a>',
'<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">',
'<span class="navbar-toggler-icon"></span>',
'</button>',
'<div class="collapse navbar-collapse" id="navbarNav">',
'<ul class="navbar-nav">',
'<li class="nav-item">',
'<a class="nav-link" href="#"> Min profil</a>',
'</li>',
'<li class="nav-item">',
'<a class="nav-link" href="#"> Nytt inlegg </a>',
'</li>',
'<li class="nav-item">',
'<a class="nav-link" href="#"> Utfordringer <span class="sr-only"> </span></a>',
'</li>',
'</ul>',
'<form class="form-inline" id="search">',
'<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" id="seachInput">',
'<button class="btn btn-outline-success my-2 my-sm-0 text-black-50" id="searchButton" type="submit" >Search</button>',
'</form>',
'</div>',
'<ul class="navbar-nav ml-auto">',
'<li class="nav-item">',
'<a class="nav-link" href="#"> Logg ut </a>',
'</li>',
'</ul>',
'</nav>',
].join('');
var div = document.createElement('div');
div.innerHTML = html;
document.getElementById('navbar').appendChild(div);
......@@ -24,9 +24,11 @@ body {
}
#search {
margin-right: 150px;
margin-left: 24%;
}
#seachInput {
width: 350px;
}
......@@ -7,47 +7,7 @@
</head>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="navbar">
<a class="navbar-brand" href="#" id="logo">
<img href="" src="../../static/Frame1.png"/>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#"> Min profil</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"> Nytt inlegg </a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"> Utfordringer <span class="sr-only"> </span></a>
</li>
</ul>
</div>
<form class="form-inline" id="search">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" id="seachInput">
<button class="btn btn-outline-success my-2 my-sm-0 text-black-50" id="searchButton" type="submit" >Search</button>
</form>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#"> Logg ut </a>
</li>
</ul>
</nav>
<div id="navbar"></div>
</header>
<body>
......@@ -77,21 +37,18 @@ Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC
</div>
</div>
</div>
</div>
</body>
</div>
</body>
<footer id="sticky-footer" class="py-5 bg-light text-black-50">
<div class="container text-center">
<small>Copyright &copy; </small>
</div>
<footer class="py-5 bg-light text-black-50" id="footer">
</footer>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="../../static/header.js"></script>
<script src="../../static/footer.js"></script>
</html>
\ No newline at end of file
<!doctype html>
<html>
<head>
<title>Login page</title>
</head>
<body>
<h1>Login page of the social media</h1>
</body>
......
......@@ -6,7 +6,7 @@ def home(request):
context = {
'posts': posts
}
return render(request, 'startpage/home.html', context)
return render(request, 'startpage/UserFrontpage.html', context)
def login(request):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment