Skip to content

Commit

Permalink
update changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaykundu777 committed Aug 10, 2021
1 parent b8dfba5 commit b278bb9
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 67 deletions.
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ wakatime_username: sujaykundu777
mailchimp_form_url: https://sujaykundu.us10.list-manage.com/subscribe/post?u=50bab1c85eae24ecfb0f68361&id=3a2dd721d0

# contact form - (choose formspress or getform)
getform_endpoint: 83b703c3-9e47-4df4-ac55-e24d7eb02abc
# getform_endpoint: 83b703c3-9e47-4df4-ac55-e24d7eb02abc
formspree_email: [email protected]

# releases - widget can be (sidebar, modal or embed)
olvy_organization: devlopr
olvy_widget_type: sidebar
# olvy_organization: devlopr
# olvy_widget_type: sidebar

# syntax highlighter
markdown: kramdown
Expand Down
15 changes: 8 additions & 7 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,26 @@

</ul>
</div>
<ul class="nav justify-content-end">
<!-- <ul class="nav justify-content-end">
<li class="nav-item">
<a class="nav-link" href="{{site.url}}{{site.baseurl}}/get-started">
Get Started
</a>
</li>
</li> -->
<!-- <li class="nav-item">
<a class="nav-link" id="olvy-target">
What's New
</a>
</li> -->
<li class="nav-item">
<!-- <li class="nav-item">
<a class="nav-link" href="{{site.url}}{{site.baseurl}}/styleguide">
Styleguide
</a>
</li>
<li class="nav-item">
<button id="olvy-target" class="btn btn-dark"> What's New </button>
</li>
</li> -->
<ul class="nav justify-content-end">
<li class="nav-item">
<a class="nav-link toggle-search-button" href="#search">
<i class="fa fa-search search-icon" aria-hidden="true"></i>
Expand All @@ -62,15 +63,15 @@
</a>
</li>

<li class="nav-item">
<!-- <li class="nav-item">
<input
class="nav-link switch"
id="theme-toggle"
onclick="modeSwitcher() "
onclick="modeSwitcher()"
type="checkbox"
name="checkbox"
/>
</li>
</li> -->
</ul>
</nav>

Expand Down
6 changes: 3 additions & 3 deletions _layouts/about-me.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
<div class="col-lg-12">
<div class="row">
<div class="col-lg-4 ">
<div class="col-lg-4">
<div class="card" id="profile-card">
<a href="/">
<img src="{{site.url}}{{site.baseurl}}/assets/img/{{ site.author_logo }}" class="profile-img" />
Expand Down Expand Up @@ -117,7 +117,7 @@ <h1 class="card-title">About</h1>
<div id="author_projects" class="card">
<h1 class="card-title">Projects</h1>
<br />
{% for project in site.author_project_details %} {% if project.visibility
<!-- {% for project in site.author_project_details %} {% if project.visibility
== true %}
<div class="row" id="project-card">
<div class="col-md-6">
Expand All @@ -139,7 +139,7 @@ <h6 class="experience-info">{{ project.project_info}}</h6>
</div>
<br />
{% endif %} {% endfor %}
</div>
</div> -->
{% endif %} {% if site.show_author_work_experiences == true %}
<div class="card">
<h1 class="card-title">Work Experience</h1>
Expand Down
6 changes: 3 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{%- include head.html -%}
<body>
{%- include header.html -%}
<div class="container">
<div class="main-container">
{{ content }}
</div>
<div class="col-lg-12" id="newsletter_footer">
Expand Down Expand Up @@ -40,7 +40,7 @@
}
</script>
<!-- olvy releases -->
<script>
<!-- <script>
var OlvyConfig = {
organisation: "{{site.olvy_organization}}",
target: "#olvy-target",
Expand All @@ -55,6 +55,6 @@
}
};
</script>
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script> -->
</body>
</html>
4 changes: 2 additions & 2 deletions _layouts/full-width.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}
</script>
<!-- olvy releases -->
<script>
<!-- <script>
var OlvyConfig = {
organisation: "{{site.olvy_organization}}",
target: "#olvy-target",
Expand All @@ -55,6 +55,6 @@
}
};
</script>
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script> -->
</body>
</html>
15 changes: 12 additions & 3 deletions _sass/devlopr.scss
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ header {
}

