slidev-theme-tud 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.envrc +1 -0
- package/.github/workflows/deploy.yml +84 -0
- package/.github/workflows/release.yml +89 -0
- package/.vscode/extensions.json +3 -0
- package/README.md +60 -0
- package/assets/TUD-logo-bl.svg +1 -0
- package/assets/TUD-logo-no-color.svg +1 -0
- package/assets/TUD-logo-text-no-color.svg +1 -0
- package/assets/TUD-logo-text-small-no-color.svg +1 -0
- package/assets/TUD-logo-tr.svg +1 -0
- package/assets/favicons/apple-touch-icon.png +0 -0
- package/assets/favicons/dark/apple-touch-icon.png +0 -0
- package/assets/favicons/dark/favicon-16x16.png +0 -0
- package/assets/favicons/dark/favicon-32x32.png +0 -0
- package/assets/favicons/dark/favicon.ico +0 -0
- package/assets/favicons/favicon-16x16.png +0 -0
- package/assets/favicons/favicon-32x32.png +0 -0
- package/assets/favicons/favicon.ico +0 -0
- package/assets/fonts/FiraCode-VariableFont_wght.ttf +0 -0
- package/assets/fonts/NotoSans-Italic-VariableFont_wdth,wght.ttf +0 -0
- package/assets/fonts/NotoSans-VariableFont_wdth,wght.ttf +0 -0
- package/assets/fonts/OFL.txt +93 -0
- package/components/.gitkeep +0 -0
- package/components/Background.vue +130 -0
- package/components/Footnotes.vue +164 -0
- package/example.mdc +372 -0
- package/flake.lock +61 -0
- package/flake.nix +22 -0
- package/global-bottom.vue +79 -0
- package/global-top.vue +72 -0
- package/layouts/README.md +2 -0
- package/layouts/cols.vue +38 -0
- package/layouts/cover-blue.vue +60 -0
- package/layouts/cover-white.vue +58 -0
- package/layouts/cover.vue +10 -0
- package/layouts/default.vue +15 -0
- package/layouts/section-blue.vue +32 -0
- package/layouts/section-n.vue +171 -0
- package/layouts/section-white.vue +25 -0
- package/layouts/section.vue +10 -0
- package/markdown.ts +196 -0
- package/package.json +70 -0
- package/pnpm-workspace.yaml +23 -0
- package/scripts/background.ts +69 -0
- package/scripts/color.ts +81 -0
- package/scripts/util.ts +51 -0
- package/setup/katex.ts +35 -0
- package/setup/shiki.ts +48 -0
- package/shims.d.ts +27 -0
- package/styles/fade-transition.css +36 -0
- package/styles/font.css +28 -0
- package/styles/index.ts +5 -0
- package/styles/layout.css +184 -0
- package/tsconfig.json +30 -0
- package/uno.config.ts +35 -0
- package/vite.config.ts +29 -0
package/.envrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
use flake
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# GitHub Pages deployment.
|
|
2
|
+
#
|
|
3
|
+
# Publishes two static sites and a root redirect to GitHub Pages:
|
|
4
|
+
# • the VitePress docs → <pages-url>/docs
|
|
5
|
+
# • the Slidev showcase → <pages-url>/demo
|
|
6
|
+
# For a project page the site is served under /<repo>, so every base is
|
|
7
|
+
# derived from BASE = "/slidev-theme-TUD".
|
|
8
|
+
name: Deploy Pages
|
|
9
|
+
|
|
10
|
+
on:
|
|
11
|
+
push:
|
|
12
|
+
branches: [main]
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
# Permissions required by the Pages deployment.
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
pages: write
|
|
19
|
+
id-token: write
|
|
20
|
+
actions: write
|
|
21
|
+
|
|
22
|
+
# Allow only one concurrent deploy; don't cancel an in-progress run.
|
|
23
|
+
concurrency:
|
|
24
|
+
group: pages
|
|
25
|
+
cancel-in-progress: false
|
|
26
|
+
|
|
27
|
+
jobs:
|
|
28
|
+
build:
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
env:
|
|
31
|
+
# Path component of the Pages URL for this project page.
|
|
32
|
+
BASE: /slidev-theme-TUD
|
|
33
|
+
# Absolute URL of the deck. config.ts passes this through as an external
|
|
34
|
+
# link, so VitePress does NOT prefix it with the docs `base`.
|
|
35
|
+
DEMO_URL: https://maxkurze1.github.io/slidev-theme-TUD/demo/
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- uses: pnpm/action-setup@v4
|
|
40
|
+
|
|
41
|
+
- uses: actions/setup-node@v4
|
|
42
|
+
with:
|
|
43
|
+
node-version: 24
|
|
44
|
+
cache: pnpm
|
|
45
|
+
|
|
46
|
+
- run: pnpm install --frozen-lockfile
|
|
47
|
+
|
|
48
|
+
- uses: actions/configure-pages@v5
|
|
49
|
+
|
|
50
|
+
- name: Build docs and demo
|
|
51
|
+
run: |
|
|
52
|
+
rm -rf _build && mkdir -p _build
|
|
53
|
+
|
|
54
|
+
# Docs → /docs
|
|
55
|
+
# DOCS_BASE="${BASE}/docs/" pnpm exec vitepress build docs
|
|
56
|
+
# cp -r docs/.vitepress/dist _build/docs
|
|
57
|
+
|
|
58
|
+
# Slidev deck → /demo
|
|
59
|
+
pnpm exec slidev build example.mdc --base "${BASE}/demo/" --out "$PWD/_build/demo"
|
|
60
|
+
|
|
61
|
+
# Pages root → docs
|
|
62
|
+
printf '<!doctype html><meta http-equiv="refresh" content="0; url=./demo/">\n' > _build/index.html
|
|
63
|
+
|
|
64
|
+
- name: Remove stale github-pages artifact
|
|
65
|
+
env:
|
|
66
|
+
GH_TOKEN: ${{ github.token }}
|
|
67
|
+
run: |
|
|
68
|
+
gh api "repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts" \
|
|
69
|
+
--jq '.artifacts[] | select(.name == "github-pages") | .id' |
|
|
70
|
+
xargs -r -I{} gh api -X DELETE "repos/${{ github.repository }}/actions/artifacts/{}"
|
|
71
|
+
|
|
72
|
+
- uses: actions/upload-pages-artifact@v3
|
|
73
|
+
with:
|
|
74
|
+
path: _build
|
|
75
|
+
|
|
76
|
+
deploy:
|
|
77
|
+
needs: build
|
|
78
|
+
runs-on: ubuntu-latest
|
|
79
|
+
environment:
|
|
80
|
+
name: github-pages
|
|
81
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
82
|
+
steps:
|
|
83
|
+
- id: deployment
|
|
84
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Automatic versioning + npm publish.
|
|
2
|
+
#
|
|
3
|
+
# * Every push to main -> automatic PATCH bump
|
|
4
|
+
# * Manual "Run workflow" dispatch -> pick patch / minor / MAJOR (for breaking releases)
|
|
5
|
+
#
|
|
6
|
+
# The version lives ONLY in git tags -- package.json stays at the 0.0.0
|
|
7
|
+
# placeholder in the repo. Each run derives the next version from the latest
|
|
8
|
+
# tag, writes it into package.json ephemerally (never committed), publishes to
|
|
9
|
+
# npm, then pushes just the tag (pointing at the released commit) and cuts a
|
|
10
|
+
# GitHub release. No commit is ever made to main.
|
|
11
|
+
#
|
|
12
|
+
# Publishing uses npm "trusted publishing" (OIDC) -- no NPM_TOKEN. This requires
|
|
13
|
+
# a Trusted Publisher for this workflow to be configured on npmjs.com (package
|
|
14
|
+
# Settings -> Trusted Publisher -> GitHub Actions), which can only be done after
|
|
15
|
+
# the package's first version exists. Bootstrap that first version once with a
|
|
16
|
+
# local `npm login && pnpm publish`, then let this workflow take over.
|
|
17
|
+
# NOTE: OIDC publish works on pnpm 10.x (pinned via packageManager) but is
|
|
18
|
+
# broken on pnpm 11 -- do not bump pnpm without re-checking pnpm/pnpm#11513.
|
|
19
|
+
name: Release
|
|
20
|
+
|
|
21
|
+
on:
|
|
22
|
+
push:
|
|
23
|
+
branches: [main]
|
|
24
|
+
workflow_dispatch:
|
|
25
|
+
inputs:
|
|
26
|
+
bump:
|
|
27
|
+
description: "Version bump for this manual release"
|
|
28
|
+
type: choice
|
|
29
|
+
options: [patch, minor, major]
|
|
30
|
+
default: major
|
|
31
|
+
|
|
32
|
+
# contents: write -> push the tag and create the GitHub release.
|
|
33
|
+
# id-token: write -> mint the OIDC token npm uses for trusted publishing.
|
|
34
|
+
permissions:
|
|
35
|
+
contents: write
|
|
36
|
+
id-token: write
|
|
37
|
+
|
|
38
|
+
# Serialize releases so two runs can't race on the version.
|
|
39
|
+
concurrency:
|
|
40
|
+
group: release
|
|
41
|
+
cancel-in-progress: false
|
|
42
|
+
|
|
43
|
+
jobs:
|
|
44
|
+
release:
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/checkout@v4
|
|
48
|
+
with:
|
|
49
|
+
# Full history + tags so we can read the latest version tag.
|
|
50
|
+
fetch-depth: 0
|
|
51
|
+
|
|
52
|
+
- uses: pnpm/action-setup@v4
|
|
53
|
+
|
|
54
|
+
- uses: actions/setup-node@v4
|
|
55
|
+
with:
|
|
56
|
+
node-version: 24
|
|
57
|
+
|
|
58
|
+
- name: Compute next version
|
|
59
|
+
id: version
|
|
60
|
+
# Derive from the latest v* tag, then bump the requested part.
|
|
61
|
+
# On push there is no input -> default to a patch bump.
|
|
62
|
+
run: |
|
|
63
|
+
BUMP="${{ github.event.inputs.bump || 'patch' }}"
|
|
64
|
+
LATEST=$(git tag --list 'v*' --sort=-v:refname | head -n1)
|
|
65
|
+
LATEST=${LATEST:-v0.0.0}
|
|
66
|
+
IFS=. read -r MA MI PA <<< "${LATEST#v}"
|
|
67
|
+
case "$BUMP" in
|
|
68
|
+
major) MA=$((MA + 1)); MI=0; PA=0 ;;
|
|
69
|
+
minor) MI=$((MI + 1)); PA=0 ;;
|
|
70
|
+
patch) PA=$((PA + 1)) ;;
|
|
71
|
+
esac
|
|
72
|
+
NEW="$MA.$MI.$PA"
|
|
73
|
+
echo "Bumping $LATEST -> v$NEW ($BUMP)"
|
|
74
|
+
echo "tag=v$NEW" >> "$GITHUB_OUTPUT"
|
|
75
|
+
echo "version=$NEW" >> "$GITHUB_OUTPUT"
|
|
76
|
+
|
|
77
|
+
- name: Write version into package.json (not committed)
|
|
78
|
+
run: npm version "${{ steps.version.outputs.version }}" --no-git-tag-version --allow-same-version
|
|
79
|
+
|
|
80
|
+
- name: Publish to npm (OIDC trusted publishing)
|
|
81
|
+
run: pnpm publish --no-git-checks
|
|
82
|
+
|
|
83
|
+
- name: Tag the released commit
|
|
84
|
+
env:
|
|
85
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
86
|
+
run: |
|
|
87
|
+
git tag "${{ steps.version.outputs.tag }}"
|
|
88
|
+
git push origin "${{ steps.version.outputs.tag }}"
|
|
89
|
+
gh release create "${{ steps.version.outputs.tag }}" --generate-notes
|
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# slidev-theme-TUD
|
|
2
|
+
|
|
3
|
+
A [TU Dresden](https://tu-dresden.de/) theme for [Slidev](https://github.com/slidevjs/slidev) (following the [new 2025 corporate desing](https://tu-dresden.de/tu-dresden/organisation/zentrale-universitaetsverwaltung/dezernat-7/sachgebiet-7-1-corporate-design/cd)).
|
|
4
|
+
|
|
5
|
+
<!--
|
|
6
|
+
Put some screenshots here to demonstrate your theme
|
|
7
|
+
|
|
8
|
+
Live demo: [...]
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
`TODO`
|
|
15
|
+
~To see an example of how to use this theme please refer to [the example repository]()~
|
|
16
|
+
|
|
17
|
+
If you really want to do it the hard way and wire things up manually
|
|
18
|
+
then the following will try to give you some hints at least.
|
|
19
|
+
|
|
20
|
+
You can install this theme into an existing repository using
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
$ pnpm install git+ssh://git@github.com:maxkurze1/slidev-theme-TUD.git
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Then you should be able to use it by setting the `theme` in your frontmatter:
|
|
27
|
+
|
|
28
|
+
```md
|
|
29
|
+
---
|
|
30
|
+
theme: TUD
|
|
31
|
+
---
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Slidev automatically appends the `slidev-theme-` prefix to find the correct package.
|
|
35
|
+
(as described [here](https://sli.dev/guide/theme-addon#use-theme)).
|
|
36
|
+
|
|
37
|
+
## Layouts
|
|
38
|
+
|
|
39
|
+
This theme provides the following layouts:
|
|
40
|
+
|
|
41
|
+
- `cover-blue`
|
|
42
|
+
- `cover-white`
|
|
43
|
+
- `cover`
|
|
44
|
+
- `section-blue`
|
|
45
|
+
- `section-white`
|
|
46
|
+
- `section`
|
|
47
|
+
- `default`
|
|
48
|
+
|
|
49
|
+
## Components
|
|
50
|
+
|
|
51
|
+
This theme provides the following components:
|
|
52
|
+
|
|
53
|
+
None
|
|
54
|
+
|
|
55
|
+
## Contributing
|
|
56
|
+
|
|
57
|
+
- `pnpm install`
|
|
58
|
+
- `pnpm run dev` to start theme preview of `example.md`
|
|
59
|
+
- Edit the `example.md` and style to see the changes
|
|
60
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M34.5 65.5 69 100H29.29L0 70.71V40.584L34.5 34.5Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M65.5 34.5 31 0h39.71L100 29.29v30.126L65.5 65.5Zm-31 31L69 100H29.29L0 70.71V40.584L34.5 34.5Z" class="cls-1" style="stroke-width:1.76381"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 184.318 61.39"><path d="M37.135 19.563 17.575.003h22.514l16.606 16.606v17.08l-19.56 3.45zM19.56 37.138l19.56 19.56H16.606L-.001 40.092v-17.08l19.56-3.45zM79.314 7.684q0 2.365-.88 3.969a5.64 5.64 0 0 1-2.512 2.404q-1.633.802-3.9.802h-4.145V.899h4.516q2.15 0 3.705.783a5.5 5.5 0 0 1 2.385 2.277q.83 1.496.83 3.725zm-2.64.078q0-1.623-.508-2.679-.509-1.054-1.496-1.573t-2.434-.518h-1.818v9.755h1.486q2.405 0 3.587-1.24 1.184-1.243 1.183-3.745M87.054 4.067q.292 0 .635.029t.556.089l-.254 2.307a15 15 0 0 0-.537-.079 5 5 0 0 0-.654-.039q-.51 0-.998.176a2.7 2.7 0 0 0-.899.547q-.41.372-.646.929-.234.558-.234 1.34v5.493H81.54V4.263h1.916l.352 1.837h.117q.313-.567.783-1.036a3.5 3.5 0 0 1 1.065-.733 3.1 3.1 0 0 1 1.28-.264M93.884 4.067q1.428 0 2.464.567 1.035.567 1.594 1.643.555 1.075.556 2.6v1.27h-6.98q.041 1.428.802 2.21.764.78 2.17.781a7.6 7.6 0 0 0 1.8-.195 10 10 0 0 0 1.642-.567v1.954a7.2 7.2 0 0 1-1.623.548q-.841.176-2.033.176-1.545 0-2.748-.596a4.3 4.3 0 0 1-1.876-1.808q-.675-1.213-.674-3.01 0-1.819.616-3.06.615-1.243 1.72-1.877 1.104-.636 2.57-.636m.04 1.838q-1.017 0-1.633.645-.615.645-.713 1.857h4.516q0-.742-.235-1.3a1.94 1.94 0 0 0-.713-.88q-.48-.322-1.222-.322M108.208 11.809q0 1.017-.49 1.74-.488.724-1.446 1.114t-2.385.391q-1.114 0-1.955-.156a6.6 6.6 0 0 1-1.564-.488v-2.113a9.6 9.6 0 0 0 1.73.616 7 7 0 0 0 1.75.245q1.056 0 1.525-.313.47-.312.469-.84a.95.95 0 0 0-.205-.596q-.206-.265-.743-.539a20 20 0 0 0-1.515-.665 12 12 0 0 1-1.652-.79q-.675-.401-1.027-.978-.351-.576-.351-1.438 0-1.425 1.133-2.18 1.134-.751 2.992-.752.997 0 1.867.196.87.195 1.71.586l-.742 1.76q-.724-.312-1.487-.519a5.5 5.5 0 0 0-1.407-.205q-.822 0-1.26.254-.441.255-.441.704 0 .352.215.597.214.244.763.498.546.254 1.525.626.957.37 1.632.782.675.41 1.016.987.343.576.343 1.476M113.9 15.054q-1.837 0-2.981-1.388t-1.144-4.086q0-2.737 1.154-4.125t3.03-1.388q.783 0 1.358.206.578.205 1.007.556.43.353.724.783h.097a23 23 0 0 1-.087-.89 13 13 0 0 1-.05-1.026V0h2.504v14.859h-1.936l-.47-1.388h-.097q-.293.43-.714.791-.42.363-1.017.577-.595.215-1.378.215m.744-2.014q1.367.001 1.935-.772.567-.772.567-2.356V9.6q0-1.701-.538-2.61-.538-.91-1.984-.91-1.114 0-1.71.929-.597.93-.598 2.61 0 1.683.597 2.551.597.87 1.73.87M138.769 4.066q1.798 0 2.796.919.996.92.997 2.971v6.902h-2.464V8.465q0-1.212-.479-1.808-.48-.597-1.476-.597-1.485 0-2.034.938-.546.94-.546 2.699v5.16h-2.484V4.263h1.916l.353 1.427h.117a3.3 3.3 0 0 1 .86-.91q.509-.361 1.124-.536.615-.178 1.32-.177zM126.44 4.067q1.426 0 2.462.567t1.594 1.643.557 2.6v1.27h-6.98q.04 1.428.802 2.21.762.78 2.17.781a7.6 7.6 0 0 0 1.799-.195 10 10 0 0 0 1.642-.567v1.954a7.2 7.2 0 0 1-1.623.548q-.84.176-2.033.176-1.544 0-2.747-.596a4.3 4.3 0 0 1-1.876-1.808q-.675-1.213-.675-3.01 0-1.819.616-3.06.615-1.243 1.72-1.877 1.105-.636 2.571-.636m.039 1.838q-1.017 0-1.633.645t-.713 1.857h4.515q0-.742-.234-1.3a1.94 1.94 0 0 0-.714-.88q-.48-.322-1.221-.322M87.217 24.99q1.798 0 2.796.919.997.92.997 2.971v6.902h-2.464v-6.393q0-1.213-.479-1.809t-1.476-.596q-1.485 0-2.033.938-.547.94-.547 2.698v5.162h-2.484V25.186h1.916l.353 1.427h.117a3.3 3.3 0 0 1 .86-.91q.509-.36 1.124-.537t1.32-.176M94.753 21.08q.547 0 .958.293.41.294.41 1.017 0 .704-.41 1.007a1.57 1.57 0 0 1-.958.302q-.587 0-.987-.302-.402-.303-.402-1.007 0-.723.402-1.017.399-.293.987-.293m1.212 4.106v10.596h-2.484V25.186ZM139.699 21.08q.547 0 .958.293.41.294.41 1.017 0 .704-.41 1.007a1.57 1.57 0 0 1-.958.302q-.586 0-.987-.302-.401-.303-.401-1.007 0-.723.401-1.017.4-.293.987-.293m1.212 4.106v10.596h-2.483V25.186ZM148.218 34.002q.468 0 .898-.088.431-.087.802-.205v1.838q-.39.175-1.017.303a6.6 6.6 0 0 1-1.31.127q-.899 0-1.632-.303-.732-.302-1.173-1.046-.44-.742-.44-2.072v-5.514h-1.427v-1.075l1.564-.86.783-2.248h1.543v2.327h3.011v1.856h-3.01v5.494q0 .743.391 1.105.39.361 1.017.361M101.501 35.782l-4.027-10.596h2.62l2.072 6.256q.117.273.234.674.118.4.225.782t.127.675h.078q.04-.294.147-.675.108-.38.245-.773.135-.39.215-.683l2.11-6.256h2.621l-4.047 10.596zM113.784 24.99q1.426 0 2.462.567t1.594 1.643q.556 1.074.556 2.6v1.27h-6.979q.04 1.428.802 2.21.762.78 2.17.78a7.6 7.6 0 0 0 1.798-.194 10 10 0 0 0 1.643-.567v1.954a7.2 7.2 0 0 1-1.623.548q-.84.176-2.033.176-1.544 0-2.747-.596a4.3 4.3 0 0 1-1.876-1.808q-.675-1.213-.675-3.011 0-1.817.616-3.06.615-1.242 1.72-1.877 1.105-.636 2.571-.635m.038 1.838q-1.015 0-1.633.645-.615.645-.712 1.857h4.515q0-.742-.234-1.3a1.94 1.94 0 0 0-.714-.88q-.48-.323-1.222-.323M125.934 24.99q.293 0 .635.029.341.03.557.089l-.254 2.306a15 15 0 0 0-.538-.078 5 5 0 0 0-.654-.039q-.51 0-.997.176-.49.176-.9.547a2.6 2.6 0 0 0-.645.929q-.235.557-.235 1.34v5.493h-2.483V25.186h1.916l.352 1.837h.118a4.6 4.6 0 0 1 .782-1.036 3.5 3.5 0 0 1 1.065-.733 3.1 3.1 0 0 1 1.28-.264zM136.026 32.732q0 1.017-.489 1.74t-1.446 1.114q-.959.39-2.386.39-1.113.001-1.955-.155a6.6 6.6 0 0 1-1.563-.489V33.22a9.6 9.6 0 0 0 1.73.616 7 7 0 0 0 1.749.244q1.056 0 1.525-.312.47-.312.47-.84a.95.95 0 0 0-.206-.597q-.206-.264-.743-.538a20 20 0 0 0-1.515-.665 12 12 0 0 1-1.652-.79q-.675-.401-1.026-.978-.352-.576-.352-1.438 0-1.425 1.134-2.18 1.134-.751 2.991-.752.997 0 1.867.196.87.195 1.71.586l-.742 1.76q-.723-.312-1.486-.519a5.5 5.5 0 0 0-1.408-.205q-.82 0-1.26.254-.44.255-.44.704-.001.352.214.597.216.245.763.498.547.255 1.525.626.958.37 1.632.782.676.41 1.017.987.342.576.343 1.476zM79.054 30.855q0 1.448-.615 2.61-.616 1.164-1.868 1.838-1.251.675-3.167.674-2.717 0-4.125-1.417t-1.407-3.744v-8.993h2.502v8.739q0 1.701.782 2.492.783.792 2.326.792 1.095 0 1.77-.37.675-.373.997-1.125t.322-1.809v-8.72h2.484zM150.741 25.187h2.64l2.11 6.042q.138.37.255.752a12 12 0 0 1 .351 1.457h.078q.08-.45.265-1.046.184-.597.381-1.163l2.033-6.041h2.6l-4.418 11.749q-.43 1.114-.987 1.906a3.8 3.8 0 0 1-1.359 1.212q-.802.42-1.974.42a6.5 6.5 0 0 1-1.467-.156v-1.954q.215.037.518.078.303.038.636.039.605 0 1.026-.245.42-.244.713-.655a4 4 0 0 0 .49-.938l.351-.9zM175.703 30.467q0 1.308-.352 2.335t-1.006 1.74a4.16 4.16 0 0 1-1.604 1.076q-.949.36-2.121.36-1.095 0-2.014-.36a4.3 4.3 0 0 1-1.584-1.076q-.663-.713-1.046-1.74-.38-1.026-.38-2.336 0-1.778.616-2.991.615-1.213 1.749-1.848 1.133-.636 2.717-.635 1.485 0 2.61.635 1.125.636 1.77 1.848t.645 2.991m-7.567 0q.001 1.093.265 1.905.264.81.821 1.242.557.43 1.437.43t1.436-.43q.559-.43.812-1.242.254-.81.254-1.906 0-1.133-.264-1.916t-.811-1.202-1.447-.42q-1.31 0-1.906.928-.596.93-.597 2.61zM183.282 27.044h-2.561v8.74h-2.463v-8.74h-1.701v-1.173l1.7-.703v-.723q0-1.369.43-2.15a2.48 2.48 0 0 1 1.252-1.125q.821-.342 1.936-.342.78 0 1.407.127.626.128 1.036.284l-.626 1.838a11 11 0 0 0-.732-.187 4 4 0 0 0-.87-.088q-.705 0-1.036.45-.333.45-.333 1.251v.685h2.561zM117.658 45.9q1.798 0 2.796.919.996.92.997 2.971v6.902h-2.464v-6.393q0-1.213-.478-1.809-.48-.596-1.477-.596-1.485 0-2.033.938-.547.94-.547 2.698v5.162h-2.484V46.096h1.916l.353 1.427h.117a3.3 3.3 0 0 1 .86-.91q.508-.36 1.125-.537.615-.177 1.319-.177zM83.408 45.907q1.427 0 2.463.567 1.035.567 1.594 1.642.555 1.075.556 2.6v1.27h-6.98q.04 1.429.803 2.21.761.782 2.17.782a7.6 7.6 0 0 0 1.798-.196 10 10 0 0 0 1.643-.566v1.954a7.2 7.2 0 0 1-1.623.548q-.84.176-2.033.176-1.545 0-2.747-.596a4.3 4.3 0 0 1-1.876-1.809q-.675-1.212-.675-3.01 0-1.818.616-3.06.615-1.242 1.72-1.877 1.104-.636 2.57-.636m.039 1.837q-1.017 0-1.633.646-.615.645-.713 1.857h4.516q0-.742-.235-1.3a1.94 1.94 0 0 0-.713-.88q-.48-.323-1.222-.323M94.774 56.894q-1.486 0-2.62-.576-1.134-.577-1.769-1.78t-.635-3.079q0-1.955.684-3.177t1.857-1.799q1.174-.577 2.659-.577a7.8 7.8 0 0 1 1.681.177q.801.176 1.369.469l-.743 1.936a10 10 0 0 0-1.134-.381 4.5 4.5 0 0 0-1.193-.167q-.86 0-1.456.391t-.89 1.163-.293 1.946q0 1.114.303 1.877t.88 1.143 1.398.381q.84 0 1.555-.205a7 7 0 0 0 1.338-.538v2.072a5.6 5.6 0 0 1-1.3.529q-.715.195-1.69.195zM102.501 45.34q0 .684-.04 1.241-.039.557-.078.91h.137q.333-.549.821-.89a3.7 3.7 0 0 1 1.085-.518 4.3 4.3 0 0 1 1.242-.177q1.192 0 2.052.411a2.87 2.87 0 0 1 1.32 1.261q.46.852.46 2.219v6.901h-2.484v-6.391q0-1.213-.469-1.809t-1.466-.597q-.978 0-1.544.431-.567.43-.802 1.232-.235.801-.235 1.974v5.161h-2.483V41.84h2.483zM74.737 56.698h-2.521V44.871H67.88v-2.13h11.19v2.13h-4.333zM133.584 51.38q0 1.31-.352 2.336-.353 1.028-1.007 1.74a4.16 4.16 0 0 1-1.603 1.075q-.95.362-2.122.362-1.095 0-2.013-.362a4.3 4.3 0 0 1-1.584-1.075q-.665-.712-1.046-1.74-.381-1.027-.381-2.336 0-1.778.616-2.991.615-1.213 1.75-1.848 1.133-.636 2.717-.635 1.485 0 2.61.635 1.125.636 1.769 1.848.645 1.213.645 2.991m-7.567 0q0 1.095.265 1.906.263.81.82 1.242.557.43 1.437.43t1.437-.43q.559-.43.811-1.242.255-.81.254-1.906 0-1.133-.263-1.916-.264-.782-.812-1.202-.547-.42-1.446-.42-1.31 0-1.906.928-.597.93-.597 2.61M150.201 51.38q0 1.31-.352 2.336-.353 1.028-1.007 1.74a4.16 4.16 0 0 1-1.603 1.075q-.95.362-2.121.362-1.096 0-2.014-.362a4.3 4.3 0 0 1-1.584-1.075q-.665-.712-1.046-1.74-.381-1.027-.381-2.336 0-1.778.616-2.991.615-1.213 1.75-1.848 1.133-.636 2.717-.635 1.485 0 2.61.635 1.125.636 1.769 1.848.645 1.213.646 2.991m-7.567 0q0 1.095.265 1.906.263.81.821 1.242.556.43 1.437.43.88 0 1.436-.43.558-.43.812-1.242.252-.81.253-1.906 0-1.133-.263-1.916-.264-.782-.812-1.202-.546-.42-1.446-.42-1.31 0-1.906.928-.597.93-.597 2.61M156.098 45.906q1.075 0 1.848.401.772.4 1.3 1.144h.097l.254-1.349h2.073v10.713q0 1.505-.557 2.522t-1.682 1.535q-1.124.518-2.863.518-1.194 0-2.161-.157a8.3 8.3 0 0 1-1.788-.488v-2.17q.84.39 1.788.605a9.7 9.7 0 0 0 2.14.216q1.272 0 1.955-.645.684-.645.685-1.8v-.312q0-.253.03-.655l.048-.674h-.078a3.5 3.5 0 0 1-1.251 1.163q-.763.42-1.857.42-1.917 0-3.03-1.427-1.116-1.426-1.115-4.046 0-2.6 1.124-4.057 1.124-1.456 3.04-1.457m.685 1.994q-.744 0-1.262.41-.518.411-.781 1.203-.264.791-.265 1.926 0 1.74.597 2.61.595.87 1.75.87.664 0 1.134-.186t.772-.567.45-.967q.146-.587.146-1.39v-.429q0-1.193-.264-1.965t-.821-1.143-1.456-.372M163.271 46.102h2.639l2.11 6.04a14 14 0 0 1 .46 1.506q.087.372.146.704h.078q.079-.45.266-1.046.184-.596.381-1.163l2.033-6.041h2.6l-4.418 11.749q-.43 1.114-.989 1.906a3.8 3.8 0 0 1-1.357 1.212q-.802.42-1.975.42-.489 0-.851-.048a7 7 0 0 1-.615-.108v-1.954q.214.037.517.078.303.038.637.039.603 0 1.025-.245.42-.244.713-.655.296-.411.49-.938l.352-.9zM138.078 56.697h-2.484V41.84h2.484z" class="cls-1"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 178.479 57.244"><path d="M37.135 19.56 17.575 0h22.514l16.606 16.606v17.08l-19.56 3.45zM19.56 37.135l19.56 19.56H16.606L-.001 40.09V23.009l19.56-3.45zM80.112 56.692h7.823V23.32h12.225V16.6H67.878v6.72h12.234zM130.042 41.556c0 1.95-.299 3.603-.882 4.963a6.5 6.5 0 0 1-1.098 1.76q-.661.746-1.56 1.241-.9.496-2.103.75-1.205.254-2.72.254-2.133-.002-3.706-.54c-1.049-.357-1.912-.886-2.606-1.589a6 6 0 0 1-.91-1.205q-.59-1.022-.892-2.415-.301-1.395-.302-3.164v-25.01h-7.768v25.727q-.001 3.338 1.016 6.047a13.4 13.4 0 0 0 3.059 4.765c1.364 1.374 3.046 2.403 5.031 3.085s4.272 1.018 6.858 1.018q2.734 0 5.01-.483 2.278-.484 4.094-1.462a13.8 13.8 0 0 0 3.162-2.307 12.3 12.3 0 0 0 2.25-3.024 15 15 0 0 0 1.335-3.565q.444-1.884.444-3.964V16.601h-7.712zM177.884 30.247q-.595-2.672-1.794-4.832a15.9 15.9 0 0 0-2.92-3.8 16.3 16.3 0 0 0-3.96-2.77q-2.236-1.124-4.891-1.685t-5.72-.56h-13.096v40.092h12.048q3.23 0 6.021-.573t5.139-1.725a16.5 16.5 0 0 0 4.163-2.889 16.6 16.6 0 0 0 3.079-4.043q1.267-2.31 1.897-5.154t.629-6.213q0-3.178-.595-5.848m-24.503-7.037h4.776q2.01 0 3.684.358 1.674.357 3.02 1.063a9 9 0 0 1 2.355 1.771 9.8 9.8 0 0 1 1.71 2.51q.694 1.44 1.047 3.29.352 1.852.352 4.113-.002 3.49-.818 6.065c-.543 1.718-1.35 3.13-2.421 4.255-1.072 1.124-2.418 1.968-4.06 2.537-1.64.567-3.575.856-5.806.856h-3.84z" class="cls-1"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M65.5 34.5 31 0h39.71L100 29.29v30.126L65.5 65.5Z"/></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2014-2020 The Fira Code Project Authors (https://github.com/tonsky/FiraCode)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
File without changes
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
|
3
|
+
import gsap from 'gsap'
|
|
4
|
+
import Two from 'two.js'
|
|
5
|
+
import type { MarkTransform } from '../scripts/background'
|
|
6
|
+
import { colors } from '../scripts/color'
|
|
7
|
+
import { useScale, HEIGHT, WIDTH } from '../scripts/util'
|
|
8
|
+
import rawBl from '../assets/TUD-logo-bl.svg?raw'
|
|
9
|
+
import rawTr from '../assets/TUD-logo-tr.svg?raw'
|
|
10
|
+
|
|
11
|
+
const props = withDefaults(defineProps<{
|
|
12
|
+
bl?: MarkTransform
|
|
13
|
+
tr?: MarkTransform
|
|
14
|
+
fill?: string // undefined := hidden (opacity 0)
|
|
15
|
+
background: string
|
|
16
|
+
}>(), {
|
|
17
|
+
bl: () => ({ scale: 5, x: 640, y: 360 }),
|
|
18
|
+
tr: () => ({ scale: 5, x: 640, y: 360 }),
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
const container = ref<HTMLDivElement | null>(null)
|
|
23
|
+
let two: any = null, bgRect: any = null, blGroup: any = null, trGroup: any = null
|
|
24
|
+
|
|
25
|
+
const slideScale = useScale()
|
|
26
|
+
|
|
27
|
+
// Grow the canvas by PAD (slide-space) px on every side
|
|
28
|
+
// This resolves a glitch that caused 1px white "borders" on the canvas.
|
|
29
|
+
// Note: Keep in sync with the container's `-inset-[1px]` class.
|
|
30
|
+
const PAD = 1
|
|
31
|
+
|
|
32
|
+
const mark = (m: MarkTransform) => ({ ...m, rotate: m.rotate ?? 0 })
|
|
33
|
+
const s = { bl: mark(props.bl), tr: mark(props.tr), col: 'rgba(0,0,0,0)', opacity: 0, bg: 'rgba(0,0,0,0)' }
|
|
34
|
+
|
|
35
|
+
function vars() {
|
|
36
|
+
const hidden = props.fill == null
|
|
37
|
+
return {
|
|
38
|
+
bl: mark(props.bl),
|
|
39
|
+
tr: mark(props.tr),
|
|
40
|
+
col: hidden ? colors.primary : props.fill!,
|
|
41
|
+
opacity: hidden ? 0 : 1,
|
|
42
|
+
bg: props.background,
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// load the SVG into a Two.Group centred s.t. (50,50) sits at the origin
|
|
47
|
+
function buildMark(raw: string) {
|
|
48
|
+
const svg = new DOMParser().parseFromString(raw, 'image/svg+xml').documentElement
|
|
49
|
+
const interpreted = two.interpret(svg, false, false)
|
|
50
|
+
interpreted.mask = null
|
|
51
|
+
interpreted.translation.set(-50, -50)
|
|
52
|
+
const g = two.makeGroup(interpreted)
|
|
53
|
+
g.linewidth = 0
|
|
54
|
+
return g
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function apply() {
|
|
58
|
+
if (!two) return
|
|
59
|
+
bgRect.fill = s.bg
|
|
60
|
+
for (const [g, m] of [[blGroup, s.bl], [trGroup, s.tr]] as const) {
|
|
61
|
+
g.translation.set(m.x, m.y)
|
|
62
|
+
g.scale = m.scale
|
|
63
|
+
g.rotation = m.rotate * Math.PI / 180
|
|
64
|
+
g.opacity = s.opacity
|
|
65
|
+
g.fill = s.col
|
|
66
|
+
}
|
|
67
|
+
two.update()
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
let active = 0
|
|
71
|
+
function track(tween: any) {
|
|
72
|
+
let counted = false // handle `onInterrupt` before `onStart`
|
|
73
|
+
tween.eventCallback('onStart', () => {
|
|
74
|
+
counted = true
|
|
75
|
+
if (active++ === 0) gsap.ticker.add(apply)
|
|
76
|
+
})
|
|
77
|
+
const end = () => {
|
|
78
|
+
if (!counted) return
|
|
79
|
+
counted = false
|
|
80
|
+
if (--active === 0) {
|
|
81
|
+
gsap.ticker.remove(apply)
|
|
82
|
+
apply() // flush the final frame
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
tween.eventCallback('onComplete', end)
|
|
86
|
+
tween.eventCallback('onInterrupt', end)
|
|
87
|
+
return tween
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// keep the canvas resolution matching the pixels it covers
|
|
91
|
+
function resize() {
|
|
92
|
+
if (!two) return
|
|
93
|
+
const dpr = window.devicePixelRatio || 1
|
|
94
|
+
two.renderer.setSize(WIDTH + 2 * PAD, HEIGHT + 2 * PAD, dpr * slideScale.value)
|
|
95
|
+
apply()
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
onMounted(() => {
|
|
99
|
+
two = new Two({ type: Two.Types.canvas, width: WIDTH + 2 * PAD, height: HEIGHT + 2 * PAD, autostart: false })
|
|
100
|
+
two.appendTo(container.value!)
|
|
101
|
+
two.scene.translation.set(PAD, PAD) // keep drawn content anchored despite the pad
|
|
102
|
+
bgRect = two.makeRectangle(WIDTH / 2, HEIGHT / 2, WIDTH + 2 * PAD, HEIGHT + 2 * PAD)
|
|
103
|
+
bgRect.noStroke()
|
|
104
|
+
blGroup = buildMark(rawBl)
|
|
105
|
+
trGroup = buildMark(rawTr)
|
|
106
|
+
Object.assign(s, vars()) // snap to the current target, no intro tween
|
|
107
|
+
resize()
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
watch(slideScale, resize, { flush: 'post' })
|
|
111
|
+
|
|
112
|
+
onBeforeUnmount(() => {
|
|
113
|
+
gsap.killTweensOf([s, s.bl, s.tr])
|
|
114
|
+
gsap.ticker.remove(apply)
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
watch(() => [props.bl, props.tr, props.fill, props.background], () => {
|
|
118
|
+
if (!two) return
|
|
119
|
+
const v = vars()
|
|
120
|
+
track(gsap.timeline({ defaults: { duration: 0.7, ease: 'power2.out', overwrite: 'auto' } })
|
|
121
|
+
.to(s.bl, v.bl, 0)
|
|
122
|
+
.to(s.tr, v.tr, 0)
|
|
123
|
+
.to(s, { col: v.col, bg: v.bg }, 0)
|
|
124
|
+
.to(s, { opacity: v.opacity, duration: 1.2 }, 0))
|
|
125
|
+
}, { deep: true })
|
|
126
|
+
</script>
|
|
127
|
+
|
|
128
|
+
<template>
|
|
129
|
+
<div ref="container" class="absolute -inset-[1px] pointer-events-none"></div>
|
|
130
|
+
</template>
|