Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
stanieldev committed Nov 2, 2024
1 parent 688bdcc commit 827e1fa
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 17 deletions.
5 changes: 4 additions & 1 deletion .resources/styles/theme_light.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
}

/* Increased accessibility */
.text-highlight {
.sdev-header__text-highlight {
text-decoration: underline !important;
}
.sdev-header__nav-link:hover {
text-decoration: underline;
}
4 changes: 2 additions & 2 deletions .templates/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
}

/* Overriding Classes */
.text-highlight {
.sdev-header__text-highlight {
/* Text */
color: var(--text-highlight) !important;

/* Cursor */
cursor: default !important;

/* Transition */
transition: var(--theme-transition) !important;
transition: var(--sdev-header__theme-transition) !important;
}

/* Box Classes */
Expand Down
11 changes: 6 additions & 5 deletions .templates/header/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
<link rel="stylesheet" href="/.templates/header/header.css">

<!-- Page Script(s) -->
<script defer src="/.templates/fetching.js"></script>
<script defer src="/.templates/header/header.js"></script>
<script defer src="/.templates/header/switchTheme.js"></script>
<script defer src="/.templates/header/switchLanguage.js"></script>
<script src="/.templates/scripts/fetching.js"></script>
<script src="/.templates/header/header.js"></script>
<script src="/.templates/header/switchTheme.js"></script>
<script src="/.templates/header/switchLanguage.js"></script>
</head>


Expand All @@ -61,7 +61,8 @@
<a class="sdev-header__nav-link" href="/home">Home</a>|
<a class="sdev-header__nav-link" href="/about-me">About</a>|
<a class="sdev-header__nav-link" href="/portfolio">Portfolio</a>|
<a class="sdev-header__nav-link" href="/contact">Contact</a>
<a class="sdev-header__nav-link" href="/contact">Contact</a>|
<a class="sdev-header__nav-link" href="/console">Console</a>
</nav>
</div>

Expand Down
2 changes: 1 addition & 1 deletion .templates/header/switchLanguage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Constants
PARENT = "sdev-header__language";
DEFAULT_LANGUAGE = "EN";
TEXT_HIGHLIGHT_CLASS = "text-highlight";
TEXT_HIGHLIGHT_CLASS = "sdev-header__text-highlight";
loadLangStartup();

// Page Startup
Expand Down
2 changes: 1 addition & 1 deletion .templates/header/switchTheme.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Constants
PARENT = "sdev-header__theme";
DEFAULT_THEME = "light";
DEFAULT_THEME = "dark";
THEME_ICON_HTML = document.getElementById("sdev-header__theme-icon");
loadThemeStartup();

Expand Down
3 changes: 0 additions & 3 deletions .templates/page/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ body {

/* Color */
background-color: var(--background);

/* Transition */
transition: var(--theme-transition);
}

/* Overriding Classes */
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions home/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
--tab-spacing: 50px;
}





.text-highlight, .tab:hover {
text-decoration: underline !important;
}


/* Box Classes */
.tab-bar {
/* Geometry */
Expand Down
4 changes: 4 additions & 0 deletions home/home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// When the page is finished loading, add transition: var(--theme-transition); to the body element
document.addEventListener("DOMContentLoaded", function() {
document.body.style.transition = "var(--theme-transition)";
});
8 changes: 4 additions & 4 deletions home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
</script>
<script defer>
$(function(){ $("#page-header").load("/.templates/header/header.html"); });
$(function(){ $("#page-footer").load("/.templates/footer/footer.html"); });
// $(function(){ $("#page-footer").load("/.templates/footer/footer.html"); });
</script>

<!-- Page Style(s) -->
<link rel="stylesheet" href="/.templates/page/default.css">
<link rel="stylesheet" href="/home/home.css">

<!-- Page Script(s) -->
<script defer src="/.templates/fetching.js"></script>
<script defer src="/home/home.js"></script>
<script defer src="/home/switchTab.js"></script>
<script src="/.templates/scripts/fetching.js"></script>
<script src="/home/home.js"></script>
<script src="/home/switchTab.js"></script>
</head>


Expand Down

0 comments on commit 827e1fa

Please sign in to comment.