Skip to content

Commit cbd94f3

Browse files
committed
logo change, head meta seprated
1 parent 2b69846 commit cbd94f3

File tree

5 files changed

+127
-124
lines changed

5 files changed

+127
-124
lines changed

__pycache__/data.cpython-311.pyc

1.42 KB
Binary file not shown.

static/assets/images/logo.png

83 KB
Loading

templates/components/headmeta.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<meta charset="utf-8" />
2+
<meta
3+
name="viewport"
4+
content="width=device-width, initial-scale=1, shrink-to-fit=no"
5+
/>
6+
7+
<link
8+
rel="stylesheet"
9+
href="https://cdn.jsdelivr.net/gh/devicons/devicon@v2.15.1/devicon.min.css"
10+
/>
11+
12+
<link
13+
href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap"
14+
rel="stylesheet"
15+
/>
16+
17+
<title>CodeColts</title>
18+
19+
<!-- Bootstrap core CSS -->
20+
<link
21+
href="{{ url_for('static', filename='vendor/bootstrap/css/bootstrap.min.css') }}"
22+
rel="stylesheet"
23+
/>
24+
25+
<!-- Additional CSS Files -->
26+
<link
27+
rel="stylesheet"
28+
href="{{ url_for('static', filename='assets/css/fontawesome.css') }}"
29+
/>
30+
<link
31+
rel="stylesheet"
32+
href="{{ url_for('static', filename='assets/css/templatemo-cyborg-gaming.css') }}"
33+
/>
34+
<link
35+
rel="stylesheet"
36+
href="{{ url_for('static', filename='assets/css/owl.css') }}"
37+
/>
38+
<link
39+
rel="stylesheet"
40+
href="{{ url_for('static', filename='assets/css/animate.css') }}"
41+
/>
42+
<link
43+
rel="stylesheet"
44+
href="https://unpkg.com/swiper@7/swiper-bundle.min.css"
45+
/>
46+
<!--
47+
48+
TemplateMo 579 Cyborg Gaming
49+
50+
https://templatemo.com/tm-579-cyborg-gaming
51+
52+
-->

templates/components/navbar.html

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<header class="header-area header-sticky">
2+
<div class="container">
3+
<div class="row">
4+
<div class="col-12">
5+
<nav class="main-nav">
6+
<!-- ***** Logo Start ***** -->
7+
<a href="{{ url_for('index') }}" class="logo">
8+
<img
9+
src="{{ url_for('static', filename='assets/images/logo.png') }}"
10+
alt=""
11+
/>
12+
</a>
13+
<!-- ***** Logo End ***** -->
14+
<!-- ***** Search End ***** -->
15+
<div class="search-input">
16+
<form id="search" action="#">
17+
<input
18+
type="text"
19+
placeholder="Type Something"
20+
id="searchText"
21+
name="searchKeyword"
22+
onkeypress="handle"
23+
/>
24+
<i class="fa fa-search"></i>
25+
</form>
26+
</div>
27+
<!-- ***** Search End ***** -->
28+
<!-- ***** Menu Start ***** -->
29+
<ul class="nav">
30+
<li><a href="{{ url_for('index') }}" id="home">Home</a></li>
31+
<li>
32+
<a href="{{ url_for('browse') }}" id="browse">Browse</a>
33+
</li>
34+
<li>
35+
<a href="{{ url_for('login') }}" id="details">Logout</a>
36+
</li>
37+
<li>
38+
<a href="{{ url_for('profile') }}" id="profile"
39+
>Profile
40+
<img
41+
src="{{ url_for('static', filename='assets/images/profile-header.jpg') }}"
42+
alt=""
43+
/></a>
44+
</li>
45+
<!-- Add more items as required -->
46+
</ul>
47+
48+
<script>
49+
// Get the current page URL path
50+
var currentPath = window.location.pathname;
51+
52+
// Get the menu item with a matching URL and add the "active" class
53+
if (currentPath === "{{ url_for('index') }}") {
54+
document.getElementById("home").classList.add("active");
55+
} else if (currentPath === "{{ url_for('browse') }}") {
56+
document.getElementById("browse").classList.add("active");
57+
} else if (currentPath === "{{ url_for('details') }}") {
58+
document.getElementById("details").classList.add("active");
59+
} else if (currentPath === "{{ url_for('profile') }}") {
60+
document.getElementById("profile").classList.add("active");
61+
}
62+
</script>
63+
64+
<a class="menu-trigger">
65+
<span>Menu</span>
66+
</a>
67+
<!-- ***** Menu End ***** -->
68+
</nav>
69+
</div>
70+
</div>
71+
</div>
72+
</header>
73+
<!-- ***** Header Area End ***** -->

templates/layout.html

