Fix(UI): \n 1. Increase margin on cards. \n 2. Move project details above project thumbnail in project section. \n 3. Disable Google Translate on-text-hover behaviour that interferes with page and expected functionality. \n 4. Updated GitHub contributions calendar colour scale to match user-selected page theme.

This commit is contained in:
2025-03-05 18:13:32 +00:00
parent 48c4c9bef6
commit 5d488bd601
10 changed files with 117 additions and 29 deletions

View File

@@ -86,9 +86,6 @@
<h3>Enterprise ERP & E-commerce System</h3> <h3>Enterprise ERP & E-commerce System</h3>
<p>Enhanced ERPNext platform with UK-specific accounting features and e-commerce integration. Supports multi-channel retail operations with automated order processing.</p> <p>Enhanced ERPNext platform with UK-specific accounting features and e-commerce integration. Supports multi-channel retail operations with automated order processing.</p>
<p class="project-detail-button">Show details</p> <p class="project-detail-button">Show details</p>
<div class="project-thumbnail">
<img src="content/images/PARTSEnterprise_store_live-page-home.webp" alt="Live PARTS Enterprise Store">
</div>
<div class="project-detail-container"> <div class="project-detail-container">
<p style="margin: 0.5rem 0"><strong>Key Features:</strong></p> <p style="margin: 0.5rem 0"><strong>Key Features:</strong></p>
<ul style="margin: 1rem 0; list-style-position: inside;"> <ul style="margin: 1rem 0; list-style-position: inside;">
@@ -99,6 +96,9 @@
</ul> </ul>
<p style="margin-bottom: 1rem"><strong>Technologies:</strong> Python, MySQL / MariaDB, Docker</p> <p style="margin-bottom: 1rem"><strong>Technologies:</strong> Python, MySQL / MariaDB, Docker</p>
</div> </div>
<div class="project-thumbnail">
<img src="content/images/PARTSEnterprise_store_live-page-home.webp" alt="Live PARTS Enterprise Store">
</div>
<div class="project-links"> <div class="project-links">
<a href="https://auth.sandbox.teddy.org.uk?target=https%3A%2F%2Ferp.sandbox.partsenterprise.partsltd.co.uk" class="button">Demo ERP</a> <a href="https://auth.sandbox.teddy.org.uk?target=https%3A%2F%2Ferp.sandbox.partsenterprise.partsltd.co.uk" class="button">Demo ERP</a>
<!-- <a href="https://store.sandbox.partsenterprise.partsltd.co.uk" class="button">Demo Store</a> --> <!-- <a href="https://store.sandbox.partsenterprise.partsltd.co.uk" class="button">Demo Store</a> -->
@@ -111,9 +111,6 @@
<h3>partsERP Core Framework</h3> <h3>partsERP Core Framework</h3>
<p>A robust, open-source ERP framework showcasing system architecture and development practices. Over 100K lines of production-grade code.</p> <p>A robust, open-source ERP framework showcasing system architecture and development practices. Over 100K lines of production-grade code.</p>
<p class="project-detail-button">Show details</p> <p class="project-detail-button">Show details</p>
<div class="project-thumbnail">
<img src="content/images/partsERP-page-product_category.webp" alt="Demo PARTS ERP Site">
</div>
<div class="project-detail-container"> <div class="project-detail-container">
<p style="margin: 0.5rem 0"><strong>Key Features:</strong></p> <p style="margin: 0.5rem 0"><strong>Key Features:</strong></p>
<ul style="margin: 1rem 0; list-style-position: inside;"> <ul style="margin: 1rem 0; list-style-position: inside;">
@@ -124,6 +121,9 @@
</ul> </ul>
<p style="margin-bottom: 1rem"><strong>Technologies:</strong> Python - Flask, MySQL / MariaDB, JavaScript</p> <p style="margin-bottom: 1rem"><strong>Technologies:</strong> Python - Flask, MySQL / MariaDB, JavaScript</p>
</div> </div>
<div class="project-thumbnail">
<img src="content/images/partsERP-page-product_category.webp" alt="Demo PARTS ERP Site">
</div>
<div class="project-links"> <div class="project-links">
<a href="https://github.com/Teddy-1024/demo_partsERP.git" class="button">View on GitHub</a> <a href="https://github.com/Teddy-1024/demo_partsERP.git" class="button">View on GitHub</a>
<a href="https://auth.sandbox.teddy.org.uk?target=https%3A%2F%2Fsandbox.partsERP.teddy.org.uk/" class="button">Demo Site</a> <a href="https://auth.sandbox.teddy.org.uk?target=https%3A%2F%2Fsandbox.partsERP.teddy.org.uk/" class="button">Demo Site</a>
@@ -135,11 +135,6 @@
<h3>Financial Data Reconciliation Tool</h3> <h3>Financial Data Reconciliation Tool</h3>
<p>VBA Excel automation that simplifies complex data processing between multiple spreadsheets.</p> <p>VBA Excel automation that simplifies complex data processing between multiple spreadsheets.</p>
<p class="project-detail-button">Show details</p> <p class="project-detail-button">Show details</p>
<!--
<div class="project-thumbnail">
<img src="content/images/partsERP-page-product_category.webp" alt="Demo PARTS ERP Site">
</div>
-->
<div class="project-detail-container"> <div class="project-detail-container">
<p style="margin: 0.5rem 0"><strong>Key Features:</strong></p> <p style="margin: 0.5rem 0"><strong>Key Features:</strong></p>
<ul style="margin: 1rem 0; list-style-position: inside;"> <ul style="margin: 1rem 0; list-style-position: inside;">
@@ -150,6 +145,11 @@
</ul> </ul>
<p style="margin-bottom: 1rem"><strong>Technologies:</strong> VBA, Excel Object Model</p> <p style="margin-bottom: 1rem"><strong>Technologies:</strong> VBA, Excel Object Model</p>
</div> </div>
<!--
<div class="project-thumbnail">
<img src="content/images/partsERP-page-product_category.webp" alt="Demo PARTS ERP Site">
</div>
-->
<div class="project-links"> <div class="project-links">
<a href="https://github.com/Teddy-1024/demo_VBA.git" class="button">View on GitHub</a> <a href="https://github.com/Teddy-1024/demo_VBA.git" class="button">View on GitHub</a>
</div> </div>
@@ -252,8 +252,13 @@
function initGoogleTranslateElement() { function initGoogleTranslateElement() {
new google.translate.TranslateElement({ new google.translate.TranslateElement({
pageLanguage: 'en', pageLanguage: 'en',
// autoDisplay: false,
// layout: google.translate.TranslateElement.InlineLayout.SIMPLE // layout: google.translate.TranslateElement.InlineLayout.SIMPLE
layout: google.translate.TranslateElement.InlineLayout.VERTICAL layout: google.translate.TranslateElement.InlineLayout.VERTICAL,
// Disable the automatic translation popups
gaTrack: false,
gaId: '',
multilanguagePage: false
}, 'google_translate_element'); }, 'google_translate_element');
} }
</script> </script>

