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 20, 2023
1 parent 9779311 commit cf61e57
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 120 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
4 changes: 2 additions & 2 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
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

0 comments on commit cf61e57

Please sign in to comment.