Skip to content

Commit

Permalink
Profile pic refresh
Browse files Browse the repository at this point in the history
Upgrade dependencies
Styling tweaks
  • Loading branch information
rosslh committed Aug 21, 2023
1 parent 9779311 commit 9e41c2c
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 123 deletions.
Binary file added assets/headshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/headshot.png
Binary file not shown.
189 changes: 90 additions & 99 deletions package-lock.json

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"devDependencies": {
"@babel/core": "^7.22.10",
"@babel/eslint-parser": "^7.22.10",
"@iconify/json": "^2.2.102",
"@playwright/test": "^1.37.0",
"@iconify/json": "^2.2.103",
"@playwright/test": "^1.37.1",
"@sveltejs/adapter-netlify": "^2.0.8",
"@sveltejs/kit": "1.22.6",
"@types/apca-w3": "^0.1.0",
Expand All @@ -48,7 +48,7 @@
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-svelte": "^2.32.4",
"eslint-plugin-unicorn": "^48.0.1",
Expand All @@ -60,16 +60,15 @@
"lodash-es": "^4.17.21",
"logrocket": "^5.0.1",
"markdown-json": "^1.6.1",
"npm-check-updates": "^16.11.1",
"npm-check-updates": "^16.12.2",
"postcss-html": "^1.5.0",
"prettier": "^3.0.1",
"prettier": "^3.0.2",
"prettier-plugin-svelte": "^3.0.3",
"sass": "^1.65.1",
"simple-icons": "^9.10.0",
"sass": "^1.66.1",
"simple-icons": "^9.11.0",
"slugify": "^1.6.6",
"stylelint": "^15.10.2",
"stylelint": "^15.10.3",
"stylelint-config-standard-scss": "^10.0.0",
"sugarss": "^4.0.1",
"svelte": "4.2.0",
"svelte-check": "^3.5.0",
"svelte-meta-tags": "^2.8.0",
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/sidebar/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
{:else}
<picture>
<source srcset="/headshot.webp" type="image/webp" />
<source srcset="/headshot.png" type="image/png" />
<source srcset="/headshot.jpg" type="image/jpeg" />
<img
data-testid="headshot-image"
src="/headshot.png"
src="/headshot.jpg"
alt="Ross Hill"
width={remsToPixels(10)}
height={remsToPixels(10)}
Expand Down Expand Up @@ -84,7 +84,7 @@
<AnimatedName />
</div>
<p class="subtitle role do-transition" data-testid="job-title">
Software Developer
Software Engineer
</p>
<p class="subtitle email">
<a href="mailto:[email protected]" data-testid="email-address"
Expand Down
13 changes: 5 additions & 8 deletions src/lib/styles/design-system.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $other-hue: 135;
}

@mixin dark-theme() {
$theme-saturation: 25%;
$theme-saturation: 35%;
$category-saturation: 75%;
$category-lightness: 65%;

Expand Down Expand Up @@ -102,7 +102,7 @@ $other-hue: 135;

@mixin cyberpunk-theme() {
$yellow: hsluv(75, 82%, 85%);
$pink-hue: 320;
$pink-hue: 310;
$blue-hue: 270;

$job-hue: 40;
Expand Down Expand Up @@ -132,21 +132,19 @@ $other-hue: 135;
--color-foreground: #{hsluv($blue-hue, $foreground-saturation, 80%)};
--color-link: #{$yellow};
--color-subtitle: #{hsluv($blue-hue, $foreground-saturation, 70%)};
--color-focus-outline: #{hsluv($pink-hue, $border-saturation, 35%)};
--color-focus-outline: #{hsluv($pink-hue, $border-saturation, 37%)};
--color-timeline: #{hsluv($blue-hue, $background-saturation, 28%)};
--color-border: #{hsluv($pink-hue, $border-saturation, 35%)};
--color-border: #{hsluv($pink-hue, $border-saturation, 37%)};
--color-panel-background: #{hsluv($blue-hue, $background-saturation, 6%)};
--color-background: #{hsluv($blue-hue, $background-saturation, 3.5%)};
--color-background: #{hsluv($blue-hue, $background-saturation, 3%)};

font-family: "IBM Plex Mono", monospace;
}

// If prefers-color-scheme unsupported, default to light theme
.app-wrapper {
@include light-theme();
}

// Unless manually overridden, use system preferred theme
@media (prefers-color-scheme: light) {
div.app-wrapper {
@include light-theme();
Expand All @@ -158,7 +156,6 @@ $other-hue: 135;
}
}

// If manually set, use that theme
div.app-wrapper[data-theme="light"] {
@include light-theme();
}
Expand Down
3 changes: 1 addition & 2 deletions src/lib/styles/normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ code,
kbd,
pre,
samp {
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier,
monospace;
font-family: "IBM Plex Mono", monospace;
font-size: 1em;
}
small {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import CopyrightNotice from "$lib/components/CopyrightNotice.svelte";
const intro =
"I am a software developer and I'm always on the lookout for cool new technologies. I like to spend my time reading, working on side projects, and exploring the great city of Toronto.";
"I develop software and I'm always on the lookout for cool new technologies. I like to spend my time reading, working on side projects, and exploring the great city of Toronto.";
const meta = {
title: "Ross Hill: Website and Portfolio",
Expand Down
2 changes: 1 addition & 1 deletion tests/specs/sidebar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test("Sidebar information is displayed", async ({ page }) => {
await expectCount(headshotImage, 1);

const jobTitle = getLocator([sidebar, "job-title"]);
await expectTextContent(jobTitle, "Software Developer");
await expectTextContent(jobTitle, "Software Engineer");

const emailAddress = getLocator([sidebar, "email-address"]);
await expectTextContent(emailAddress, "[email protected]");
Expand Down

0 comments on commit 9e41c2c

Please sign in to comment.