View File

@@ -1,12 +1,6 @@
/* Experience */ /* Experience */
.experience-card { .experience-card {
background: var(--text-background-colour);
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
margin-top: 2rem;
} }
.experience-card h3 { .experience-card h3 {
margin-bottom: 0; margin-bottom: 0;

View File

@@ -6,9 +6,4 @@
} }
.expertise-card { .expertise-card {
background: var(--text-background-colour);
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
} }

View File

@@ -22,3 +22,36 @@
color: var(--text-colour); color: var(--text-colour);
font-size: 1rem; font-size: 1rem;
} }
/* Colour scale to match theme */
/*
.github-calendar table tbody td:not(:first-child),
div.ContributionCalendar-day {
border: solid 1px grey;
}
*/
td.ContributionCalendar-day[data-level="0"], /*[aria-describedby="contribution-graph-legend-level-4"]*/
div.ContributionCalendar-day[data-level="0"]
{
background-color: var(--github-calendar-level-0-colour);
}
td.ContributionCalendar-day[data-level="1"],
div.ContributionCalendar-day[data-level="1"]
{
background-color: var(--github-calendar-level-1-colour);
}
td.ContributionCalendar-day[data-level="2"],
div.ContributionCalendar-day[data-level="2"]
{
background-color: var(--github-calendar-level-2-colour);
}
td.ContributionCalendar-day[data-level="3"],
div.ContributionCalendar-day[data-level="3"]
{
background-color: var(--github-calendar-level-3-colour);
}
td.ContributionCalendar-day[data-level="4"],
div.ContributionCalendar-day[data-level="4"]
{
background-color: var(--github-calendar-level-4-colour);
}

View File