Lines changed: 2 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -4,58 +4,7 @@
44
'macros/lectures.html' import lecture_list %}
55

66
<head>
7-
<meta charset="utf-8" />
8-
<meta
9-
name="viewport"
10-
content="width=device-width, initial-scale=1, shrink-to-fit=no"
11-
/>
12-
13-
<link
14-
rel="stylesheet"
15-
href="https://cdn.jsdelivr.net/gh/devicons/devicon@v2.15.1/devicon.min.css"
16-
/>
17-
18-
<link
19-
href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap"
20-
rel="stylesheet"
21-
/>
22-
23-
<title>CodeColts</title>
24-
25-
<!-- Bootstrap core CSS -->
26-
<link
27-
href="{{ url_for('static', filename='vendor/bootstrap/css/bootstrap.min.css') }}"
28-
rel="stylesheet"
29-
/>
30-
31-
<!-- Additional CSS Files -->
32-
<link
33-
rel="stylesheet"
34-
href="{{ url_for('static', filename='assets/css/fontawesome.css') }}"
35-
/>
36-
<link
37-
rel="stylesheet"
38-
href="{{ url_for('static', filename='assets/css/templatemo-cyborg-gaming.css') }}"
39-
/>
40-
<link
41-
rel="stylesheet"
42-
href="{{ url_for('static', filename='assets/css/owl.css') }}"
43-
/>
44-
<link
45-
rel="stylesheet"
46-
href="{{ url_for('static', filename='assets/css/animate.css') }}"
47-
/>
48-
<link
49-
rel="stylesheet"
50-
href="https://unpkg.com/swiper@7/swiper-bundle.min.css"
51-
/>
52-
<!--
53-
54-
TemplateMo 579 Cyborg Gaming
55-
56-
https://templatemo.com/tm-579-cyborg-gaming
57-
58-
-->
7+
{% include 'components/headmeta.html' %}
598
</head>
609

6110
<body>
@@ -73,78 +22,7 @@
7322
<!-- ***** Preloader End ***** -->
7423

7524
<!-- ***** Header Area Start ***** -->
76-
<header class="header-area header-sticky">
77-
<div class="container">
78-
<div class="row">
79-
<div class="col-12">
80-
<nav class="main-nav">
81-
<!-- ***** Logo Start ***** -->
82-
<a href="{{ url_for('index') }}" class="logo">
83-
<img
84-
src="{{ url_for('static', filename='assets/images/logo.png') }}"
85-
alt=""
86-
/>
87-
</a>
88-
<!-- ***** Logo End ***** -->
89-
<!-- ***** Search End ***** -->
90-
<div class="search-input">
91-
<form id="search" action="#">
92-
<input
93-
type="text"
94-
placeholder="Type Something"
95-
id="searchText"
96-
name="searchKeyword"
97-
onkeypress="handle"
98-
/>
99-
<i class="fa fa-search"></i>
100-
</form>
101-
</div>
102-
<!-- ***** Search End ***** -->
103-
<!-- ***** Menu Start ***** -->
104-
<ul class="nav">
105-
<li><a href="{{ url_for('index') }}" id="home">Home</a></li>
106-
<li>
107-
<a href="{{ url_for('browse') }}" id="browse">Browse</a>
108-
</li>
109-
<li>
110-
<a href="{{ url_for('details') }}" id="details">Details</a>
111-
</li>
112-
<li>
113-
<a href="{{ url_for('profile') }}" id="profile"
114-
>Profile
115-
<img
116-
src="{{ url_for('static', filename='assets/images/profile-header.jpg') }}"
117-
alt=""
118-
/></a>
119-
</li>
120-
<!-- Add more items as required -->
121-
</ul>
122-
123-
<script>
124-
// Get the current page URL path
125-
var currentPath = window.location.pathname;
126-
127-
// Get the menu item with a matching URL and add the "active" class
128-
if (currentPath === "{{ url_for('index') }}") {
129-
document.getElementById("home").classList.add("active");
130-
} else if (currentPath === "{{ url_for('browse') }}") {
131-
document.getElementById("browse").classList.add("active");
132-
} else if (currentPath === "{{ url_for('details') }}") {
133-
document.getElementById("details").classList.add("active");
134-
} else if (currentPath === "{{ url_for('profile') }}") {
135-
document.getElementById("profile").classList.add("active");
136-
}
137-
</script>
138-
139-
<a class="menu-trigger">
140-
<span>Menu</span>
141-
</a>
142-
<!-- ***** Menu End ***** -->
143-
</nav>
144-
</div>
145-
</div>
146-
</div>
147-
</header>
25+
{% include 'components/navbar.html' %}
14826
<!-- ***** Header Area End ***** -->
14927
<div class="container">
15028
<div class="row">

0 commit comments

Comments
 (0)