Skip to content

Commit 5da93ee

Browse files
committed
Navbar Logo added and Favicon
1 parent b1d611a commit 5da93ee

16 files changed

Lines changed: 113 additions & 28 deletions

assets/icons/logo.svg

Lines changed: 60 additions & 0 deletions
Loading

assets/scss/_styles_project.scss

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
.motto {
2-
font-size: 80px;
3-
line-height: 100%;
4-
font-weight: 800;
1+
.banner {
2+
width: 90%;
53
}
64

7-
// #td-cover-block-0
8-
//.td-cover-block {
9-
//background-color: rgba(0, 0, 0, 0.7);
10-
//}
11-
12-
@keyframes gradient {
13-
0% {
14-
background-position: 0% 50%;
15-
}
16-
50% {
17-
background-position: 100% 50%;
18-
}
19-
100% {
20-
background-position: 0% 50%;
21-
}
5+
6+
.td-navbar-scroll {
7+
background-color: $primary !important;
8+
animation: all ease-in 1s;
9+
}
10+
.navbar-brand {
11+
& > .navbar-logo > svg {
12+
width: 100px;
13+
height: 50px;
14+
}
15+
16+
& span:nth-child(2) {
17+
display: none;
18+
}
2219
}
2320

2421
.features-heading {
@@ -47,7 +44,6 @@
4744
margin-bottom: 5rem;
4845
}
4946

50-
5147
@media screen and (max-width: 720px) and (orientation: portrait) {
5248
padding: 4rem 2rem 0 2rem;
5349

@@ -57,7 +53,6 @@
5753
}
5854
}
5955

60-
6156
.image {
6257
position: relative;
6358

@@ -82,10 +77,9 @@
8277
overflow: hidden;
8378

8479
@media screen and (max-width: 720px) and (orientation: portrait) {
85-
8680
}
8781

88-
& > .content{
82+
& > .content {
8983
padding: 2rem 8rem 4rem 1rem;
9084

9185
& > p:not(:last-child) {

config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ privacy_policy = "https://policies.google.com/privacy"
8686
# This menu appears only if you have at least one [params.versions] set.
8787
version_menu = "Releases"
8888

89-
# Flag used in the "version-banner" partial to decide whether to display a
89+
# Flag used in the "version-banner" partial to decide whether to display a
9090
# banner on every page indicating that this is an archived version of the docs.
9191
# Set this flag to "true" if you want to display the banner.
9292
archived_version = false
9393

9494
# The version number for the version of the docs represented in this doc set.
95-
# Used in the "version-banner" partial to display a version number for the
95+
# Used in the "version-banner" partial to display a version number for the
9696
# current doc set.
9797
version = "0.0"
9898

@@ -129,7 +129,7 @@ breadcrumb_disable = false
129129
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
130130
sidebar_search_disable = false
131131
# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top nav bar
132-
navbar_logo = false
132+
navbar_logo = true
133133
# Set to true to disable the About link in the site footer
134134
footer_about_disable = true
135135

@@ -144,7 +144,7 @@ yes = 'Glad to hear it! Please <a href="https://github.com/USERNAME/REPOSITORY/i
144144
no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY/issues/new">tell us how we can improve</a>.'
145145

146146
# Adds a reading time to the top of each doc.
147-
# If you want this feature, but occasionally need to remove the Reading time from a single page,
147+
# If you want this feature, but occasionally need to remove the Reading time from a single page,
148148
# add "hide_readingtime: true" to the page's front matter
149149
[params.ui.readingtime]
150150
enable = false

content/en/_index.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="mx-auto">
99
<div class="col-sm-12 card bg-transparent border-0">
1010
<div class="text-center">
11-
<img src="banner.png" alt="" srcset="">
11+
<img class="banner" src="banner.png" alt="" srcset="">
1212
<p>
1313
Elekto was created as part of an LFX internship for the Kubernetes project by <a href="https://github.com/kalkayan">Manish Sahani,</a>
1414
and is now a CNCF infrastructure project.
@@ -133,3 +133,17 @@ <h1 class="display-3 text-center mb-4">Elekto Project is hosted and supported by
133133
</div>
134134
</div>
135135
{{% /blocks/section %}}
136+
137+
<script>
138+
let scrollpos = window.scrollY
139+
const header = document.querySelector("nav")
140+
141+
const add_class_on_scroll = () => header.classList.add("td-navbar-scroll")
142+
const remove_class_on_scroll = () => header.classList.remove("td-navbar-scroll")
143+
144+
window.addEventListener('scroll', function() {
145+
scrollpos = window.scrollY;
146+
if (scrollpos >= '1100') { add_class_on_scroll() }
147+
else { remove_class_on_scroll() }
148+
})
149+
</script>

static/favicons/_head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<link rel="icon" type="image/png" href="/iconx/favicon-16x16.png" sizes="16x16">
2+
<link rel="icon" type="image/png" href="/iconx/favicon-32x32.png" sizes="32x32">
3+
<link rel="icon" type="image/png" href="/iconx/android-192x192.png" sizes="192x192">
4+
<link rel="apple-touch-icon" href="/iconx/apple-touch-icon-180x180.png" sizes="180x180">
5+
<meta name="msapplication-config" content="/iconx/browserconfig.xml">
4.48 KB
Loading

static/favicons/browserconfig.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<browserconfig>
3+
<msapplication>
4+
<tile>
5+
<square70x70logo src="/iconx/tile70x70.png" />
6+
<square150x150logo src="/iconx/tile150x150.png" />
7+
<wide310x150logo src="/iconx/tile310x150.png" />
8+
<square310x310logo src="/iconx/tile310x310.png" />
9+
<tilecolor>transparent</tilecolor>
10+
</tile>
11+
</msapplication>
12+
</browserconfig>

static/favicons/favicon-16x16.png

154 Bytes
Loading

static/favicons/favicon-32x32.png

368 Bytes
Loading

static/favicons/favicon.ico

1.12 KB
Binary file not shown.

0 commit comments

Comments
 (0)