Skip to content

Commit

Permalink
Merge pull request #857 from SSWConsulting/add-breadcrumb-case-study
Browse files Browse the repository at this point in the history
Added breadcrumb and head title to case study page
  • Loading branch information
tombui99 authored Mar 14, 2024
2 parents d884435 + a554d95 commit d1b1114
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ui/src/containers/About.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
<script>
import { navigateTo } from "svelte-router-spa";
import Icon from "../components/misccomponents/Icon.svelte";
</script>
<div class="container mx-auto">
<div>
<p class="hidden md:block text-sm textdark pb-3 pt-4">
<a
class="inline-block align-baseline text-blue hover:text-blue-darker"
href="/">
Home
</a>
<Icon cssClass="inline-block" height="20" width="20">
<path d="M9 5l7 7-7 7" />
</Icon>
<a
class="inline-block align-baseline text-blue hover:text-blue-darker"
href="/about">
About
</a>
<Icon cssClass="inline-block" height="20" width="20">
<path d="M9 5l7 7-7 7" />
</Icon>
</p>
</div>

<div class="bg-white shadow-lg rounded px-8 pt-6 pb-8 mb-4 flex flex-col">
<article class="markdown-body">
<h1>About SSW</h1>
Expand Down
40 changes: 40 additions & 0 deletions ui/src/containers/CaseStudy.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,48 @@
<script>
import { navigateTo } from "svelte-router-spa";
import Icon from "../components/misccomponents/Icon.svelte";
let title = 'SSW CodeAuditor - Case Study';
// Function to update the page title
function updateTitle(newTitle) {
document.title = newTitle;
}
// Listen for changes in the title variable
$: {
updateTitle(title);
}
</script>

<div class="container mx-auto">
<div>
<p class="hidden md:block text-sm textdark pb-3 pt-4">
<a
class="inline-block align-baseline text-blue hover:text-blue-darker"
href="/">
Home
</a>
<Icon cssClass="inline-block" height="20" width="20">
<path d="M9 5l7 7-7 7" />
</Icon>
<a
class="inline-block align-baseline text-blue hover:text-blue-darker"
href="/about">
About
</a>
<Icon cssClass="inline-block" height="20" width="20">
<path d="M9 5l7 7-7 7" />
</Icon>
<span class="inline-block align-baseline text-blue hover:text-blue-darker">
Case Study
</span>
<Icon cssClass="inline-block" height="20" width="20">
<path d="M9 5l7 7-7 7" />
</Icon>
</p>
</div>

<div class="bg-white shadow-lg rounded px-8 pt-6 pb-8 mb-4 flex flex-col">
<article class="markdown-body">
<h1>SSW Sites</h1>
Expand Down

0 comments on commit d1b1114

Please sign in to comment.