#topNav{
padding-left: 100px;
padding-right: 100px;
padding-left: 15%;
padding-right: 15%;
background-color: var(--main-background-color) !important;
box-shadow: #000 0px 0px 8px;
}
Expand Down Expand Up @@ -786,8 +786,17 @@ footer {




/* Responsive Media Queries */

@media screen and (min-width: 768px) {
.main-container{
margin-left: auto;
margin-right: auto;
width: 70%;
}
}

/*
##Device = Low Resolution Tablets, Mobiles (Landscape)
##Screen = B/w 320px to 480px
Expand Down Expand Up @@ -1018,9 +1027,9 @@ footer {
width: auto;
float:left;
}

}


/* Github Follow Button */
.widget-lg .btn, .widget-lg .social-count {
height: 35px !important;
Expand Down
60 changes: 14 additions & 46 deletions assets/js/mode-switcher.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,19 @@
let systemInitiatedDark = window.matchMedia("(prefers-color-scheme: dark)");
let theme = sessionStorage.getItem('theme');

function prefersColorTest(systemInitiatedDark) {
if (systemInitiatedDark.matches) {
document.documentElement.setAttribute('data-theme', 'dark');
// document.getElementById("theme-toggle").innerHTML = "Light Mode";
sessionStorage.setItem('theme', '');
} else {
document.documentElement.setAttribute('data-theme', 'light');
// document.getElementById("theme-toggle").innerHTML = "Dark Mode";
sessionStorage.setItem('theme', '');
}
}
systemInitiatedDark.addListener(prefersColorTest);

(()=> { modeSwitcher()})();

function modeSwitcher() {
let theme = sessionStorage.getItem('theme');
if (theme === "dark") {
document.documentElement.setAttribute('data-theme', 'light');
sessionStorage.setItem('theme', 'light');
// document.getElementById("theme-toggle").innerHTML = "Dark Mode";
} else if (theme === "light") {
document.documentElement.setAttribute('data-theme', 'dark');
sessionStorage.setItem('theme', 'dark');
// document.getElementById("theme-toggle").innerHTML = "Light Mode";
} else if (systemInitiatedDark.matches) {
document.documentElement.setAttribute('data-theme', 'light');
sessionStorage.setItem('theme', 'light');
//let theme = sessionStorage.getItem('theme');
//console.log("this was triggered");
// document.getElementById("theme-toggle").innerHTML = "Dark Mode";
} else {
document.documentElement.setAttribute('data-theme', 'dark');
sessionStorage.setItem('theme', 'dark');
// document.getElementById("theme-toggle").innerHTML = "Light Mode";
}
}

if (theme === "dark") {
document.documentElement.setAttribute('data-theme', 'dark');
sessionStorage.setItem('theme', 'dark');
document.getElementById("theme-toggle").checked = false;
// document.getElementById("theme-toggle").innerHTML = "Light Mode";
} else if (theme === "light") {
document.documentElement.setAttribute('data-theme', 'light');
sessionStorage.setItem('theme', 'light');
document.getElementById("theme-toggle").checked = true;
// document.getElementById("theme-toggle").innerHTML = "Dark Mode";
}
}

// if (currentTheme === "dark") {
// document.documentElement.setAttribute('data-theme', 'light');
// sessionStorage.setItem('theme', 'light');
// } else if (currentTheme === "light") {
// document.documentElement.setAttribute('data-theme', 'dark');
// sessionStorage.setItem('theme', 'dark');
// }else{
// document.documentElement.setAttribute('data-theme', 'dark');
// sessionStorage.setItem('theme', 'dark');
// }
// }

0 comments on commit b278bb9

Please sign in to comment.