Fix Photos CI formatting and restore the portfolio link
This commit is contained in:
parent
6e3b30385a
commit
f2797730f7
4 changed files with 29 additions and 11 deletions
|
|
@ -7,12 +7,10 @@ on:
|
||||||
branches: ['main']
|
branches: ['main']
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
runs-on: ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
|
runs-on:
|
||||||
|
${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
|
||||||
'renovate/')) && 'renovate' || 'docker' }}
|
'renovate/')) && 'renovate' || 'docker' }}
|
||||||
# Superseded validation runs can be cancelled freely.
|
# Superseded validation runs can be cancelled freely.
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|
@ -48,13 +46,16 @@ jobs:
|
||||||
- name: End-to-end smoke test
|
- name: End-to-end smoke test
|
||||||
run: npm run test:e2e
|
run: npm run test:e2e
|
||||||
|
|
||||||
if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
|
if:
|
||||||
|
${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
|
||||||
github.event.pull_request.user.login)) }}
|
github.event.pull_request.user.login)) }}
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
|
runs-on:
|
||||||
|
${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
|
||||||
'renovate/')) && 'renovate' || 'docker' }}
|
'renovate/')) && 'renovate' || 'docker' }}
|
||||||
needs: validate
|
needs: validate
|
||||||
if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
|
if:
|
||||||
|
${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
|
||||||
github.event.pull_request.user.login)) && (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
|
github.event.pull_request.user.login)) && (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
|
||||||
# Never cancel an in-flight deploy: rsync --delete must finish or the live
|
# Never cancel an in-flight deploy: rsync --delete must finish or the live
|
||||||
# site can be left half-deleted. Newer deploys queue behind this one.
|
# site can be left half-deleted. Newer deploys queue behind this one.
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node scripts/generate-assets.mjs && vite --host 0.0.0.0",
|
"dev": "node scripts/generate-assets.mjs && vite --host 0.0.0.0",
|
||||||
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix && prettier --write .",
|
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix && prettier --write .",
|
||||||
"lint:check": "node scripts/generate-assets.mjs && node scripts/check-image-metadata.mjs && tsc --noEmit && eslint . && stylelint \"src/**/*.scss\" && prettier --check .",
|
"lint:check": "prettier --check . && tsc --noEmit && eslint . && stylelint \"src/**/*.scss\" && node scripts/check-image-metadata.mjs && node scripts/generate-assets.mjs",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:e2e": "playwright test",
|
"test:e2e": "playwright test",
|
||||||
"build": "node scripts/generate-assets.mjs && vite build"
|
"build": "node scripts/generate-assets.mjs && vite build"
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="site-header">
|
<header class="site-header">
|
||||||
|
<a class="portfolio-link" href="https://schmelczer.dev/">Portfolio</a>
|
||||||
<button
|
<button
|
||||||
id="slideshow-toggle"
|
id="slideshow-toggle"
|
||||||
class="slideshow-toggle"
|
class="slideshow-toggle"
|
||||||
|
|
|
||||||
|
|
@ -76,12 +76,21 @@ img {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.portfolio-link {
|
||||||
|
position: absolute;
|
||||||
|
inset-block-end: var(--space-s);
|
||||||
|
color: inherit;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
.gallery {
|
.gallery {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
min-height: 100dvh;
|
min-height: 100dvh;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(5rem, 10vmin) minmax(0, 1fr) minmax(7rem,
|
grid-template-columns: minmax(5rem, 10vmin) minmax(0, 1fr) minmax(
|
||||||
14vmin);
|
7rem,
|
||||||
|
14vmin
|
||||||
|
);
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
@ -237,6 +246,13 @@ img {
|
||||||
padding: var(--space-s);
|
padding: var(--space-s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.portfolio-link {
|
||||||
|
position: static;
|
||||||
|
grid-column: 1;
|
||||||
|
grid-row: 2;
|
||||||
|
justify-self: start;
|
||||||
|
}
|
||||||
|
|
||||||
.slideshow-toggle {
|
.slideshow-toggle {
|
||||||
position: static;
|
position: static;
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue