Skip to content

Commit

Permalink
Merge pull request #91 from intelops/chandu
Browse files Browse the repository at this point in the history
changed header & text colors and pr82
  • Loading branch information
devopstoday11 authored Apr 19, 2023
2 parents 8c45552 + c337683 commit 4ea3c91
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ text_color = "#555"
text_dark = "#222222"
text_light = "#959595"
white = "#fff"
secblack = "#121826"
4 changes: 3 additions & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ email = "[email protected]"
favicon = "images/favicon/favicon-32x32.png"
image = "images/logo.png"

logo = "images/logos/logo-light.svg"
logo = "images/logos/logo-dark.svg"
logo_light = "images/logos/logo-light.svg"
logo_dark = "images/logos/logo-dark.svg"
footer_logo_dark = false
logo_webp = false

logo_text = "Intelops"
Expand Down
1 change: 1 addition & 0 deletions content/english/open-source/contributed-open-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ draft: false
navigation:
logo: "images/dummy-logo.png"
logo_text: "Capten"
logo_text_color: "white"

menu:
- name: "Test 1"
Expand Down
1 change: 1 addition & 0 deletions content/english/open-source/our-open-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ draft: false
navigation:
logo: "images/dummy-logo.png"
logo_text: "Capten"
logo_text_color: "white"

menu:
- name: "Test 1"
Expand Down
1 change: 1 addition & 0 deletions content/english/platform/capten.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ draft: false
navigation:
logo: "images/dummy-logo.png"
logo_text: "Capten"
logo_text_color: "secblack"

menu:
- name: "Test 1"
Expand Down
1 change: 1 addition & 0 deletions content/english/platform/compage.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ draft: false
navigation:
logo: "images/logos/compage/compage-icon.svg"
logo_text: "Compage"
logo_text_color: "secblack"

menu:
- name: "Test 1"
Expand Down
3 changes: 2 additions & 1 deletion content/english/platform/opty.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ draft: false

navigation:
logo: "images/dummy-logo.png"
logo_text: "Capten"
logo_text: "Opty"
logo_text_color: "secblack"

menu:
- name: "Test 1"
Expand Down
2 changes: 1 addition & 1 deletion themes/delta/assets/scss/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ form label {
}

.nav-menu-text {
color: $white !important;
color: $black !important;
}

.header-sec {
Expand Down
2 changes: 1 addition & 1 deletion themes/delta/layouts/partials/footer-logo-dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<img loading="prelaod" decoding="async" class="img-fluid" {{if ne $logoExt `.svg`}}
width="{{$logoWidth | default $logo.Width}}" height="{{$logo.Height}}" {{end}} src="{{.Scratch.Get `logo`}}"
alt="{{ site.Title }}" onerror="this.onerror=null;this.src='{{.Scratch.Get `logo_fallback`}}'">
alt="{{ site.Title }}" style="width:130px" onerror="this.onerror=null;this.src='{{.Scratch.Get `logo_fallback`}}'">
{{ end }}
<!-- logo text -->
{{ else if site.Params.logo_text }}
Expand Down
4 changes: 2 additions & 2 deletions themes/delta/layouts/partials/footer-logo.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $logoPath:= site.Params.logo }}
{{ $logoPath:= site.Params.logo_light }}
{{ $logoWidth:= replace site.Params.logo "px" "x" }}

<!-- checking logo existance -->
Expand Down Expand Up @@ -27,7 +27,7 @@

<img loading="prelaod" decoding="async" class="img-fluid" {{if ne $logoExt `.svg`}}
width="{{$logoWidth | default $logo.Width}}" height="{{$logo.Height}}" {{end}} src="{{.Scratch.Get `logo`}}"
alt="{{ site.Title }}" onerror="this.onerror=null;this.src='{{.Scratch.Get `logo_fallback`}}'">
alt="{{ site.Title }}" style="width:130px" onerror="this.onerror=null;this.src='{{.Scratch.Get `logo_fallback`}}'">
{{ end }}
<!-- logo text -->
{{ else if site.Params.logo_text }}
Expand Down
2 changes: 1 addition & 1 deletion themes/delta/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="row align-items-center gy-3">
<div class="col-lg-4 mx-auto text-center text-lg-start">
<a class="footer-brand" href="{{ site.BaseURL | relLangURL }}" title="{{site.Title}}">
{{if $footer_light}}
{{if or $footer_light (eq site.Params.footer_logo_dark true)}}
{{ partial "footer-logo-dark.html" . }}
{{else}}
{{ partial "footer-logo.html" . }}
Expand Down
4 changes: 2 additions & 2 deletions themes/delta/layouts/partials/header-alt.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- navigation -->
<header class="navigation dark-bar navigation-bottom">
<header class="navigation light-bar navigation-bottom">
<div class="container container-delta">
<!-- navbar -->
<nav class="navbar navbar-expand-xl navbar-light" id="main-navbar">
Expand Down Expand Up @@ -182,7 +182,7 @@
<!-- / checking logo path -->
{{ end }}
</span>
<span class="text-white ms-1 fw-bold">{{$logoText}}</span>
<span class="{{if not .Params.navigation.logo_text_color}}text-white{{end}} ms-1 fw-bold" {{with .Params.navigation.logo_text_color}}style="color:{{.}}"{{end}}>{{$logoText}}</span>

<div class="navbar-actions d-inline-flex align-items-center">
<!-- Language List -->
Expand Down
2 changes: 1 addition & 1 deletion themes/delta/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- navigation -->
{{ $headerWhite := or (eq .Section "platform") (eq .Section "open-source") }}
<header class="navigation dark-bar {{ if $headerWhite }} navigation-alt {{ end }}" id="main-header">
<header class="navigation light-bar {{ if $headerWhite }} navigation-alt {{ end }}" id="main-header">
<div class="container container-delta">
<!-- navbar -->
<nav class="navbar navbar-expand-xl navbar-light" id="main-navbar">
Expand Down

0 comments on commit 4ea3c91

Please sign in to comment.