Skip to content

Commit

Permalink
Merge pull request #850 from SSWConsulting/ui-fix-case-study-page
Browse files Browse the repository at this point in the history
Fixed UI case study page
  • Loading branch information
tombui99 authored Mar 6, 2024
2 parents 3eedc6d + bae5f19 commit 2110974
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
28 changes: 19 additions & 9 deletions ui/src/containers/CaseStudy.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import { navigateTo } from "svelte-router-spa";
</script>

<div class="container mx-auto">
<div class="bg-white shadow-lg rounded px-8 pt-6 pb-8 mb-4 flex flex-col">
<article class="markdown-body">
Expand Down Expand Up @@ -43,7 +44,7 @@
Hence, we had to categorize the custom rules according to each framework, discerning which rules are applicable to Gatsby or NextJS, with the aim of mitigating false positive.
</li>
</ul>
<div style="display: inline-flex">
<div class="logo">
<a href="https://ssw.com.au/">
<img width="129" alt="image" src="/images/SSW-Logo.png">
</a>
Expand All @@ -70,13 +71,22 @@
/>
</a>
<p><strong>Figure: Scan result on SSW Rules without any broken link and code errors/warnings</strong></p>
<h3>Want to find and fix your website code problems?
</h3>
<button
type="button"
on:click={() => {navigateTo("/")}}
class="bgred hover:bg-red-800 text-white font-semibold py-2 px-4 border hover:border-transparent rounded"
>Get Started with CodeAuditor</button>
<div class="mt-20 mb-20">
<h3>Want to find and fix your website code problems?
</h3>
<button
type="button"
on:click={() => {navigateTo("/")}}
class="bgred hover:bg-red-800 text-white font-semibold py-2 px-4 border hover:border-transparent rounded"
>Get Started with CodeAuditor</button>
</div>
<div></div>
</article>
</div>
</div>
</div>

<style>
.markdown-body a {
color: #cc4141
}
</style>
6 changes: 6 additions & 0 deletions ui/src/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,9 @@ button:focus {
transition: opacity 0.2s ease;
z-index: 3000;
}

.logo {
display: flex;
justify-content: space-around;
margin: 2rem 0
}

0 comments on commit 2110974

Please sign in to comment.