@@ -13,3 +13,32 @@ iframe.skiptranslate {
body { body {
top: 0px !important; top: 0px !important;
} }
/* Disable Google Translate hover popups and text highlighting */
.goog-text-highlight:not(#google_translate_element *),
.goog-tooltip:not(#google_translate_element *),
.goog-tooltip-bubble:not(#google_translate_element *),
.goog-te-balloon-frame:not(#google_translate_element *),
.VIpgJd-suEOdc:not(#google_translate_element *),
#goog-gt-tt:not(#google_translate_element *),
.VIpgJd-yAWNEb-L7lbkb:not(#google_translate_element *),
div.skiptranslate.goog-te-gadget span:not(#google_translate_element *),
.goog-te-banner-frame:not(#google_translate_element *),
.goog-te-gadget-simple span.text:not(#google_translate_element *),
.goog-te-gadget-icon:not(#google_translate_element *),
.goog-te-gadget-icon:not(#google_translate_element *)::before {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
height: 0 !important;
pointer-events: none !important;
}
/* Keep text selection normal */
* {
-webkit-touch-callout: default !important;
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
user-select: text !important;
}

View File

@@ -20,6 +20,18 @@ ul, li {
} }
/* Common card styles */ /* Common card styles */
.expertise-card,
.project-card,
.experience-card {
background: var(--text-background-colour);
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
margin-top: 2rem;
padding-left: 1.5vw;
padding-right: 1.5vw;
}
.expertise-card h3, .expertise-card h3,
.project-card h3, .project-card h3,
.experience-card h3 { .experience-card h3 {

View File

@@ -24,3 +24,4 @@ a {
a:visited { a:visited {
color: var(--text-link-visited-colour) color: var(--text-link-visited-colour)
} }

View File

@@ -13,7 +13,10 @@ nav ul {
justify-content: center; justify-content: center;
gap: 2rem; gap: 2rem;
} }
nav ul li {
margin-top: auto;
margin-bottom: auto;
}
nav a { nav a {
color: var(--text-background-colour); color: var(--text-background-colour);
text-decoration: none; text-decoration: none;

View File

@@ -10,10 +10,6 @@
.project-card-gridslot { .project-card-gridslot {
} }
.project-card { .project-card {
background: var(--text-background-colour);
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
height: fit-content; height: fit-content;
} }

View File

@@ -9,6 +9,11 @@
--text-background-colour: white; --text-background-colour: white;
--text-link-unvisited-colour: #0000EE; --text-link-unvisited-colour: #0000EE;
--text-link-visited-colour: #551A8B; --text-link-visited-colour: #551A8B;
--github-calendar-level-0-colour: var(--color-calendar-graph-day-bg);
--github-calendar-level-1-colour: var(--color-calendar-graph-day-L1-bg);
--github-calendar-level-2-colour: var(--color-calendar-graph-day-L2-bg);
--github-calendar-level-3-colour: var(--color-calendar-graph-day-L3-bg);
--github-calendar-level-4-colour: var(--color-calendar-graph-day-L4-bg);
} }
:root[data-theme="purple"] { :root[data-theme="purple"] {
/* Purple theme /* Purple theme
@@ -23,6 +28,11 @@
/* /*
--text-link-unvisited-colour: #0000EE; --text-link-unvisited-colour: #0000EE;
--text-link-visited-colour: #551A8B; --text-link-visited-colour: #551A8B;
--github-calendar-level-0-colour: var(--color-calendar-graph-day-bg);
--github-calendar-level-1-colour: var(--color-calendar-graph-day-L1-bg);
--github-calendar-level-2-colour: var(--color-calendar-graph-day-L2-bg);
--github-calendar-level-3-colour: var(--color-calendar-graph-day-L3-bg);
--github-calendar-level-4-colour: var(--color-calendar-graph-day-L4-bg);
*/ */
} }
:root[data-theme="red"], :root[data-theme="red"],
@@ -40,6 +50,11 @@
/* /*
--text-link-unvisited-colour: #0000EE; --text-link-unvisited-colour: #0000EE;
--text-link-visited-colour: #551A8B; --text-link-visited-colour: #551A8B;
--github-calendar-level-0-colour: var(--color-calendar-graph-day-bg);
--github-calendar-level-1-colour: var(--color-calendar-graph-day-L1-bg);
--github-calendar-level-2-colour: var(--color-calendar-graph-day-L2-bg);
--github-calendar-level-3-colour: var(--color-calendar-graph-day-L3-bg);
--github-calendar-level-4-colour: var(--color-calendar-graph-day-L4-bg);
*/ */
} }
:root[data-theme="dark"] { :root[data-theme="dark"] {
@@ -60,6 +75,11 @@
--text-background-colour: black; /* Dark Red */ --text-background-colour: black; /* Dark Red */
--text-link-unvisited-colour: #ADD8E6; /* Light Blue */ --text-link-unvisited-colour: #ADD8E6; /* Light Blue */
--text-link-visited-colour: #D8BFD8; /* Thistle (Light Purple) */ --text-link-visited-colour: #D8BFD8; /* Thistle (Light Purple) */
--github-calendar-level-0-colour: rgba(30, 30, 30, 255); /* var(--text-background-colour); */
--github-calendar-level-1-colour: #ff5252;
--github-calendar-level-2-colour: #f30000;
--github-calendar-level-3-colour: #c10000;
--github-calendar-level-4-colour: #840000;
} }
/* Toggle light mode / dark mode button */ /* Toggle light mode / dark mode button */