Compare commits
1 Commits
renovate/p
...
0d1748d907
| Author | SHA1 | Date | |
|---|---|---|---|
|
0d1748d907
|
@@ -60,7 +60,7 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.14'
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Install GuardDog
|
- name: Install GuardDog
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ ENV SITE_URL=https://www.alexlebens.dev
|
|||||||
ENV DIRECTUS_URL=https://directus.alexlebens.net
|
ENV DIRECTUS_URL=https://directus.alexlebens.net
|
||||||
ENV PORT=4321
|
ENV PORT=4321
|
||||||
|
|
||||||
LABEL version="2.12.0"
|
LABEL version="2.10.1"
|
||||||
LABEL description="Astro based personal website"
|
LABEL description="Astro based personal website"
|
||||||
|
|
||||||
EXPOSE $PORT
|
EXPOSE $PORT
|
||||||
|
|||||||
11
package.json
11
package.json
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "site-profile",
|
"name": "site-profile",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.12.0",
|
"version": "2.10.1",
|
||||||
"homepage": "https://www.alexlebens.dev",
|
"homepage": "https://www.alexlebens.dev",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues",
|
"url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues",
|
||||||
@@ -39,16 +39,18 @@
|
|||||||
"@iconify-json/pajamas": "^1.2.15",
|
"@iconify-json/pajamas": "^1.2.15",
|
||||||
"@iconify-json/simple-icons": "^1.2.70",
|
"@iconify-json/simple-icons": "^1.2.70",
|
||||||
"@playform/compress": "^0.2.1",
|
"@playform/compress": "^0.2.1",
|
||||||
"@swup/astro": "^1.8.0",
|
"@swup/astro": "^1.7.0",
|
||||||
"@tailwindcss/postcss": "^4.1.18",
|
"@tailwindcss/postcss": "^4.1.18",
|
||||||
"@tailwindcss/vite": "^4.1.18",
|
"@tailwindcss/vite": "^4.1.18",
|
||||||
"@types/react": "^19.2.14",
|
"@types/react": "^19.2.14",
|
||||||
"@types/unist": "^3.0.3",
|
"@types/unist": "^3.0.3",
|
||||||
"astro": "^5.17.2",
|
"astro": "^5.17.2",
|
||||||
|
"astro-compressor": "^1.2.0",
|
||||||
"astro-icon": "^1.1.5",
|
"astro-icon": "^1.1.5",
|
||||||
"marked": "^17.0.2",
|
"marked": "^17.0.2",
|
||||||
"marked-shiki": "^1.2.1",
|
"marked-shiki": "^1.2.1",
|
||||||
"mdast-util-to-string": "^4.0.0",
|
"mdast-util-to-string": "^4.0.0",
|
||||||
|
"motion": "^12.34.0",
|
||||||
"preline": "^4.0.1",
|
"preline": "^4.0.1",
|
||||||
"react": "^19.2.4",
|
"react": "^19.2.4",
|
||||||
"react-dom": "^19.2.4",
|
"react-dom": "^19.2.4",
|
||||||
@@ -60,12 +62,13 @@
|
|||||||
"ultrahtml": "^1.6.0"
|
"ultrahtml": "^1.6.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint-react/eslint-plugin": "^2.13.0",
|
"@eslint-react/eslint-plugin": "^2.12.4",
|
||||||
"@tailwindcss/forms": "^0.5.11",
|
"@tailwindcss/forms": "^0.5.11",
|
||||||
"@tailwindcss/typography": "^0.5.19",
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
|
"astro-icon": "^1.1.5",
|
||||||
"eslint": "^10.0.0",
|
"eslint": "^10.0.0",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-astro": "^1.6.0",
|
"eslint-plugin-astro": "^1.5.0",
|
||||||
"eslint-plugin-format": "^1.4.0",
|
"eslint-plugin-format": "^1.4.0",
|
||||||
"eslint-plugin-react": "^7.37.5",
|
"eslint-plugin-react": "^7.37.5",
|
||||||
"eslint-plugin-react-hooks": "^7.0.1",
|
"eslint-plugin-react-hooks": "^7.0.1",
|
||||||
|
|||||||
367
pnpm-lock.yaml
generated
367
pnpm-lock.yaml
generated
@@ -45,8 +45,8 @@ importers:
|
|||||||
specifier: ^0.2.1
|
specifier: ^0.2.1
|
||||||
version: 0.2.1(@types/node@25.2.3)(jiti@2.6.1)(rollup@2.79.2)(typescript@5.9.3)(yaml@2.8.2)
|
version: 0.2.1(@types/node@25.2.3)(jiti@2.6.1)(rollup@2.79.2)(typescript@5.9.3)(yaml@2.8.2)
|
||||||
'@swup/astro':
|
'@swup/astro':
|
||||||
specifier: ^1.8.0
|
specifier: ^1.7.0
|
||||||
version: 1.8.0(@types/babel__core@7.20.5)
|
version: 1.7.0(@types/babel__core@7.20.5)
|
||||||
'@tailwindcss/postcss':
|
'@tailwindcss/postcss':
|
||||||
specifier: ^4.1.18
|
specifier: ^4.1.18
|
||||||
version: 4.1.18
|
version: 4.1.18
|
||||||
@@ -62,6 +62,9 @@ importers:
|
|||||||
astro:
|
astro:
|
||||||
specifier: ^5.17.2
|
specifier: ^5.17.2
|
||||||
version: 5.17.2(@types/node@25.2.3)(jiti@2.6.1)(lightningcss@1.30.2)(rollup@2.79.2)(terser@5.44.1)(typescript@5.9.3)(yaml@2.8.2)
|
version: 5.17.2(@types/node@25.2.3)(jiti@2.6.1)(lightningcss@1.30.2)(rollup@2.79.2)(terser@5.44.1)(typescript@5.9.3)(yaml@2.8.2)
|
||||||
|
astro-compressor:
|
||||||
|
specifier: ^1.2.0
|
||||||
|
version: 1.2.0
|
||||||
astro-icon:
|
astro-icon:
|
||||||
specifier: ^1.1.5
|
specifier: ^1.1.5
|
||||||
version: 1.1.5
|
version: 1.1.5
|
||||||
@@ -74,6 +77,9 @@ importers:
|
|||||||
mdast-util-to-string:
|
mdast-util-to-string:
|
||||||
specifier: ^4.0.0
|
specifier: ^4.0.0
|
||||||
version: 4.0.0
|
version: 4.0.0
|
||||||
|
motion:
|
||||||
|
specifier: ^12.34.0
|
||||||
|
version: 12.34.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
preline:
|
preline:
|
||||||
specifier: ^4.0.1
|
specifier: ^4.0.1
|
||||||
version: 4.0.1
|
version: 4.0.1
|
||||||
@@ -103,8 +109,8 @@ importers:
|
|||||||
version: 1.6.0
|
version: 1.6.0
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@eslint-react/eslint-plugin':
|
'@eslint-react/eslint-plugin':
|
||||||
specifier: ^2.13.0
|
specifier: ^2.12.4
|
||||||
version: 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
version: 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@tailwindcss/forms':
|
'@tailwindcss/forms':
|
||||||
specifier: ^0.5.11
|
specifier: ^0.5.11
|
||||||
version: 0.5.11(tailwindcss@4.1.18)
|
version: 0.5.11(tailwindcss@4.1.18)
|
||||||
@@ -118,7 +124,7 @@ importers:
|
|||||||
specifier: ^10.1.8
|
specifier: ^10.1.8
|
||||||
version: 10.1.8(eslint@10.0.0(jiti@2.6.1))
|
version: 10.1.8(eslint@10.0.0(jiti@2.6.1))
|
||||||
eslint-plugin-astro:
|
eslint-plugin-astro:
|
||||||
specifier: ^1.6.0
|
specifier: ^1.5.0
|
||||||
version: 1.6.0(eslint@10.0.0(jiti@2.6.1))
|
version: 1.6.0(eslint@10.0.0(jiti@2.6.1))
|
||||||
eslint-plugin-format:
|
eslint-plugin-format:
|
||||||
specifier: ^1.4.0
|
specifier: ^1.4.0
|
||||||
@@ -1162,40 +1168,40 @@ packages:
|
|||||||
resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}
|
resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}
|
||||||
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
|
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
|
||||||
|
|
||||||
'@eslint-react/ast@2.13.0':
|
'@eslint-react/ast@2.12.4':
|
||||||
resolution: {integrity: sha512-43+5gmqV3MpatTzKnu/V2i/jXjmepvwhrb9MaGQvnXHQgq9J7/C7VVCCcwp6Rvp2QHAFquAAdvQDSL8IueTpeA==}
|
resolution: {integrity: sha512-UNr5OsaNXfDBcIWZtahlNBjqEQeysAU4NzPqsxnogghUd7pX0aQxaQHXIOdSKTd5037PbyHIILbiimDmI/BYAQ==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
typescript: '>=4.8.4 <6.0.0'
|
typescript: '>=4.8.4 <6.0.0'
|
||||||
|
|
||||||
'@eslint-react/core@2.13.0':
|
'@eslint-react/core@2.12.4':
|
||||||
resolution: {integrity: sha512-m62XDzkf1hpzW4sBc7uh7CT+8rBG2xz/itSADuEntlsg4YA7Jhb8hjU6VHf3wRFDwyfx5VnbV209sbJ7Azey0Q==}
|
resolution: {integrity: sha512-YAZrvc62wcMFT06twU4orNeGI8HCv9/B3X19hzU9/vhN5hCdr4HM3tl9E7qd79anjFBO30zflhpghB1zeAfjyQ==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
typescript: '>=4.8.4 <6.0.0'
|
typescript: '>=4.8.4 <6.0.0'
|
||||||
|
|
||||||
'@eslint-react/eff@2.13.0':
|
'@eslint-react/eff@2.12.4':
|
||||||
resolution: {integrity: sha512-rEH2R8FQnUAblUW+v3ZHDU1wEhatbL1+U2B1WVuBXwSKqzF7BGaLqCPIU7o9vofumz5MerVfaCtJgI8jYe2Btg==}
|
resolution: {integrity: sha512-lpC7s9bvHvVMcYZ01Py/nUTWjhq2/VRI+ftfFfIeqPTYXuXt95V3MIS+jtTK74f3BVXqxpAFbSx81hpd7ISMeg==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
|
|
||||||
'@eslint-react/eslint-plugin@2.13.0':
|
'@eslint-react/eslint-plugin@2.12.4':
|
||||||
resolution: {integrity: sha512-iaMXpqnJCTW7317hg8L4wx7u5aIiPzZ+d1p59X8wXFgMHzFX4hNu4IfV8oygyjmWKdLsjKE9sEpv/UYWczlb+A==}
|
resolution: {integrity: sha512-ML7EyET19pPgGOQmm5uEN9yoVkHqTtPyLMPWL2wlap9LVuFxoMK2owESkrq7mhWrXPf/NLuO4Z7lTcu5Sqv1EQ==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
typescript: '>=4.8.4 <6.0.0'
|
typescript: '>=4.8.4 <6.0.0'
|
||||||
|
|
||||||
'@eslint-react/shared@2.13.0':
|
'@eslint-react/shared@2.12.4':
|
||||||
resolution: {integrity: sha512-IOloCqrZ7gGBT4lFf9+0/wn7TfzU7JBRjYwTSyb9SDngsbeRrtW95ZpgUpS8/jen1wUEm6F08duAooTZ2FtsWA==}
|
resolution: {integrity: sha512-a6qV2cQzxH3EFPlc2MU1/13D6J+LwlzUVTQ7vGAEKBHNEIxIwXBSdah8MGU8TQp/3+12oVMIm6FK71yZOjwqkA==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
typescript: '>=4.8.4 <6.0.0'
|
typescript: '>=4.8.4 <6.0.0'
|
||||||
|
|
||||||
'@eslint-react/var@2.13.0':
|
'@eslint-react/var@2.12.4':
|
||||||
resolution: {integrity: sha512-dM+QaeiHR16qPQoJYg205MkdHYSWVa2B7ore5OFpOPlSwqDV3tLW7I+475WjbK7potq5QNPTxRa7VLp9FGeQqA==}
|
resolution: {integrity: sha512-NITTpD0fNPVmFpiTwP4PuyLblhuKvMWDU36bIoQL+Xh7xxcCc+lbiUCCOQiOzFgz+l36JhnOAjoRJ4rnP3yDUA==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
@@ -1423,9 +1429,13 @@ packages:
|
|||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@isaacs/cliui@9.0.0':
|
'@isaacs/balanced-match@4.0.1':
|
||||||
resolution: {integrity: sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==}
|
resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: 20 || >=22}
|
||||||
|
|
||||||
|
'@isaacs/brace-expansion@5.0.1':
|
||||||
|
resolution: {integrity: sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==}
|
||||||
|
engines: {node: 20 || >=22}
|
||||||
|
|
||||||
'@isaacs/fs-minipass@4.0.1':
|
'@isaacs/fs-minipass@4.0.1':
|
||||||
resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}
|
resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}
|
||||||
@@ -1737,8 +1747,8 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
swup: ^4.0.0
|
swup: ^4.0.0
|
||||||
|
|
||||||
'@swup/astro@1.8.0':
|
'@swup/astro@1.7.0':
|
||||||
resolution: {integrity: sha512-FI8/jNXgyUoWpnOgdB3MOUobRtRzedKBE8+qbBH5c8CE4q9Ni/GHPGrXK/0xG+g1ZiIQuTF3OXRvTLNVouiBig==}
|
resolution: {integrity: sha512-OxZskzeYkEZ4+McbwJKyD018sHNlrKQLdtHzlmNjivrzQY/dB7ncnWqDs3d4IkA7Y+ydNjpwBqpR/asjDhTiag==}
|
||||||
|
|
||||||
'@swup/body-class-plugin@3.3.0':
|
'@swup/body-class-plugin@3.3.0':
|
||||||
resolution: {integrity: sha512-4h/6mAgDd0+ml8Gc2kX8tikIR0HZZLF+WTnfm0JTVrGDw74bgEBenbsaWFfIS+gn4RWKZdWBUOfaZ+Im5J7Gvw==}
|
resolution: {integrity: sha512-4h/6mAgDd0+ml8Gc2kX8tikIR0HZZLF+WTnfm0JTVrGDw74bgEBenbsaWFfIS+gn4RWKZdWBUOfaZ+Im5J7Gvw==}
|
||||||
@@ -2143,8 +2153,8 @@ packages:
|
|||||||
ajv@6.12.6:
|
ajv@6.12.6:
|
||||||
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
|
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
|
||||||
|
|
||||||
ajv@8.18.0:
|
ajv@8.17.1:
|
||||||
resolution: {integrity: sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==}
|
resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==}
|
||||||
|
|
||||||
ansi-align@3.0.1:
|
ansi-align@3.0.1:
|
||||||
resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==}
|
resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==}
|
||||||
@@ -2221,6 +2231,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==}
|
resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
astro-compressor@1.2.0:
|
||||||
|
resolution: {integrity: sha512-Y0UWW/AjyLcHlRhCK9yUqy0kg4qZHd54kDIMY4C/1huS6pSVZNsMY7a3Jk7o5RjytIkVaLDDkcUzR8SgipBH8g==}
|
||||||
|
engines: {node: '>=22'}
|
||||||
|
|
||||||
astro-eslint-parser@1.3.0:
|
astro-eslint-parser@1.3.0:
|
||||||
resolution: {integrity: sha512-aOLc/aDR7lTWAHlytEefwn4Y6qs6uMr69DZvUx2A1AOAZsWhGB/paiRWPtVchh9wzMvLeqr+DkbENhVreVr9AQ==}
|
resolution: {integrity: sha512-aOLc/aDR7lTWAHlytEefwn4Y6qs6uMr69DZvUx2A1AOAZsWhGB/paiRWPtVchh9wzMvLeqr+DkbENhVreVr9AQ==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
@@ -2302,10 +2316,6 @@ packages:
|
|||||||
balanced-match@1.0.2:
|
balanced-match@1.0.2:
|
||||||
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
|
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
|
||||||
|
|
||||||
balanced-match@4.0.2:
|
|
||||||
resolution: {integrity: sha512-x0K50QvKQ97fdEz2kPehIerj+YTeptKF9hyYkKf6egnwmMWAkADiO0QCzSp0R5xN8FTZgYaBfSaue46Ej62nMg==}
|
|
||||||
engines: {node: 20 || >=22}
|
|
||||||
|
|
||||||
base-64@1.0.0:
|
base-64@1.0.0:
|
||||||
resolution: {integrity: sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==}
|
resolution: {integrity: sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==}
|
||||||
|
|
||||||
@@ -2329,10 +2339,6 @@ packages:
|
|||||||
brace-expansion@2.0.2:
|
brace-expansion@2.0.2:
|
||||||
resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==}
|
resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==}
|
||||||
|
|
||||||
brace-expansion@5.0.2:
|
|
||||||
resolution: {integrity: sha512-Pdk8c9poy+YhOgVWw1JNN22/HcivgKWwpxKq04M/jTmHyCZn12WPJebZxdjSa5TmBqISrUSgNYU3eRORljfCCw==}
|
|
||||||
engines: {node: 20 || >=22}
|
|
||||||
|
|
||||||
braces@3.0.3:
|
braces@3.0.3:
|
||||||
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
|
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@@ -2386,8 +2392,8 @@ packages:
|
|||||||
caniuse-api@3.0.0:
|
caniuse-api@3.0.0:
|
||||||
resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==}
|
resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==}
|
||||||
|
|
||||||
caniuse-lite@1.0.30001770:
|
caniuse-lite@1.0.30001769:
|
||||||
resolution: {integrity: sha512-x/2CLQ1jHENRbHg5PSId2sXq1CIO1CISvwWAj027ltMVG2UNgW+w9oH2+HzgEIRFembL8bUlXtfbBHR1fCg2xw==}
|
resolution: {integrity: sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==}
|
||||||
|
|
||||||
ccount@2.0.1:
|
ccount@2.0.1:
|
||||||
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
|
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
|
||||||
@@ -2900,15 +2906,15 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.40.0 || ^9.0.0
|
eslint: ^8.40.0 || ^9.0.0
|
||||||
|
|
||||||
eslint-plugin-react-dom@2.13.0:
|
eslint-plugin-react-dom@2.12.4:
|
||||||
resolution: {integrity: sha512-+2IZzQ1WEFYOWatW+xvNUqmZn55YBCufzKA7hX3XQ/8eu85Mp4vnlOyNvdVHEOGhUnGuC6+9+zLK+IlEHKdKLQ==}
|
resolution: {integrity: sha512-KxjyVB+zb8DR+knd8pTCLRFZh3Tdvkv96LYzruTbM4rKAOpHwsmJ+5/tXo5P8kgl7bMBYsHR0akbhUm+tb/MBw==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
typescript: '>=4.8.4 <6.0.0'
|
typescript: '>=4.8.4 <6.0.0'
|
||||||
|
|
||||||
eslint-plugin-react-hooks-extra@2.13.0:
|
eslint-plugin-react-hooks-extra@2.12.4:
|
||||||
resolution: {integrity: sha512-qIbha1nzuyhXM9SbEfrcGVqmyvQu7GAOB2sy9Y4Qo5S8nCqw4fSBxq+8lSce5Tk5Y7XzIkgHOhNyXEvUHRWFMQ==}
|
resolution: {integrity: sha512-7KiMJYYYG4K6KHd+6VtlmA/1BdUSzqcMIR3ebL47+6znYgwNatTouKOSX6V+HeQPW9IIsFfmmTvwlzWh+hsQJA==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
@@ -2920,8 +2926,8 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
|
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
|
||||||
|
|
||||||
eslint-plugin-react-naming-convention@2.13.0:
|
eslint-plugin-react-naming-convention@2.12.4:
|
||||||
resolution: {integrity: sha512-uSd25JzSg2R4p81s3Wqck0AdwRlO9Yc+cZqTEXv7vW8exGGAM3mWnF6hgrgdqVJqBEGJIbS/Vx1r5BdKcY/MHA==}
|
resolution: {integrity: sha512-VCPmN15AFFZ2fuy8OA40zumN5p12BVlEJvA/YLb6b0uiLHdCQsV6kuZwCNRRUWE6DJmJBe9k5fZW/Ww71ceQyg==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
@@ -2932,22 +2938,22 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: '>=9'
|
eslint: '>=9'
|
||||||
|
|
||||||
eslint-plugin-react-rsc@2.13.0:
|
eslint-plugin-react-rsc@2.12.4:
|
||||||
resolution: {integrity: sha512-RaftgITDLQm1zIgYyvR51sBdy4FlVaXFts5VISBaKbSUB0oqXyzOPxMHasfr9BCSjPLKus9zYe+G/Hr6rjFLXQ==}
|
resolution: {integrity: sha512-Bp2Yy3Hk3OUcUtGPRt5z/UtODFUP2ExM1j47J4KJJghrTay/UH01vFC+T0tXQ4GXGxpXt/aJJX42DJpbz5sY6Q==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
typescript: '>=4.8.4 <6.0.0'
|
typescript: '>=4.8.4 <6.0.0'
|
||||||
|
|
||||||
eslint-plugin-react-web-api@2.13.0:
|
eslint-plugin-react-web-api@2.12.4:
|
||||||
resolution: {integrity: sha512-nmJbzIAte7PeAkp22CwcKEASkKi49MshSdiDGO1XuN3f4N4/8sBfDcWbQuLPde6JiuzDT/0+l7Gi8wwTHtR1kg==}
|
resolution: {integrity: sha512-upmeq9d5D4wDgm+exkBAOAtWfdi5vRZGxYQhtmhXabmV2nEq/UFKT8vMkcnWNBJCpTM+bcb0YtJK6WVlM2WcdA==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
typescript: '>=4.8.4 <6.0.0'
|
typescript: '>=4.8.4 <6.0.0'
|
||||||
|
|
||||||
eslint-plugin-react-x@2.13.0:
|
eslint-plugin-react-x@2.12.4:
|
||||||
resolution: {integrity: sha512-cMNX0+ws/fWTgVxn52qAQbaFF2rqvaDAtjrPUzY6XOzPjY0rJQdR2tSlWJttz43r2yBfqu+LGvHlGpWL2wfpTQ==}
|
resolution: {integrity: sha512-DzVSPAOCHMawhkn30GUYCL2y89NgZk2umFTJ9RFpfoN1AejdT1T7wXysJiqzfezSpbxW0uzKSoWbjnbsTE0YPQ==}
|
||||||
engines: {node: '>=20.19.0'}
|
engines: {node: '>=20.19.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||||
@@ -3065,8 +3071,8 @@ packages:
|
|||||||
fast-uri@3.1.0:
|
fast-uri@3.1.0:
|
||||||
resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==}
|
resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==}
|
||||||
|
|
||||||
fast-xml-parser@5.3.6:
|
fast-xml-parser@5.3.5:
|
||||||
resolution: {integrity: sha512-QNI3sAvSvaOiaMl8FYU4trnEzCwiRr8XMWgAHzlrWpTSj+QaCSvOf1h82OEP1s4hiAXhnbXSyFWCf4ldZzZRVA==}
|
resolution: {integrity: sha512-JeaA2Vm9ffQKp9VjvfzObuMCjUYAp5WDYhRYL5LrBPY/jUDlUtOvDfot0vKSkB9tuX885BDHjtw4fZadD95wnA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
fastq@1.20.1:
|
fastq@1.20.1:
|
||||||
@@ -3143,6 +3149,20 @@ packages:
|
|||||||
fraction.js@5.3.4:
|
fraction.js@5.3.4:
|
||||||
resolution: {integrity: sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==}
|
resolution: {integrity: sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==}
|
||||||
|
|
||||||
|
framer-motion@12.34.0:
|
||||||
|
resolution: {integrity: sha512-+/H49owhzkzQyxtn7nZeF4kdH++I2FWrESQ184Zbcw5cEqNHYkE5yxWxcTLSj5lNx3NWdbIRy5FHqUvetD8FWg==}
|
||||||
|
peerDependencies:
|
||||||
|
'@emotion/is-prop-valid': '*'
|
||||||
|
react: ^18.0.0 || ^19.0.0
|
||||||
|
react-dom: ^18.0.0 || ^19.0.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
'@emotion/is-prop-valid':
|
||||||
|
optional: true
|
||||||
|
react:
|
||||||
|
optional: true
|
||||||
|
react-dom:
|
||||||
|
optional: true
|
||||||
|
|
||||||
fresh@2.0.0:
|
fresh@2.0.0:
|
||||||
resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}
|
resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}
|
||||||
engines: {node: '>= 0.8'}
|
engines: {node: '>= 0.8'}
|
||||||
@@ -3549,8 +3569,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}
|
resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
|
||||||
is-wsl@3.1.1:
|
is-wsl@3.1.0:
|
||||||
resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==}
|
resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==}
|
||||||
engines: {node: '>=16'}
|
engines: {node: '>=16'}
|
||||||
|
|
||||||
isarray@2.0.5:
|
isarray@2.0.5:
|
||||||
@@ -3563,10 +3583,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}
|
resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
jackspeak@4.2.3:
|
|
||||||
resolution: {integrity: sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==}
|
|
||||||
engines: {node: 20 || >=22}
|
|
||||||
|
|
||||||
jake@10.9.4:
|
jake@10.9.4:
|
||||||
resolution: {integrity: sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==}
|
resolution: {integrity: sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
@@ -3987,8 +4003,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==}
|
resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
minimatch@10.2.0:
|
minimatch@10.1.2:
|
||||||
resolution: {integrity: sha512-ugkC31VaVg9cF0DFVoADH12k6061zNZkZON+aX8AWsR9GhPcErkcMBceb6znR8wLERM2AkkOxy2nWRLpT9Jq5w==}
|
resolution: {integrity: sha512-fu656aJ0n2kcXwsnwnv9g24tkU5uSmOlTjd6WyyaKm2Z+h1qmY6bAjrcaIxF/BslFqbZ8UBtbJi7KgQOZD2PTw==}
|
||||||
engines: {node: 20 || >=22}
|
engines: {node: 20 || >=22}
|
||||||
|
|
||||||
minimatch@3.1.2:
|
minimatch@3.1.2:
|
||||||
@@ -4016,6 +4032,26 @@ packages:
|
|||||||
morphdom@2.7.8:
|
morphdom@2.7.8:
|
||||||
resolution: {integrity: sha512-D/fR4xgGUyVRbdMGU6Nejea1RFzYxYtyurG4Fbv2Fi/daKlWKuXGLOdXtl+3eIwL110cI2hz1ZojGICjjFLgTg==}
|
resolution: {integrity: sha512-D/fR4xgGUyVRbdMGU6Nejea1RFzYxYtyurG4Fbv2Fi/daKlWKuXGLOdXtl+3eIwL110cI2hz1ZojGICjjFLgTg==}
|
||||||
|
|
||||||
|
motion-dom@12.34.0:
|
||||||
|
resolution: {integrity: sha512-Lql3NuEcScRDxTAO6GgUsRHBZOWI/3fnMlkMcH5NftzcN37zJta+bpbMAV9px4Nj057TuvRooMK7QrzMCgtz6Q==}
|
||||||
|
|
||||||
|
motion-utils@12.29.2:
|
||||||
|
resolution: {integrity: sha512-G3kc34H2cX2gI63RqU+cZq+zWRRPSsNIOjpdl9TN4AQwC4sgwYPl/Q/Obf/d53nOm569T0fYK+tcoSV50BWx8A==}
|
||||||
|
|
||||||
|
motion@12.34.0:
|
||||||
|
resolution: {integrity: sha512-01Sfa/zgsD/di8zA/uFW5Eb7/SPXoGyUfy+uMRMW5Spa8j0z/UbfQewAYvPMYFCXRlyD6e5aLHh76TxeeJD+RA==}
|
||||||
|
peerDependencies:
|
||||||
|
'@emotion/is-prop-valid': '*'
|
||||||
|
react: ^18.0.0 || ^19.0.0
|
||||||
|
react-dom: ^18.0.0 || ^19.0.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
'@emotion/is-prop-valid':
|
||||||
|
optional: true
|
||||||
|
react:
|
||||||
|
optional: true
|
||||||
|
react-dom:
|
||||||
|
optional: true
|
||||||
|
|
||||||
mri@1.2.0:
|
mri@1.2.0:
|
||||||
resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
|
resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
|
||||||
engines: {node: '>=4'}
|
engines: {node: '>=4'}
|
||||||
@@ -5101,8 +5137,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==}
|
resolution: {integrity: sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
|
|
||||||
tar@7.5.9:
|
tar@7.5.7:
|
||||||
resolution: {integrity: sha512-BTLcK0xsDh2+PUe9F6c2TlRp4zOOBMTkoQHQIWSIzI0R7KG46uEwq4OPk2W7bZcprBMsuaeFsqwYr7pjh6CuHg==}
|
resolution: {integrity: sha512-fov56fJiRuThVFXD6o6/Q354S7pnWMJIVlDBYijsTNx6jKSE4pvrDTs6lUnmGvNyfJwFQQwWy3owKz1ucIhveQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
terser@5.44.1:
|
terser@5.44.1:
|
||||||
@@ -5242,8 +5278,8 @@ packages:
|
|||||||
undici-types@7.16.0:
|
undici-types@7.16.0:
|
||||||
resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}
|
resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}
|
||||||
|
|
||||||
undici@7.22.0:
|
undici@7.21.0:
|
||||||
resolution: {integrity: sha512-RqslV2Us5BrllB+JeiZnK4peryVTndy9Dnqq62S3yYRRTj0tFQCwEniUy2167skdGOy3vqRzEvl1Dm4sV2ReDg==}
|
resolution: {integrity: sha512-Hn2tCQpoDt1wv23a68Ctc8Cr/BHpUSfaPYrkajTXOS9IKpxVRx/X5m1K2YkbK2ipgZgxXSgsUinl3x+2YdSSfg==}
|
||||||
engines: {node: '>=20.18.1'}
|
engines: {node: '>=20.18.1'}
|
||||||
|
|
||||||
unicode-canonical-property-names-ecmascript@2.0.1:
|
unicode-canonical-property-names-ecmascript@2.0.1:
|
||||||
@@ -5265,8 +5301,8 @@ packages:
|
|||||||
unified@11.0.5:
|
unified@11.0.5:
|
||||||
resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==}
|
resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==}
|
||||||
|
|
||||||
unifont@0.7.4:
|
unifont@0.7.3:
|
||||||
resolution: {integrity: sha512-oHeis4/xl42HUIeHuNZRGEvxj5AaIKR+bHPNegRq5LV1gdc3jundpONbjglKpihmJf+dswygdMJn3eftGIMemg==}
|
resolution: {integrity: sha512-b0GtQzKCyuSHGsfj5vyN8st7muZ6VCI4XD4vFlr7Uy1rlWVYxC3npnfk8MyreHxJYrz1ooLDqDzFe9XqQTlAhA==}
|
||||||
|
|
||||||
unist-util-find-after@5.0.0:
|
unist-util-find-after@5.0.0:
|
||||||
resolution: {integrity: sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==}
|
resolution: {integrity: sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==}
|
||||||
@@ -5787,7 +5823,7 @@ snapshots:
|
|||||||
|
|
||||||
'@astrojs/rss@4.0.15':
|
'@astrojs/rss@4.0.15':
|
||||||
dependencies:
|
dependencies:
|
||||||
fast-xml-parser: 5.3.6
|
fast-xml-parser: 5.3.5
|
||||||
piccolore: 0.1.3
|
piccolore: 0.1.3
|
||||||
|
|
||||||
'@astrojs/sitemap@3.7.0':
|
'@astrojs/sitemap@3.7.0':
|
||||||
@@ -5803,7 +5839,7 @@ snapshots:
|
|||||||
dlv: 1.1.3
|
dlv: 1.1.3
|
||||||
dset: 3.1.4
|
dset: 3.1.4
|
||||||
is-docker: 3.0.0
|
is-docker: 3.0.0
|
||||||
is-wsl: 3.1.1
|
is-wsl: 3.1.0
|
||||||
which-pm-runs: 1.1.0
|
which-pm-runs: 1.1.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -6758,9 +6794,9 @@ snapshots:
|
|||||||
|
|
||||||
'@eslint-community/regexpp@4.12.2': {}
|
'@eslint-community/regexpp@4.12.2': {}
|
||||||
|
|
||||||
'@eslint-react/ast@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
'@eslint-react/ast@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
'@typescript-eslint/typescript-estree': 8.55.0(typescript@5.9.3)
|
'@typescript-eslint/typescript-estree': 8.55.0(typescript@5.9.3)
|
||||||
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
@@ -6770,12 +6806,12 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@eslint-react/core@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
'@eslint-react/core@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/ast': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/ast': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@eslint-react/shared': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/shared': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/var': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/var': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/scope-manager': 8.55.0
|
'@typescript-eslint/scope-manager': 8.55.0
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
@@ -6785,31 +6821,31 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@eslint-react/eff@2.13.0': {}
|
'@eslint-react/eff@2.12.4': {}
|
||||||
|
|
||||||
'@eslint-react/eslint-plugin@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
'@eslint-react/eslint-plugin@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@eslint-react/shared': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/shared': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/scope-manager': 8.55.0
|
'@typescript-eslint/scope-manager': 8.55.0
|
||||||
'@typescript-eslint/type-utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/type-utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
eslint: 10.0.0(jiti@2.6.1)
|
eslint: 10.0.0(jiti@2.6.1)
|
||||||
eslint-plugin-react-dom: 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
eslint-plugin-react-dom: 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
eslint-plugin-react-hooks-extra: 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
eslint-plugin-react-hooks-extra: 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
eslint-plugin-react-naming-convention: 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
eslint-plugin-react-naming-convention: 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
eslint-plugin-react-rsc: 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
eslint-plugin-react-rsc: 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
eslint-plugin-react-web-api: 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
eslint-plugin-react-web-api: 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
eslint-plugin-react-x: 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
eslint-plugin-react-x: 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
ts-api-utils: 2.4.0(typescript@5.9.3)
|
ts-api-utils: 2.4.0(typescript@5.9.3)
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@eslint-react/shared@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
'@eslint-react/shared@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
eslint: 10.0.0(jiti@2.6.1)
|
eslint: 10.0.0(jiti@2.6.1)
|
||||||
ts-pattern: 5.9.0
|
ts-pattern: 5.9.0
|
||||||
@@ -6818,11 +6854,11 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@eslint-react/var@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
'@eslint-react/var@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/ast': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/ast': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@eslint-react/shared': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/shared': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/scope-manager': 8.55.0
|
'@typescript-eslint/scope-manager': 8.55.0
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
@@ -6836,7 +6872,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@eslint/object-schema': 3.0.1
|
'@eslint/object-schema': 3.0.1
|
||||||
debug: 4.4.3
|
debug: 4.4.3
|
||||||
minimatch: 10.2.0
|
minimatch: 10.1.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
@@ -6905,7 +6941,7 @@ snapshots:
|
|||||||
local-pkg: 1.1.2
|
local-pkg: 1.1.2
|
||||||
pathe: 2.0.3
|
pathe: 2.0.3
|
||||||
svgo: 3.3.2
|
svgo: 3.3.2
|
||||||
tar: 7.5.9
|
tar: 7.5.7
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
@@ -7020,7 +7056,11 @@ snapshots:
|
|||||||
'@img/sharp-win32-x64@0.34.5':
|
'@img/sharp-win32-x64@0.34.5':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@isaacs/cliui@9.0.0': {}
|
'@isaacs/balanced-match@4.0.1': {}
|
||||||
|
|
||||||
|
'@isaacs/brace-expansion@5.0.1':
|
||||||
|
dependencies:
|
||||||
|
'@isaacs/balanced-match': 4.0.1
|
||||||
|
|
||||||
'@isaacs/fs-minipass@4.0.1':
|
'@isaacs/fs-minipass@4.0.1':
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -7337,7 +7377,7 @@ snapshots:
|
|||||||
focus-options-polyfill: 1.6.0
|
focus-options-polyfill: 1.6.0
|
||||||
swup: 4.8.2
|
swup: 4.8.2
|
||||||
|
|
||||||
'@swup/astro@1.8.0(@types/babel__core@7.20.5)':
|
'@swup/astro@1.7.0(@types/babel__core@7.20.5)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@swup/a11y-plugin': 5.0.0(swup@4.8.2)
|
'@swup/a11y-plugin': 5.0.0(swup@4.8.2)
|
||||||
'@swup/body-class-plugin': 3.3.0(swup@4.8.2)
|
'@swup/body-class-plugin': 3.3.0(swup@4.8.2)
|
||||||
@@ -7817,9 +7857,9 @@ snapshots:
|
|||||||
|
|
||||||
acorn@8.15.0: {}
|
acorn@8.15.0: {}
|
||||||
|
|
||||||
ajv-draft-04@1.0.0(ajv@8.18.0):
|
ajv-draft-04@1.0.0(ajv@8.17.1):
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
ajv: 8.18.0
|
ajv: 8.17.1
|
||||||
|
|
||||||
ajv@6.12.6:
|
ajv@6.12.6:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -7828,7 +7868,7 @@ snapshots:
|
|||||||
json-schema-traverse: 0.4.1
|
json-schema-traverse: 0.4.1
|
||||||
uri-js: 4.4.1
|
uri-js: 4.4.1
|
||||||
|
|
||||||
ajv@8.18.0:
|
ajv@8.17.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
fast-deep-equal: 3.1.3
|
fast-deep-equal: 3.1.3
|
||||||
fast-uri: 3.1.0
|
fast-uri: 3.1.0
|
||||||
@@ -7932,6 +7972,8 @@ snapshots:
|
|||||||
get-intrinsic: 1.3.0
|
get-intrinsic: 1.3.0
|
||||||
is-array-buffer: 3.0.5
|
is-array-buffer: 3.0.5
|
||||||
|
|
||||||
|
astro-compressor@1.2.0: {}
|
||||||
|
|
||||||
astro-eslint-parser@1.3.0:
|
astro-eslint-parser@1.3.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/compiler': 2.13.1
|
'@astrojs/compiler': 2.13.1
|
||||||
@@ -8010,7 +8052,7 @@ snapshots:
|
|||||||
tinyglobby: 0.2.15
|
tinyglobby: 0.2.15
|
||||||
tsconfck: 3.1.6(typescript@5.9.3)
|
tsconfck: 3.1.6(typescript@5.9.3)
|
||||||
ultrahtml: 1.6.0
|
ultrahtml: 1.6.0
|
||||||
unifont: 0.7.4
|
unifont: 0.7.3
|
||||||
unist-util-visit: 5.1.0
|
unist-util-visit: 5.1.0
|
||||||
unstorage: 1.17.4
|
unstorage: 1.17.4
|
||||||
vfile: 6.0.3
|
vfile: 6.0.3
|
||||||
@@ -8112,7 +8154,7 @@ snapshots:
|
|||||||
tinyglobby: 0.2.15
|
tinyglobby: 0.2.15
|
||||||
tsconfck: 3.1.6(typescript@5.9.3)
|
tsconfck: 3.1.6(typescript@5.9.3)
|
||||||
ultrahtml: 1.6.0
|
ultrahtml: 1.6.0
|
||||||
unifont: 0.7.4
|
unifont: 0.7.3
|
||||||
unist-util-visit: 5.1.0
|
unist-util-visit: 5.1.0
|
||||||
unstorage: 1.17.4
|
unstorage: 1.17.4
|
||||||
vfile: 6.0.3
|
vfile: 6.0.3
|
||||||
@@ -8175,7 +8217,7 @@ snapshots:
|
|||||||
autoprefixer@10.4.24(postcss@8.5.6):
|
autoprefixer@10.4.24(postcss@8.5.6):
|
||||||
dependencies:
|
dependencies:
|
||||||
browserslist: 4.28.1
|
browserslist: 4.28.1
|
||||||
caniuse-lite: 1.0.30001770
|
caniuse-lite: 1.0.30001769
|
||||||
fraction.js: 5.3.4
|
fraction.js: 5.3.4
|
||||||
picocolors: 1.1.1
|
picocolors: 1.1.1
|
||||||
postcss: 8.5.6
|
postcss: 8.5.6
|
||||||
@@ -8228,10 +8270,6 @@ snapshots:
|
|||||||
|
|
||||||
balanced-match@1.0.2: {}
|
balanced-match@1.0.2: {}
|
||||||
|
|
||||||
balanced-match@4.0.2:
|
|
||||||
dependencies:
|
|
||||||
jackspeak: 4.2.3
|
|
||||||
|
|
||||||
base-64@1.0.0: {}
|
base-64@1.0.0: {}
|
||||||
|
|
||||||
baseline-browser-mapping@2.9.19: {}
|
baseline-browser-mapping@2.9.19: {}
|
||||||
@@ -8260,10 +8298,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
balanced-match: 1.0.2
|
balanced-match: 1.0.2
|
||||||
|
|
||||||
brace-expansion@5.0.2:
|
|
||||||
dependencies:
|
|
||||||
balanced-match: 4.0.2
|
|
||||||
|
|
||||||
braces@3.0.3:
|
braces@3.0.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
fill-range: 7.1.1
|
fill-range: 7.1.1
|
||||||
@@ -8275,7 +8309,7 @@ snapshots:
|
|||||||
browserslist@4.28.1:
|
browserslist@4.28.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
baseline-browser-mapping: 2.9.19
|
baseline-browser-mapping: 2.9.19
|
||||||
caniuse-lite: 1.0.30001770
|
caniuse-lite: 1.0.30001769
|
||||||
electron-to-chromium: 1.5.286
|
electron-to-chromium: 1.5.286
|
||||||
node-releases: 2.0.27
|
node-releases: 2.0.27
|
||||||
update-browserslist-db: 1.2.3(browserslist@4.28.1)
|
update-browserslist-db: 1.2.3(browserslist@4.28.1)
|
||||||
@@ -8317,11 +8351,11 @@ snapshots:
|
|||||||
caniuse-api@3.0.0:
|
caniuse-api@3.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
browserslist: 4.28.1
|
browserslist: 4.28.1
|
||||||
caniuse-lite: 1.0.30001770
|
caniuse-lite: 1.0.30001769
|
||||||
lodash.memoize: 4.1.2
|
lodash.memoize: 4.1.2
|
||||||
lodash.uniq: 4.5.0
|
lodash.uniq: 4.5.0
|
||||||
|
|
||||||
caniuse-lite@1.0.30001770: {}
|
caniuse-lite@1.0.30001769: {}
|
||||||
|
|
||||||
ccount@2.0.1: {}
|
ccount@2.0.1: {}
|
||||||
|
|
||||||
@@ -8366,7 +8400,7 @@ snapshots:
|
|||||||
parse5: 7.3.0
|
parse5: 7.3.0
|
||||||
parse5-htmlparser2-tree-adapter: 7.1.0
|
parse5-htmlparser2-tree-adapter: 7.1.0
|
||||||
parse5-parser-stream: 7.1.2
|
parse5-parser-stream: 7.1.2
|
||||||
undici: 7.22.0
|
undici: 7.21.0
|
||||||
whatwg-mimetype: 4.0.0
|
whatwg-mimetype: 4.0.0
|
||||||
|
|
||||||
chokidar@4.0.3:
|
chokidar@4.0.3:
|
||||||
@@ -8975,13 +9009,13 @@ snapshots:
|
|||||||
prettier: 3.8.1
|
prettier: 3.8.1
|
||||||
synckit: 0.11.12
|
synckit: 0.11.12
|
||||||
|
|
||||||
eslint-plugin-react-dom@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
eslint-plugin-react-dom@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/ast': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/ast': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/core': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/core': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@eslint-react/shared': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/shared': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/var': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/var': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/scope-manager': 8.55.0
|
'@typescript-eslint/scope-manager': 8.55.0
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
@@ -8992,13 +9026,13 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
eslint-plugin-react-hooks-extra@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
eslint-plugin-react-hooks-extra@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/ast': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/ast': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/core': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/core': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@eslint-react/shared': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/shared': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/var': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/var': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/scope-manager': 8.55.0
|
'@typescript-eslint/scope-manager': 8.55.0
|
||||||
'@typescript-eslint/type-utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/type-utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
@@ -9020,13 +9054,13 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
eslint-plugin-react-naming-convention@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
eslint-plugin-react-naming-convention@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/ast': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/ast': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/core': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/core': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@eslint-react/shared': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/shared': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/var': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/var': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/scope-manager': 8.55.0
|
'@typescript-eslint/scope-manager': 8.55.0
|
||||||
'@typescript-eslint/type-utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/type-utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
@@ -9043,11 +9077,11 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
eslint: 10.0.0(jiti@2.6.1)
|
eslint: 10.0.0(jiti@2.6.1)
|
||||||
|
|
||||||
eslint-plugin-react-rsc@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
eslint-plugin-react-rsc@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/ast': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/ast': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/shared': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/shared': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/var': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/var': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
eslint: 10.0.0(jiti@2.6.1)
|
eslint: 10.0.0(jiti@2.6.1)
|
||||||
@@ -9056,13 +9090,13 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
eslint-plugin-react-web-api@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
eslint-plugin-react-web-api@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/ast': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/ast': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/core': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/core': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@eslint-react/shared': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/shared': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/var': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/var': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/scope-manager': 8.55.0
|
'@typescript-eslint/scope-manager': 8.55.0
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
@@ -9073,13 +9107,13 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
eslint-plugin-react-x@2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
eslint-plugin-react-x@2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-react/ast': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/ast': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/core': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/core': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/eff': 2.13.0
|
'@eslint-react/eff': 2.12.4
|
||||||
'@eslint-react/shared': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/shared': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@eslint-react/var': 2.13.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@eslint-react/var': 2.12.4(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/scope-manager': 8.55.0
|
'@typescript-eslint/scope-manager': 8.55.0
|
||||||
'@typescript-eslint/type-utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
'@typescript-eslint/type-utils': 8.55.0(eslint@10.0.0(jiti@2.6.1))(typescript@5.9.3)
|
||||||
'@typescript-eslint/types': 8.55.0
|
'@typescript-eslint/types': 8.55.0
|
||||||
@@ -9162,7 +9196,7 @@ snapshots:
|
|||||||
imurmurhash: 0.1.4
|
imurmurhash: 0.1.4
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
json-stable-stringify-without-jsonify: 1.0.1
|
json-stable-stringify-without-jsonify: 1.0.1
|
||||||
minimatch: 10.2.0
|
minimatch: 10.1.2
|
||||||
natural-compare: 1.4.0
|
natural-compare: 1.4.0
|
||||||
optionator: 0.9.4
|
optionator: 0.9.4
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
@@ -9242,7 +9276,7 @@ snapshots:
|
|||||||
|
|
||||||
fast-uri@3.1.0: {}
|
fast-uri@3.1.0: {}
|
||||||
|
|
||||||
fast-xml-parser@5.3.6:
|
fast-xml-parser@5.3.5:
|
||||||
dependencies:
|
dependencies:
|
||||||
strnum: 2.1.2
|
strnum: 2.1.2
|
||||||
|
|
||||||
@@ -9318,6 +9352,15 @@ snapshots:
|
|||||||
|
|
||||||
fraction.js@5.3.4: {}
|
fraction.js@5.3.4: {}
|
||||||
|
|
||||||
|
framer-motion@12.34.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4):
|
||||||
|
dependencies:
|
||||||
|
motion-dom: 12.34.0
|
||||||
|
motion-utils: 12.29.2
|
||||||
|
tslib: 2.8.1
|
||||||
|
optionalDependencies:
|
||||||
|
react: 19.2.4
|
||||||
|
react-dom: 19.2.4(react@19.2.4)
|
||||||
|
|
||||||
fresh@2.0.0: {}
|
fresh@2.0.0: {}
|
||||||
|
|
||||||
fs-extra@10.1.0:
|
fs-extra@10.1.0:
|
||||||
@@ -9786,7 +9829,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
is-docker: 2.2.1
|
is-docker: 2.2.1
|
||||||
|
|
||||||
is-wsl@3.1.1:
|
is-wsl@3.1.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
is-inside-container: 1.0.0
|
is-inside-container: 1.0.0
|
||||||
|
|
||||||
@@ -9803,10 +9846,6 @@ snapshots:
|
|||||||
has-symbols: 1.1.0
|
has-symbols: 1.1.0
|
||||||
set-function-name: 2.0.2
|
set-function-name: 2.0.2
|
||||||
|
|
||||||
jackspeak@4.2.3:
|
|
||||||
dependencies:
|
|
||||||
'@isaacs/cliui': 9.0.0
|
|
||||||
|
|
||||||
jake@10.9.4:
|
jake@10.9.4:
|
||||||
dependencies:
|
dependencies:
|
||||||
async: 3.2.6
|
async: 3.2.6
|
||||||
@@ -10412,9 +10451,9 @@ snapshots:
|
|||||||
|
|
||||||
mini-svg-data-uri@1.4.4: {}
|
mini-svg-data-uri@1.4.4: {}
|
||||||
|
|
||||||
minimatch@10.2.0:
|
minimatch@10.1.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
brace-expansion: 5.0.2
|
'@isaacs/brace-expansion': 5.0.1
|
||||||
|
|
||||||
minimatch@3.1.2:
|
minimatch@3.1.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -10443,6 +10482,20 @@ snapshots:
|
|||||||
|
|
||||||
morphdom@2.7.8: {}
|
morphdom@2.7.8: {}
|
||||||
|
|
||||||
|
motion-dom@12.34.0:
|
||||||
|
dependencies:
|
||||||
|
motion-utils: 12.29.2
|
||||||
|
|
||||||
|
motion-utils@12.29.2: {}
|
||||||
|
|
||||||
|
motion@12.34.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4):
|
||||||
|
dependencies:
|
||||||
|
framer-motion: 12.34.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
|
tslib: 2.8.1
|
||||||
|
optionalDependencies:
|
||||||
|
react: 19.2.4
|
||||||
|
react-dom: 19.2.4(react@19.2.4)
|
||||||
|
|
||||||
mri@1.2.0: {}
|
mri@1.2.0: {}
|
||||||
|
|
||||||
mrmime@2.0.1: {}
|
mrmime@2.0.1: {}
|
||||||
@@ -11641,7 +11694,7 @@ snapshots:
|
|||||||
|
|
||||||
tapable@2.3.0: {}
|
tapable@2.3.0: {}
|
||||||
|
|
||||||
tar@7.5.9:
|
tar@7.5.7:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@isaacs/fs-minipass': 4.0.1
|
'@isaacs/fs-minipass': 4.0.1
|
||||||
chownr: 3.0.0
|
chownr: 3.0.0
|
||||||
@@ -11785,7 +11838,7 @@ snapshots:
|
|||||||
|
|
||||||
undici-types@7.16.0: {}
|
undici-types@7.16.0: {}
|
||||||
|
|
||||||
undici@7.22.0: {}
|
undici@7.21.0: {}
|
||||||
|
|
||||||
unicode-canonical-property-names-ecmascript@2.0.1: {}
|
unicode-canonical-property-names-ecmascript@2.0.1: {}
|
||||||
|
|
||||||
@@ -11808,7 +11861,7 @@ snapshots:
|
|||||||
trough: 2.2.0
|
trough: 2.2.0
|
||||||
vfile: 6.0.3
|
vfile: 6.0.3
|
||||||
|
|
||||||
unifont@0.7.4:
|
unifont@0.7.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
css-tree: 3.1.0
|
css-tree: 3.1.0
|
||||||
ofetch: 1.5.1
|
ofetch: 1.5.1
|
||||||
@@ -12101,8 +12154,8 @@ snapshots:
|
|||||||
yaml-language-server@1.19.2:
|
yaml-language-server@1.19.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vscode/l10n': 0.0.18
|
'@vscode/l10n': 0.0.18
|
||||||
ajv: 8.18.0
|
ajv: 8.17.1
|
||||||
ajv-draft-04: 1.0.0(ajv@8.18.0)
|
ajv-draft-04: 1.0.0(ajv@8.17.1)
|
||||||
lodash: 4.17.21
|
lodash: 4.17.21
|
||||||
prettier: 3.8.1
|
prettier: 3.8.1
|
||||||
request-light: 0.5.8
|
request-light: 0.5.8
|
||||||
|
|||||||
@@ -3,11 +3,10 @@ import { getImage } from 'astro:assets';
|
|||||||
import { readSingleton } from '@directus/sdk';
|
import { readSingleton } from '@directus/sdk';
|
||||||
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
import { SEO } from '@/config';
|
|
||||||
|
|
||||||
import brandSrc from '@images/brand_logo.png';
|
import brandSrc from '@images/brand_logo.png';
|
||||||
import faviconSvgSrc from '@images/favicon_icon.svg';
|
import faviconSvgSrc from '@images/favicon_icon.svg';
|
||||||
import faviconSrc from '@images/favicon_icon.png';
|
import faviconSrc from '@images/favicon_icon.png';
|
||||||
|
import { SEO } from '@/config';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
@@ -19,7 +18,6 @@ interface Props {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const canonicalURL = Astro.url.href;
|
const canonicalURL = Astro.url.href;
|
||||||
|
|
||||||
let {
|
let {
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
@@ -29,14 +27,14 @@ let {
|
|||||||
structuredData = SEO.structuredData,
|
structuredData = SEO.structuredData,
|
||||||
} = Astro.props;
|
} = Astro.props;
|
||||||
|
|
||||||
const global = await directus.request(readSingleton('site_global'));
|
|
||||||
|
|
||||||
let card = 'summary_large_image';
|
let card = 'summary_large_image';
|
||||||
if (!ogImage) {
|
if (!ogImage) {
|
||||||
ogImage = brandSrc;
|
ogImage = brandSrc;
|
||||||
card = 'summary';
|
card = 'summary';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const global = await directus.request(readSingleton('site_global'));
|
||||||
|
|
||||||
const faviconSvg = await getImage({ src: faviconSvgSrc, format: 'svg' });
|
const faviconSvg = await getImage({ src: faviconSvgSrc, format: 'svg' });
|
||||||
const appleTouchIcon = await getImage({ src: faviconSrc, width: 180, height: 180, format: 'png' });
|
const appleTouchIcon = await getImage({ src: faviconSrc, width: 180, height: 180, format: 'png' });
|
||||||
const socialImageRes = await getImage({ src: ogImage, width: 1200, height: 600 });
|
const socialImageRes = await getImage({ src: ogImage, width: 1200, height: 600 });
|
||||||
@@ -64,12 +62,12 @@ if (!socialImage.startsWith('http')) {
|
|||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
<meta name="mobile-web-app-capable" content="yes" />
|
||||||
<meta name="theme-color" content="#facc15" />
|
<meta name="theme-color" content="#facc15" />
|
||||||
<meta name="robots" content="index, follow" />
|
|
||||||
|
|
||||||
<!-- Open Graph -->
|
<!-- Open Graph -->
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:locale" content="en_US" />
|
<meta property="og:locale" content="en_US" />
|
||||||
<meta property="og:url" content={Astro.url} />
|
<meta property="og:url" content={Astro.url} />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content={ogTitle} />
|
<meta property="og:title" content={ogTitle} />
|
||||||
<meta property="og:site_name" content={global.name} />
|
<meta property="og:site_name" content={global.name} />
|
||||||
<meta property="og:description" content={ogDescription} />
|
<meta property="og:description" content={ogDescription} />
|
||||||
@@ -78,10 +76,17 @@ if (!socialImage.startsWith('http')) {
|
|||||||
<meta content="600" property="og:image:height" />
|
<meta content="600" property="og:image:height" />
|
||||||
<meta content="image/png" property="og:image:type" />
|
<meta content="image/png" property="og:image:type" />
|
||||||
|
|
||||||
|
<!-- Twitter -->
|
||||||
|
<meta property="twitter:card" content={card} />
|
||||||
|
<meta property="twitter:url" content={Astro.url} />
|
||||||
|
<meta property="twitter:domain" content={Astro.url} />
|
||||||
|
<meta property="twitter:title" content={ogTitle} />
|
||||||
|
<meta property="twitter:description" content={ogDescription} />
|
||||||
|
<meta property="twitter:image" content={socialImage} />
|
||||||
|
|
||||||
<!-- Links -->
|
<!-- Links -->
|
||||||
<link href={canonicalURL} rel="canonical" />
|
<link href={canonicalURL} rel="canonical" />
|
||||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||||
<link rel="alternate" type="application/rss+xml" title={title} href="/rss.xml" />
|
|
||||||
<!--<link href="/manifest.json" rel="manifest" />-->
|
<!--<link href="/manifest.json" rel="manifest" />-->
|
||||||
<link href="/favicon.ico" rel="icon" sizes="any" type="image/x-icon" />
|
<link href="/favicon.ico" rel="icon" sizes="any" type="image/x-icon" />
|
||||||
<link href={faviconSvg.src} rel="icon" type="image/svg+xml" sizes="any" />
|
<link href={faviconSvg.src} rel="icon" type="image/svg+xml" sizes="any" />
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
---
|
---
|
||||||
import { readSingleton } from '@directus/sdk';
|
import { readSingleton } from '@directus/sdk';
|
||||||
|
|
||||||
|
import directus from '@lib/directus';
|
||||||
import BrandLogo from '@components/ui/logos/BrandLogo.astro';
|
import BrandLogo from '@components/ui/logos/BrandLogo.astro';
|
||||||
import Image from '@components/ui/images/Image.astro';
|
import Image from '@components/ui/images/Image.astro';
|
||||||
import directus from '@lib/directus';
|
|
||||||
import { NavigationLinks, FooterLinks } from '@/config';
|
import { NavigationLinks, FooterLinks } from '@/config';
|
||||||
|
|
||||||
import footerImg from '@images/flowers.png';
|
import footerImg from '@images/flowers.png';
|
||||||
|
|
||||||
const global = await directus.request(readSingleton('site_global'));
|
const global = await directus.request(readSingleton('site_global'));
|
||||||
|
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
import BrandLogo from '@components/ui/logos/BrandLogo.astro';
|
import BrandLogo from '@components/ui/logos/BrandLogo.astro';
|
||||||
import ThemeToggleButton from '@components/buttons/ThemeToggleButton.astro';
|
import ThemeToggle from '@components/ui/buttons/ThemeToggle.astro';
|
||||||
import { NavigationLinks } from '@/config';
|
import { NavigationLinks } from '@/config';
|
||||||
|
|
||||||
const pathname = new URL(Astro.request.url).pathname;
|
const pathname = new URL(Astro.request.url).pathname;
|
||||||
@@ -67,7 +67,7 @@ const currentPath = pathname.slice(1);
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
id="navbar-collapse-with-animation"
|
id="navbar-collapse-with-animation"
|
||||||
class="hs-collapse hidden grow basis-full overflow-hidden transition-all duration-300 md:block md:overflow-visible"
|
class="hs-collapse hidden grow basis-full overflow-hidden transition-all duration-300 md:block"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="mt-5 flex flex-col gap-x-0 gap-y-4 md:mt-0 md:flex-row md:items-center md:justify-end md:gap-x-4 md:gap-y-0 md:ps-7 lg:gap-x-7"
|
class="mt-5 flex flex-col gap-x-0 gap-y-4 md:mt-0 md:flex-row md:items-center md:justify-end md:gap-x-4 md:gap-y-0 md:ps-7 lg:gap-x-7"
|
||||||
@@ -90,7 +90,7 @@ const currentPath = pathname.slice(1);
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
<span class="md:inline-block">
|
<span class="md:inline-block">
|
||||||
<ThemeToggleButton />
|
<ThemeToggle />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
61
src/components/blog/BlogCard.astro
Normal file
61
src/components/blog/BlogCard.astro
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
import { Icon } from 'astro-icon/components';
|
||||||
|
|
||||||
|
import type { Post } from '@lib/directusTypes';
|
||||||
|
|
||||||
|
import { getDirectusImageURL } from '@lib/directusFunctions';
|
||||||
|
import Image from '@components/ui/images/Image.astro';
|
||||||
|
import { formatDate } from '@support/time';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
post: Post;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { post } = Astro.props;
|
||||||
|
|
||||||
|
const baseClasses = 'group group-hover smooth-reveal-cards rounded-xl flex flex-col';
|
||||||
|
const borderClasses = 'border border-stone-200/50 dark:border-stone-700/50';
|
||||||
|
const bgColorClasses =
|
||||||
|
'bg-neutral-100/80 hover:bg-neutral-100 dark:bg-neutral-800/60 dark:hover:bg-neutral-800/90';
|
||||||
|
const shadowClasses = 'shadow-xs hover:shadow-md dark:shadow-md dark:hover:shadow-lg';
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class={`${baseClasses}`}>
|
||||||
|
<a
|
||||||
|
class={`rounded-xl duration-300 transition-all ${borderClasses} ${shadowClasses} ${bgColorClasses}`}
|
||||||
|
href={`/blog/${post.slug}/`}
|
||||||
|
data-astro-prefetch
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="relative w-full flex-shrink-0 overflow-hidden rounded-t-xl before:absolute before:inset-x-0 before:z-[1] before:size-full"
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
class="h-auto w-full rounded-t-xl"
|
||||||
|
src={getDirectusImageURL(post.image)}
|
||||||
|
alt={post.image_alt}
|
||||||
|
draggable="false"
|
||||||
|
loading="eager"
|
||||||
|
format="webp"
|
||||||
|
width="800"
|
||||||
|
height="460"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="rounded-xl p-4 md:p-5">
|
||||||
|
<h3 class="text-xl font-bold text-neutral-600 dark:text-neutral-200">
|
||||||
|
{post.title}
|
||||||
|
</h3>
|
||||||
|
<div
|
||||||
|
class="group-hover:text-steel dark:group-hover:text-bermuda transition-text relative z-10 mx-auto flex min-h-[44px] items-center font-medium text-neutral-600 decoration-2 duration-300 sm:mx-0 sm:mt-4 dark:text-neutral-400"
|
||||||
|
>
|
||||||
|
<span class="relative inline-block overflow-hidden"> Read more </span>
|
||||||
|
<Icon
|
||||||
|
name="mdi:keyboard-arrow-right"
|
||||||
|
class="h-3 w-3 translate-y-0.25 transition duration-300 group-hover:translate-x-1 md:h-5 md:w-5"
|
||||||
|
/>
|
||||||
|
<p class="ml-auto text-sm text-neutral-600 dark:text-neutral-400">
|
||||||
|
{formatDate(post.published_date)}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
@@ -8,30 +8,37 @@ interface Props {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { slug, title, description, count, publishDate } = Astro.props;
|
const { slug, title, description, count, publishDate } = Astro.props;
|
||||||
|
|
||||||
|
const baseClasses =
|
||||||
|
'group group-hover rounded-xl flex h-full min-h-[220px] cursor-pointer flex-col overflow-hidden';
|
||||||
|
const bgColorClasses =
|
||||||
|
'bg-neutral-100/60 dark:bg-neutral-800/60 hover:bg-neutral-100 dark:hover:bg-neutral-800/90 ';
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="smooth-reveal-cards group h-full">
|
<a class={`rounded-xl`} href={`/categories/${slug}/`} data-astro-prefetch="false">
|
||||||
<a
|
<div class={`${baseClasses}`}>
|
||||||
class="card-base flex flex-col h-full min-h-55"
|
<div
|
||||||
href={`/categories/${slug}/`}
|
class={`relative min-h-0 flex-grow overflow-hidden transition-all duration-300 ${bgColorClasses}`}
|
||||||
data-astro-prefetch
|
>
|
||||||
>
|
|
||||||
<div class="relative grow overflow-hidden">
|
|
||||||
<div class="absolute inset-1 flex flex-col p-3 md:p-4 lg:p-5">
|
<div class="absolute inset-1 flex flex-col p-3 md:p-4 lg:p-5">
|
||||||
<div class="overflow-hidden">
|
<div class="overflow-hidden">
|
||||||
<h3 class="card-text-title-major card-hover-text-title whitespace-nowrap mb-4">
|
<h2
|
||||||
|
class="group-hover:text-steel dark:group-hover:text-bermuda transition-text mb-4 text-4xl font-extrabold tracking-tight text-balance whitespace-nowrap text-neutral-800 duration-300 dark:text-neutral-200"
|
||||||
|
>
|
||||||
{title}
|
{title}
|
||||||
</h3>
|
</h2>
|
||||||
<p class="card-text-description mb-4">
|
<p class="mb-4 font-light text-neutral-600 sm:text-lg dark:text-neutral-400">
|
||||||
{description}
|
{description}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-text-description flex items-center justify-between text-xs mt-auto pt-1 md:pt-2">
|
<div
|
||||||
|
class="mt-auto flex items-center justify-between pt-1 text-xs text-neutral-600 md:pt-2 dark:text-neutral-300"
|
||||||
|
>
|
||||||
<span class="inline-flex items-center">
|
<span class="inline-flex items-center">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="16"
|
width="12"
|
||||||
height="16"
|
height="12"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
@@ -44,8 +51,8 @@ const { slug, title, description, count, publishDate } = Astro.props;
|
|||||||
<span class="inline-flex items-center">
|
<span class="inline-flex items-center">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="16"
|
width="12"
|
||||||
height="16"
|
height="12"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
@@ -59,5 +66,5 @@ const { slug, title, description, count, publishDate } = Astro.props;
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
44
src/components/blog/BlogLeftSection.astro
Normal file
44
src/components/blog/BlogLeftSection.astro
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
import PrimaryCTA from '@components/ui/buttons/PrimaryCTA.astro';
|
||||||
|
import Image from '@components/ui/images/Image.astro';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title: string;
|
||||||
|
subTitle: string;
|
||||||
|
btnExists?: boolean;
|
||||||
|
btnTitle?: string;
|
||||||
|
btnURL?: string;
|
||||||
|
img: any;
|
||||||
|
imgAlt: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { title, subTitle, btnExists, btnTitle, btnURL, img, imgAlt } = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<section
|
||||||
|
class="mx-auto max-w-[85rem] items-center gap-8 px-4 py-10 sm:px-6 sm:py-16 md:grid md:grid-cols-2 lg:grid lg:grid-cols-2 lg:px-8 lg:py-14 xl:gap-16 2xl:max-w-full"
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
class="h-full w-full rounded-xl object-cover sm:max-h-[320px] md:max-h-[360px]"
|
||||||
|
src={img}
|
||||||
|
alt={imgAlt}
|
||||||
|
draggable="false"
|
||||||
|
loading="lazy"
|
||||||
|
width="850"
|
||||||
|
height="420"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div class="mt-4 md:mt-0">
|
||||||
|
<h2
|
||||||
|
class="mb-4 text-4xl font-extrabold tracking-tight text-balance text-neutral-800 dark:text-neutral-200"
|
||||||
|
>
|
||||||
|
{title}
|
||||||
|
</h2>
|
||||||
|
<p
|
||||||
|
class="mb-4 max-w-prose font-light text-pretty text-neutral-600 sm:text-lg dark:text-neutral-300"
|
||||||
|
>
|
||||||
|
{subTitle}
|
||||||
|
</p>
|
||||||
|
{btnExists ? <PrimaryCTA title={btnTitle} url={btnURL} /> : null}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
29
src/components/blog/BlogRecentArticles.astro
Normal file
29
src/components/blog/BlogRecentArticles.astro
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
import type { Post } from '@lib/directusTypes';
|
||||||
|
import BlogCard from '@components/blog/BlogCard.astro';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
posts: Post[];
|
||||||
|
}
|
||||||
|
|
||||||
|
const { posts } = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<section class="mx-auto mb-10 max-w-[85rem] px-4 py-8 sm:px-6 lg:px-8 2xl:max-w-full">
|
||||||
|
<div class="text-left">
|
||||||
|
<h2
|
||||||
|
id="recent-articles"
|
||||||
|
class="smooth-reveal-2 mb-10 text-5xl font-extrabold tracking-tight text-balance text-neutral-800 dark:text-neutral-200"
|
||||||
|
>
|
||||||
|
Recent Posts
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-col md:flex-row md:space-x-12 lg:space-x-16">
|
||||||
|
<div class="w-full">
|
||||||
|
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
|
{posts.map((b) => <BlogCard post={b} />)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
87
src/components/blog/BlogRightSection.astro
Normal file
87
src/components/blog/BlogRightSection.astro
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
---
|
||||||
|
import PrimaryCTA from '@components/ui/buttons/PrimaryCTA.astro';
|
||||||
|
import Image from '@components/ui/images/Image.astro';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title: string;
|
||||||
|
subTitle: string;
|
||||||
|
btnExists?: boolean;
|
||||||
|
btnTitle?: string;
|
||||||
|
btnURL?: string;
|
||||||
|
single?: boolean;
|
||||||
|
imgOne?: any;
|
||||||
|
imgOneAlt?: any;
|
||||||
|
imgTwo?: any;
|
||||||
|
imgTwoAlt?: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
const {
|
||||||
|
title,
|
||||||
|
subTitle,
|
||||||
|
btnExists,
|
||||||
|
btnTitle,
|
||||||
|
btnURL,
|
||||||
|
single,
|
||||||
|
imgOne,
|
||||||
|
imgOneAlt,
|
||||||
|
imgTwo,
|
||||||
|
imgTwoAlt,
|
||||||
|
} = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<section
|
||||||
|
class="mx-auto max-w-[85rem] items-center gap-16 px-4 py-10 sm:px-6 lg:grid lg:grid-cols-2 lg:px-8 lg:py-14 2xl:max-w-full"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<h2
|
||||||
|
class="mb-4 text-4xl font-extrabold tracking-tight text-balance text-neutral-800 dark:text-neutral-200"
|
||||||
|
>
|
||||||
|
{title}
|
||||||
|
</h2>
|
||||||
|
<p
|
||||||
|
class="mb-4 max-w-prose font-light text-pretty text-neutral-600 sm:text-lg dark:text-neutral-400"
|
||||||
|
>
|
||||||
|
{subTitle}
|
||||||
|
</p>
|
||||||
|
{btnExists ? <PrimaryCTA title={btnTitle} url={btnURL} /> : null}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{
|
||||||
|
single ? (
|
||||||
|
<div class="mt-8">
|
||||||
|
<Image
|
||||||
|
class="w-full rounded-lg"
|
||||||
|
src={imgOne}
|
||||||
|
alt={imgOneAlt}
|
||||||
|
format="webp"
|
||||||
|
loading="lazy"
|
||||||
|
width="850"
|
||||||
|
height="420"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div class="mt-8 grid grid-cols-2 gap-4">
|
||||||
|
<Image
|
||||||
|
class="w-full rounded-xl"
|
||||||
|
src={imgOne}
|
||||||
|
alt={imgOneAlt}
|
||||||
|
draggable="false"
|
||||||
|
format="webp"
|
||||||
|
loading="lazy"
|
||||||
|
width="400"
|
||||||
|
height="230"
|
||||||
|
/>
|
||||||
|
<Image
|
||||||
|
class="mt-4 w-full rounded-xl lg:mt-10"
|
||||||
|
src={imgTwo}
|
||||||
|
alt={imgTwoAlt}
|
||||||
|
draggable="false"
|
||||||
|
format="webp"
|
||||||
|
loading="lazy"
|
||||||
|
width="400"
|
||||||
|
height="230"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</section>
|
||||||
44
src/components/blog/BlogSelectedArticles.astro
Normal file
44
src/components/blog/BlogSelectedArticles.astro
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
import type { Post } from '@lib/directusTypes';
|
||||||
|
|
||||||
|
import { getDirectusImageURL } from '@lib/directusFunctions';
|
||||||
|
import BlogLeftSection from '@components/blog/BlogLeftSection.astro';
|
||||||
|
import BlogRightSection from '@components/blog/BlogRightSection.astro';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
posts: Post[];
|
||||||
|
}
|
||||||
|
|
||||||
|
const { posts } = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<section class="smooth-reveal">
|
||||||
|
{
|
||||||
|
posts.map((b, index) =>
|
||||||
|
index % 2 === 0 ? (
|
||||||
|
<BlogLeftSection
|
||||||
|
title={b.title}
|
||||||
|
subTitle={b.description}
|
||||||
|
btnExists={true}
|
||||||
|
btnTitle="Read More"
|
||||||
|
btnURL={`/blog/${b.slug}`}
|
||||||
|
img={getDirectusImageURL(b.image)}
|
||||||
|
imgAlt={b.image_alt}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<BlogRightSection
|
||||||
|
title={b.title}
|
||||||
|
subTitle={b.description}
|
||||||
|
btnExists={true}
|
||||||
|
btnTitle="Read More"
|
||||||
|
btnURL={`/blog/${b.slug}`}
|
||||||
|
single={!b.image_second}
|
||||||
|
imgOne={getDirectusImageURL(b.image)}
|
||||||
|
imgOneAlt={b.image_alt}
|
||||||
|
imgTwo={getDirectusImageURL(b?.image_second)}
|
||||||
|
imgTwoAlt={b?.image_second_alt}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</section>
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
---
|
|
||||||
import { Icon } from 'astro-icon/components';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
url?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { url } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<a
|
|
||||||
class="button-base button-bg-gitea group inline-flex rounded-full gap-x-2"
|
|
||||||
href={url}
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
<div class="button-text-title flex relative items-center text-center">
|
|
||||||
<Icon
|
|
||||||
name="pajamas:gitea"
|
|
||||||
class="h-4 w-4 md:h-6 md:w-6"
|
|
||||||
/>
|
|
||||||
<span class="ml-2">
|
|
||||||
Continue to Gitea
|
|
||||||
</span>
|
|
||||||
<Icon
|
|
||||||
name="mdi:keyboard-arrow-right"
|
|
||||||
class="button-hover-arrow"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
import Icon from '@components/ui/icons/icon.astro';
|
|
||||||
---
|
|
||||||
|
|
||||||
<button
|
|
||||||
class="button-base button-bg-blue group inline-flex rounded-lg gap-x-2"
|
|
||||||
id="back-button"
|
|
||||||
data-astro-prefetch
|
|
||||||
>
|
|
||||||
<div class="button-text-title flex relative items-center text-center">
|
|
||||||
<Icon name="arrowLeft" />
|
|
||||||
<span class="ml-2">
|
|
||||||
Go Back
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
document.getElementById('back-button')?.addEventListener('click', () => {
|
|
||||||
window.history.back();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
---
|
|
||||||
import { Icon } from 'astro-icon/components';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
url?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { url } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<a
|
|
||||||
class="button-base button-bg-teal group inline-flex rounded-lg gap-x-2"
|
|
||||||
href={url}
|
|
||||||
data-astro-prefetch
|
|
||||||
>
|
|
||||||
<div class="button-text-title flex relative items-center text-center">
|
|
||||||
<Icon
|
|
||||||
name="mdi:home-variant-outline"
|
|
||||||
class="card-hover-icon-scale h-3 w-3 md:h-5 md:w-5"
|
|
||||||
/>
|
|
||||||
<span class="ml-2">
|
|
||||||
Return Home
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
---
|
|
||||||
import { Icon } from 'astro-icon/components';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
title?: string;
|
|
||||||
url?: string;
|
|
||||||
noArrow?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { title, url, noArrow } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<a
|
|
||||||
class="button-base button-bg-teal group inline-flex rounded-lg gap-x-2"
|
|
||||||
href={url}
|
|
||||||
data-astro-prefetch
|
|
||||||
>
|
|
||||||
<div class="button-text-title flex relative items-center text-center">
|
|
||||||
<span class="mr-2">
|
|
||||||
{title}
|
|
||||||
</span>
|
|
||||||
{noArrow ? null : (
|
|
||||||
<Icon
|
|
||||||
name="mdi:keyboard-arrow-right"
|
|
||||||
class="button-hover-arrow"
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
interface Props {
|
|
||||||
title?: string;
|
|
||||||
url?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { title, url } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<a
|
|
||||||
class="button-base button-bg-neutral group inline-flex rounded-lg gap-x-2"
|
|
||||||
href={url}
|
|
||||||
data-astro-prefetch
|
|
||||||
>
|
|
||||||
<div class="button-text-title flex relative items-center text-center">
|
|
||||||
<span>
|
|
||||||
{title}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
---
|
|
||||||
import Icon from '@components/ui/icons/icon.astro';
|
|
||||||
|
|
||||||
type SocialPlatform = {
|
|
||||||
name: string;
|
|
||||||
url: string;
|
|
||||||
svg: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
pageTitle: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { pageTitle } = Astro.props;
|
|
||||||
|
|
||||||
const socialPlatforms: SocialPlatform[] = [
|
|
||||||
{
|
|
||||||
name: 'Facebook',
|
|
||||||
url: `https://www.facebook.com/sharer/sharer.php?u=${Astro.url}`,
|
|
||||||
svg: 'facebook',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'X',
|
|
||||||
url: `https://x.com/intent/tweet?url=${Astro.url}&text=${pageTitle}`,
|
|
||||||
svg: 'x',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'LinkedIn',
|
|
||||||
url: `https://www.linkedin.com/sharing/share-offsite/?url=${Astro.url}`,
|
|
||||||
svg: 'linkedIn',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
---
|
|
||||||
|
|
||||||
<div class="inline-flex items-center gap-x-2">
|
|
||||||
{socialPlatforms.map((platform) => (
|
|
||||||
<a
|
|
||||||
class="button-base-hidden group inline-flex rounded-lg gap-x-2"
|
|
||||||
href={platform.url}
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
title={`Share on ${platform.name}`}
|
|
||||||
>
|
|
||||||
<div class="button-text-title-hidden flex relative items-center text-center">
|
|
||||||
<Icon
|
|
||||||
name={platform.svg}
|
|
||||||
class="h-5 w-5"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
---
|
|
||||||
import { Icon } from 'astro-icon/components';
|
|
||||||
|
|
||||||
import type { Post } from '@lib/directusTypes';
|
|
||||||
|
|
||||||
import Image from '@components/ui/images/Image.astro';
|
|
||||||
import { getDirectusImageURL } from '@lib/directusFunctions';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
post: Post;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { post } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<div class="smooth-reveal-cards group flex flex-col">
|
|
||||||
<a
|
|
||||||
class="card-base border-none!"
|
|
||||||
href={`/blog/${post.slug}/`}
|
|
||||||
data-astro-prefetch
|
|
||||||
>
|
|
||||||
<div class="relative shrink-0 rounded-t-xl w-full overflow-hidden before:absolute before:inset-x-0 before:z-1 before:size-full">
|
|
||||||
<Image
|
|
||||||
class="rounded-t-xl h-auto w-full"
|
|
||||||
src={getDirectusImageURL(post.image)}
|
|
||||||
alt={post.image_alt}
|
|
||||||
draggable="false"
|
|
||||||
loading="eager"
|
|
||||||
format="webp"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="rounded-xl p-4 md:p-5">
|
|
||||||
<h3 class="card-text-title text-xl">
|
|
||||||
{post.title}
|
|
||||||
</h3>
|
|
||||||
<div class="ml-6 flex">
|
|
||||||
<div class="relative inline-block w-full">
|
|
||||||
<div class="card-text-title card-hover-text-title flex relative items-center mx-auto min-h-11 sm:mx-0 sm:mt-4">
|
|
||||||
<span class="relative inline-block overflow-hidden ml-2">
|
|
||||||
Read more
|
|
||||||
</span>
|
|
||||||
<Icon
|
|
||||||
name="mdi:keyboard-arrow-right"
|
|
||||||
class="translate-y-0.5 transition duration-300 group-hover:translate-x-1"
|
|
||||||
/>
|
|
||||||
<p class="card-text-description text-sm ml-auto">
|
|
||||||
{new Date(post.published_date).toLocaleDateString('en-US', {
|
|
||||||
year: 'numeric',
|
|
||||||
month: 'short',
|
|
||||||
day: 'numeric',
|
|
||||||
})}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
---
|
|
||||||
import { Icon } from 'astro-icon/components';
|
|
||||||
|
|
||||||
import Image from '@components/ui/images/Image.astro';
|
|
||||||
import { getDirectusImageURL } from '@lib/directusFunctions';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
title: string;
|
|
||||||
subTitle: string;
|
|
||||||
url: string;
|
|
||||||
img: string;
|
|
||||||
imgAlt: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { title, subTitle, url, img, imgAlt } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<div class="smooth-reveal group">
|
|
||||||
<a
|
|
||||||
class="card-base-hidden md:grid md:grid-cols-2 lg:grid lg:grid-cols-2 items-center gap-8 xl:gap-16 max-w-340 2xl:max-w-full px-4 sm:px-6 lg:px-8 py-10 sm:py-16 lg:py-14 mx-auto"
|
|
||||||
href={url}
|
|
||||||
data-astro-prefetch
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<Image
|
|
||||||
class="rounded-xl w-full h-full sm:max-h-80 md:max-h-90 object-cover"
|
|
||||||
src={getDirectusImageURL(img)}
|
|
||||||
alt={imgAlt}
|
|
||||||
draggable="false"
|
|
||||||
loading="lazy"
|
|
||||||
width="850"
|
|
||||||
height="420"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h2 class="card-text-header mb-4">
|
|
||||||
{title}
|
|
||||||
</h2>
|
|
||||||
<p class="card-text-title font-light text-pretty sm:text-lg max-w-prose mb-4">
|
|
||||||
{subTitle}
|
|
||||||
</p>
|
|
||||||
<div class="button-base button-bg-teal inline-flex rounded-lg gap-x-2">
|
|
||||||
<div class="button-text-title flex relative items-center text-center">
|
|
||||||
<span class="mr-2">
|
|
||||||
Read More
|
|
||||||
</span>
|
|
||||||
<Icon
|
|
||||||
name="mdi:keyboard-arrow-right"
|
|
||||||
class="button-hover-arrow"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
---
|
|
||||||
import { Icon } from 'astro-icon/components';
|
|
||||||
|
|
||||||
import Image from '@components/ui/images/Image.astro';
|
|
||||||
import { getDirectusImageURL } from '@lib/directusFunctions';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
title: string;
|
|
||||||
subTitle: string;
|
|
||||||
url: string;
|
|
||||||
single?: boolean;
|
|
||||||
imgOne: any;
|
|
||||||
imgOneAlt: any;
|
|
||||||
imgTwo?: any;
|
|
||||||
imgTwoAlt?: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { title, subTitle, url, single, imgOne, imgOneAlt, imgTwo, imgTwoAlt } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<div class="smooth-reveal group">
|
|
||||||
<a
|
|
||||||
class="card-base-hidden items-center lg:grid lg:grid-cols-2 gap-16 max-w-340 2xl:max-w-full px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"
|
|
||||||
href={url}
|
|
||||||
data-astro-prefetch
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<h2 class="card-text-header mb-4">
|
|
||||||
{title}
|
|
||||||
</h2>
|
|
||||||
<p class="card-text-title font-light text-pretty sm:text-lg max-w-prose mb-4">
|
|
||||||
{subTitle}
|
|
||||||
</p>
|
|
||||||
<div class="button-base button-bg-teal inline-flex rounded-lg gap-x-2">
|
|
||||||
<div class="button-text-title flex relative items-center text-center">
|
|
||||||
<span class="mr-2">
|
|
||||||
Read More
|
|
||||||
</span>
|
|
||||||
<Icon
|
|
||||||
name="mdi:keyboard-arrow-right"
|
|
||||||
class="button-hover-arrow"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{single ? (
|
|
||||||
<div>
|
|
||||||
<Image
|
|
||||||
class="rounded-xl w-full"
|
|
||||||
src={getDirectusImageURL(imgOne)}
|
|
||||||
alt={imgOneAlt}
|
|
||||||
format="webp"
|
|
||||||
loading="lazy"
|
|
||||||
width="850"
|
|
||||||
height="420"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div class="grid grid-cols-2 gap-4">
|
|
||||||
<Image
|
|
||||||
class="rounded-xl w-full"
|
|
||||||
src={getDirectusImageURL(imgOne)}
|
|
||||||
alt={imgOneAlt}
|
|
||||||
draggable="false"
|
|
||||||
format="webp"
|
|
||||||
loading="lazy"
|
|
||||||
width="400"
|
|
||||||
height="230"
|
|
||||||
/>
|
|
||||||
<Image
|
|
||||||
class="rounded-xl w-full mt-4 lg:mt-10"
|
|
||||||
src={getDirectusImageURL(imgTwo)}
|
|
||||||
alt={imgTwoAlt}
|
|
||||||
draggable="false"
|
|
||||||
format="webp"
|
|
||||||
loading="lazy"
|
|
||||||
width="400"
|
|
||||||
height="230"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
@@ -1,93 +0,0 @@
|
|||||||
---
|
|
||||||
import { getCollection } from 'astro:content';
|
|
||||||
import { readItems } from '@directus/sdk';
|
|
||||||
|
|
||||||
import type { Post } from '@lib/directusTypes';
|
|
||||||
|
|
||||||
import CategoryCard from '@components/cards/CategoryCard.astro';
|
|
||||||
import directus from '@lib/directus';
|
|
||||||
import { timeago } from '@support/time';
|
|
||||||
|
|
||||||
const posts = await directus.request(
|
|
||||||
readItems('posts', {
|
|
||||||
filter: { published: { _eq: true } },
|
|
||||||
fields: ['*'],
|
|
||||||
sort: ['-published_date'],
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
const layoutPattern = [
|
|
||||||
{ col: 2, row: 2 },
|
|
||||||
{ col: 2, row: 1 },
|
|
||||||
{ col: 1, row: 1 },
|
|
||||||
{ col: 1, row: 1 },
|
|
||||||
{ col: 1, row: 2 },
|
|
||||||
{ col: 2, row: 1 },
|
|
||||||
{ col: 1, row: 1 },
|
|
||||||
{ col: 1, row: 1 },
|
|
||||||
{ col: 1, row: 1 },
|
|
||||||
{ col: 1, row: 1 },
|
|
||||||
];
|
|
||||||
|
|
||||||
const postMap: Map<string, Post[]> = posts
|
|
||||||
.sort((a: Post, b: Post) => b.published_date.valueOf() - a.published_date.valueOf())
|
|
||||||
.reduce((acc, obj) => {
|
|
||||||
let posts = acc.get(obj.category);
|
|
||||||
if (!posts) {
|
|
||||||
posts = [];
|
|
||||||
}
|
|
||||||
posts.push(obj);
|
|
||||||
|
|
||||||
acc.set(obj.category, posts);
|
|
||||||
|
|
||||||
return acc;
|
|
||||||
}, new Map<string, Post[]>());
|
|
||||||
|
|
||||||
const categories = (await getCollection('categories'))
|
|
||||||
.sort((a, b) => {
|
|
||||||
const aCount = postMap.get(a.slug)?.length ?? 0;
|
|
||||||
const bCount = postMap.get(b.slug)?.length ?? 0;
|
|
||||||
return bCount - aCount;
|
|
||||||
})
|
|
||||||
.map((c, index) => {
|
|
||||||
const posts = postMap.get(c.slug);
|
|
||||||
const pattern = layoutPattern[index % layoutPattern.length];
|
|
||||||
const smColSpan = Math.min(pattern.col, 2);
|
|
||||||
const mdColSpan = Math.min(pattern.col, 4);
|
|
||||||
const rowSpan = pattern.row;
|
|
||||||
const rowSpanClass = rowSpan > 1 ? `row-span-${rowSpan}` : 'row-span-1';
|
|
||||||
const gridItemClass = `col-span-${smColSpan} md:col-span-${mdColSpan} ${rowSpanClass}`;
|
|
||||||
return {
|
|
||||||
...c,
|
|
||||||
posts,
|
|
||||||
gridItemClass,
|
|
||||||
layoutPattern: {
|
|
||||||
smCol: smColSpan,
|
|
||||||
mdCol: mdColSpan,
|
|
||||||
row: rowSpan,
|
|
||||||
index,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
---
|
|
||||||
|
|
||||||
<section class="mx-auto px-4 py-10 sm:px-6 lg:px-8 lg:py-14 lg:pt-10 2xl:max-w-full">
|
|
||||||
<div class="grid grid-flow-row-dense grid-cols-2 md:grid-cols-4 gap-4">
|
|
||||||
{categories.map((category) => {
|
|
||||||
return (
|
|
||||||
<div
|
|
||||||
class={category.gridItemClass}
|
|
||||||
style={category.layoutPattern.row > 1 ? 'grid-row: span 2 / span 2;' : ''}
|
|
||||||
>
|
|
||||||
<CategoryCard
|
|
||||||
slug={category.slug}
|
|
||||||
title={category.data.title}
|
|
||||||
description={category.data.description}
|
|
||||||
count={postMap.get(category.slug)?.length ?? 0}
|
|
||||||
publishDate={timeago(postMap.get(category.slug)?.[0]?.published_date)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
@@ -1,159 +0,0 @@
|
|||||||
---
|
|
||||||
import { Icon } from 'astro-icon/components';
|
|
||||||
import { readItems } from '@directus/sdk';
|
|
||||||
|
|
||||||
import type { Experience } from '@lib/directusTypes';
|
|
||||||
|
|
||||||
import directus from '@lib/directus';
|
|
||||||
|
|
||||||
const experiences = ((await directus.request(
|
|
||||||
readItems('site_experience'as any, {
|
|
||||||
fields: ['*'],
|
|
||||||
sort: ['-endDate'],
|
|
||||||
})
|
|
||||||
)) as unknown) as Experience[];
|
|
||||||
---
|
|
||||||
|
|
||||||
<section class:list={['flex flex-col gap-8', Astro.props.className]}>
|
|
||||||
<h3 class="smooth-reveal card-text-header flex relative items-center w-full gap-3 pb-10">
|
|
||||||
Experience
|
|
||||||
</h3>
|
|
||||||
<ul class="ml-8 w-full flex flex-col">
|
|
||||||
{experiences.map((experience: Experience) => {
|
|
||||||
const startYear = new Date(experience.startDate).getFullYear();
|
|
||||||
const endYear = experience.endDate != null ? new Date(experience.endDate).getFullYear() : 'Present';
|
|
||||||
|
|
||||||
return (
|
|
||||||
<li class="relative">
|
|
||||||
<div class="smooth-reveal group relative grid sm:grid-cols-18 sm:gap-8 md:gap-6 pb-16">
|
|
||||||
<header class="relative sm:col-span-3 text-header font-semibold text-lg mt-1">
|
|
||||||
<time datetime={experience.startDate} data-title={experience.startDate}>
|
|
||||||
{startYear}
|
|
||||||
</time>
|
|
||||||
{' '}-{' '}
|
|
||||||
<time datetime={experience.endDate} data-title={experience.endDate}>
|
|
||||||
{endYear}
|
|
||||||
</time>
|
|
||||||
</header>
|
|
||||||
<div class="relative flex flex-col sm:col-span-12 pb-6">
|
|
||||||
<div class="absolute bg-stone-400 -translate-x-[1.71rem] rounded-full h-2 w-2 mt-4"/>
|
|
||||||
<h3>
|
|
||||||
<div
|
|
||||||
class="inline-flex items-center text-2xl leading-tight font-semibold"
|
|
||||||
aria-label="{position} - {company}"
|
|
||||||
>
|
|
||||||
<span class="text-header">
|
|
||||||
{experience.position} <span>@</span>
|
|
||||||
{experience.url ? (
|
|
||||||
<a
|
|
||||||
class="hover:text-main"
|
|
||||||
href={experience.url}
|
|
||||||
title={`Ver ${experience.name}`}
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
{experience.name}
|
|
||||||
</a>
|
|
||||||
) : (
|
|
||||||
<span>{experience.name}</span>
|
|
||||||
)}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</h3>
|
|
||||||
{(experience.location || experience.location_type) && (
|
|
||||||
<div class="text-secondary text-sm">
|
|
||||||
{experience.location} {experience.location && experience.location_type && '-'} {experience.location_type}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<div class="text-md mt-4 flex flex-col gap-4" x-data="{ expanded: false }">
|
|
||||||
{experience.summary && (
|
|
||||||
<div class="flex flex-col gap-1">
|
|
||||||
<h4 class="text-header font-semibold">
|
|
||||||
Summary:
|
|
||||||
</h4>
|
|
||||||
<ul class="flex flex-col text-primary list-disc gap-2 [&>li]:ml-4">
|
|
||||||
<li class="marker:text-main">
|
|
||||||
{experience.summary}
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{(experience.responsibilities || experience.achievements) && (
|
|
||||||
<div class="relative flex flex-col gap-4 max-sm:h-auto! md:after:absolute md:after:bottom-0 md:after:h-12 md:after:w-full md:after:bg-linear-to-t md:after:from-neutral-200 dark:md:after:from-stone-700 md:after:content-[''] " :class="expanded ? 'after:hidden' : ''" x-show="expanded" x-collapse.min.50px>
|
|
||||||
{experience.responsibilities && (
|
|
||||||
<div class="flex flex-col gap-1">
|
|
||||||
<h4 class="text-header font-semibold">
|
|
||||||
Responsibilities:
|
|
||||||
</h4>
|
|
||||||
<ul class="flex flex-col text-primary list-disc gap-2 [&>li]:ml-4">
|
|
||||||
{experience.responsibilities.map(responsibility => (
|
|
||||||
<li class="marker:text-main">
|
|
||||||
{responsibility}
|
|
||||||
</li>
|
|
||||||
))}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{experience.achievements && (
|
|
||||||
<div class="flex flex-col gap-1">
|
|
||||||
<h4 class="text-header font-semibold">
|
|
||||||
Achievements:
|
|
||||||
</h4>
|
|
||||||
<ul class="flex flex-col text-primary list-disc gap-2 [&>li]:ml-4">
|
|
||||||
{experience.achievements.map(achievement => (
|
|
||||||
<li class="marker:text-main">
|
|
||||||
{achievement}
|
|
||||||
</li>
|
|
||||||
))}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button @click="expanded = ! expanded" class="group/more flex items-center justify-center text-primary hover:text-primary-hover text-xs underline transition-all gap-1.5 w-fit cursor-pointer">
|
|
||||||
<span x-text="expanded ? 'Show less' : 'Show more'">
|
|
||||||
Show more
|
|
||||||
</span>
|
|
||||||
<svg
|
|
||||||
class="group-hover/more:translate-y-0.5 ease-out duration-300 h-4 w-4"
|
|
||||||
:class="{ 'rotate-180': expanded }"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
fill="none"
|
|
||||||
stroke="currentColor"
|
|
||||||
stroke-width="2"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
>
|
|
||||||
<polyline points="6 9 12 15 18 9" />
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<ul
|
|
||||||
class="flex print:hidden flex-wrap gap-2"
|
|
||||||
aria-label="Technologies used"
|
|
||||||
>
|
|
||||||
{experience.skills && experience.skills.map(skill => {
|
|
||||||
const iconName = skill.toLowerCase();
|
|
||||||
const skillName = skill.split(':')[1].replace(/^language-/, '').replace(/-/g, ' ').replace(/\b\w/g, (l) => l.toUpperCase());
|
|
||||||
return (
|
|
||||||
<li class="flex items-center bg-steel/20 dark:bg-bermuda/20 text-neutral-800 dark:text-neutral-200 text-xs rounded-md border border-solid border-steel/20 dark:border-bermuda/20 gap-1 px-2 py-0.5">
|
|
||||||
<Icon name={`${iconName}`} class="h-4 w-4" /> <span>{skillName}</span>
|
|
||||||
</li>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
</ul>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Alpine Plugins -->
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/@alpinejs/collapse@3.x.x/dist/cdn.min.js"></script>
|
|
||||||
|
|
||||||
<!-- Alpine Core -->
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
import GoLinkPrimaryButton from '@components/buttons/GoLinkPrimaryButton.astro';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
title: string;
|
|
||||||
subTitle: string;
|
|
||||||
btnExists?: boolean;
|
|
||||||
btnTitle?: string;
|
|
||||||
btnURL?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { title, subTitle, btnExists, btnTitle, btnURL } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<section class="mx-auto mt-10 px-4 sm:px-6 lg:px-8 lg:pt-10 2xl:max-w-full">
|
|
||||||
<div class="flex-wrap md:flex md:items-center md:justify-between">
|
|
||||||
<div class="w-full md:w-auto">
|
|
||||||
<h1 class="smooth-reveal card-text-header block lg:text-6xl">
|
|
||||||
{title}
|
|
||||||
</h1>
|
|
||||||
<p class="smooth-reveal card-text-header-description mt-4">
|
|
||||||
{subTitle}
|
|
||||||
</p>
|
|
||||||
{btnExists ? (
|
|
||||||
<div class="smooth-reveal mt-4 md:mt-8">
|
|
||||||
<GoLinkPrimaryButton title={btnTitle} url={btnURL}/>
|
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
---
|
|
||||||
import GoLinkPrimaryButton from '@components/buttons/GoLinkPrimaryButton.astro';
|
|
||||||
import GoLinkSecondaryButton from '@components/buttons/GoLinkSecondaryButton.astro';
|
|
||||||
import Image from '@components/ui/images/Image.astro';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
title: string;
|
|
||||||
subTitle?: string;
|
|
||||||
primaryBtn?: string;
|
|
||||||
primaryBtnURL?: string;
|
|
||||||
secondaryBtn?: string;
|
|
||||||
secondaryBtnURL?: string;
|
|
||||||
src?: any;
|
|
||||||
alt?: string;
|
|
||||||
rounded?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { title, subTitle, primaryBtn, primaryBtnURL, secondaryBtn, secondaryBtnURL, src, alt } = Astro.props;
|
|
||||||
|
|
||||||
const roundedClasses = Astro.props.rounded ? "rounded-xl" : null;
|
|
||||||
---
|
|
||||||
|
|
||||||
<section class="mx-auto grid max-w-340 gap-4 px-4 py-14 sm:px-6 md:grid-cols-2 md:items-center md:gap-8 lg:px-8 2xl:max-w-full">
|
|
||||||
<div>
|
|
||||||
<h1 class="smooth-reveal card-text-header block lg:text-7xl">
|
|
||||||
<Fragment set:html={title} />
|
|
||||||
</h1>
|
|
||||||
{subTitle && (
|
|
||||||
<p class="smooth-reveal card-text-header-description lg:w-4/5 mt-6">
|
|
||||||
{subTitle}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
<div class="smooth-reveal grid sm:inline-flex mt-7 w-full gap-3">
|
|
||||||
{primaryBtn && <GoLinkPrimaryButton title={primaryBtn} url={primaryBtnURL} />}
|
|
||||||
{secondaryBtn && <GoLinkSecondaryButton title={secondaryBtn} url={secondaryBtnURL} />}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="smooth-reveal-fade md:block w-full hidden">
|
|
||||||
<div class="flex justify-center w-full top-12 md:ml-4 overflow-hidden">
|
|
||||||
{src && alt && (
|
|
||||||
<Image
|
|
||||||
src={src}
|
|
||||||
alt={alt}
|
|
||||||
class={`h-full w-105 scale-100 object-cover object-center ${roundedClasses}`}
|
|
||||||
draggable="false"
|
|
||||||
loading="eager"
|
|
||||||
format="webp"
|
|
||||||
quality="low"
|
|
||||||
widths={[840]}
|
|
||||||
disableBlur={true}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
---
|
|
||||||
import type { Post } from '@lib/directusTypes';
|
|
||||||
|
|
||||||
import BlogCard from '@components/cards/BlogCard.astro';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
posts: Post[];
|
|
||||||
title: string;
|
|
||||||
subTitle?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { posts, title, subTitle } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<section class="mx-auto mb-20 max-w-340 px-4 py-10 sm:px-6 lg:px-8 lg:py-14 2xl:max-w-full">
|
|
||||||
<div class="mx-auto mb-10 max-w-2xl text-center lg:mb-14">
|
|
||||||
<h1 class="smooth-reveal card-text-header block">
|
|
||||||
{title}
|
|
||||||
</h1>
|
|
||||||
<div class="smooth-reveal mx-auto mt-5 max-w-3xl text-center">
|
|
||||||
<span class="card-text-header-description">
|
|
||||||
{subTitle}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
|
||||||
{posts.map((b) => <BlogCard post={b} />)}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
---
|
|
||||||
import type { Post } from '@lib/directusTypes';
|
|
||||||
|
|
||||||
import LargeBlogLeftCard from '@components/cards/LargeBlogLeftCard.astro';
|
|
||||||
import LargeBlogRightCard from '@components/cards/LargeBlogRightCard.astro';
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
posts: Post[];
|
|
||||||
}
|
|
||||||
|
|
||||||
const { posts } = Astro.props;
|
|
||||||
---
|
|
||||||
|
|
||||||
<section class="smooth-reveal">
|
|
||||||
{posts.map((post, index) => index % 2 === 0 ? (
|
|
||||||
<LargeBlogLeftCard
|
|
||||||
title={post.title}
|
|
||||||
subTitle={post.description}
|
|
||||||
url={`/blog/${post.slug}`}
|
|
||||||
img={post.image}
|
|
||||||
imgAlt={post.image_alt}
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<LargeBlogRightCard
|
|
||||||
title={post.title}
|
|
||||||
subTitle={post.description}
|
|
||||||
url={`/blog/${post.slug}`}
|
|
||||||
single={!post.image_second}
|
|
||||||
imgOne={post.image}
|
|
||||||
imgOneAlt={post.image_alt}
|
|
||||||
imgTwo={post?.image_second}
|
|
||||||
imgTwoAlt={post?.image_second_alt}
|
|
||||||
/>
|
|
||||||
))}
|
|
||||||
</section>
|
|
||||||
@@ -4,7 +4,7 @@ import Icon from '@components/ui/icons/icon.astro';
|
|||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="button-base button-bg-blue group inline-flex items-center rounded-lg p-2.5"
|
class="focus-visible:ring-secondary group inline-flex items-center rounded-lg p-2.5 text-neutral-600 ring-neutral-500 transition duration-300 outline-none hover:bg-neutral-100 focus:outline-none focus-visible:ring-1 focus-visible:outline-none dark:text-neutral-400 dark:ring-neutral-200 dark:hover:bg-neutral-700"
|
||||||
data-bookmark-button="bookmark-button"
|
data-bookmark-button="bookmark-button"
|
||||||
>
|
>
|
||||||
<Icon name="bookmark" />
|
<Icon name="bookmark" />
|
||||||
32
src/components/ui/buttons/GiteaBtn.astro
Normal file
32
src/components/ui/buttons/GiteaBtn.astro
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
import { Icon } from 'astro-icon/components';
|
||||||
|
|
||||||
|
const { title, url } = Astro.props;
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title?: string;
|
||||||
|
url?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const baseClasses =
|
||||||
|
'group group-hover inline-flex items-center justify-center gap-x-3 rounded-full px-4 py-3 text-center text-sm font-medium text-neutral-200';
|
||||||
|
const borderClasses = 'border border-transparent';
|
||||||
|
const bgColorClasses =
|
||||||
|
'bg-gitea-primary hover:bg-gitea-secondary dark:bg-gitea-secondary dark:hover:bg-gitea-primary';
|
||||||
|
const shadowClasses = 'shadow-sm';
|
||||||
|
const fontSizeClasses = '2xl:text-base';
|
||||||
|
---
|
||||||
|
|
||||||
|
<a
|
||||||
|
class={`${baseClasses} ${borderClasses} ${bgColorClasses} ${shadowClasses} ${fontSizeClasses} `}
|
||||||
|
href={url}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<Icon name="pajamas:gitea" class="h-4 w-4 md:h-6 md:w-6" />
|
||||||
|
{title}
|
||||||
|
<Icon
|
||||||
|
name="mdi:keyboard-arrow-right"
|
||||||
|
class="h-3 w-3 translate-y-0.25 transition duration-300 group-hover:translate-x-1 md:h-5 md:w-5"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
35
src/components/ui/buttons/GoBack.astro
Normal file
35
src/components/ui/buttons/GoBack.astro
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
import Icon from '@components/ui/icons/icon.astro';
|
||||||
|
|
||||||
|
const { title, noArrow } = Astro.props;
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title?: string;
|
||||||
|
url?: string;
|
||||||
|
noArrow?: boolean;
|
||||||
|
addHome?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
const baseClasses =
|
||||||
|
'group inline-flex items-center justify-center gap-x-2 rounded-lg px-4 py-3 text-sm font-bold text-neutral-50 ring-neutral-500 transition duration-300 focus-visible:ring outline-none';
|
||||||
|
const borderClasses = 'border border-transparent';
|
||||||
|
const bgColorClasses = 'bg-steel hover:bg-sky-800 active:bg-orange-500 dark:focus:outline-none';
|
||||||
|
const disableClasses = 'disabled:pointer-events-none disabled:opacity-50';
|
||||||
|
const fontSizeClasses = '2xl:text-base';
|
||||||
|
const ringClasses = 'dark:ring-neutral-200';
|
||||||
|
---
|
||||||
|
|
||||||
|
<button
|
||||||
|
class={`${baseClasses} ${borderClasses} ${bgColorClasses} ${disableClasses} ${fontSizeClasses} ${ringClasses}`}
|
||||||
|
id="back-button"
|
||||||
|
data-astro-prefetch
|
||||||
|
>
|
||||||
|
{noArrow ? null : <Icon name="arrowLeft" />}
|
||||||
|
{title}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.getElementById('back-button')?.addEventListener('click', () => {
|
||||||
|
window.history.back();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
45
src/components/ui/buttons/PrimaryCTA.astro
Normal file
45
src/components/ui/buttons/PrimaryCTA.astro
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
import { Icon } from 'astro-icon/components';
|
||||||
|
|
||||||
|
const { title, url, noArrow, addHome, addClass } = Astro.props;
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title?: string;
|
||||||
|
url?: string;
|
||||||
|
noArrow?: boolean;
|
||||||
|
addHome?: boolean;
|
||||||
|
addClass?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const baseClasses =
|
||||||
|
'group inline-flex items-center justify-center gap-x-2 rounded-lg px-4 py-3 text-sm font-bold text-neutral-100 transition duration-300 ';
|
||||||
|
const borderClasses = 'border border-transparent';
|
||||||
|
const bgColorClasses = 'bg-bermuda hover:bg-turquoise dark:bg-turquoise dark:hover:bg-bermuda';
|
||||||
|
const disableClasses = 'disabled:pointer-events-none disabled:opacity-50';
|
||||||
|
const fontSizeClasses = '2xl:text-base';
|
||||||
|
const ringClasses = 'dark:ring-neutral-200';
|
||||||
|
---
|
||||||
|
|
||||||
|
<a
|
||||||
|
class={`${baseClasses} ${borderClasses} ${bgColorClasses} ${disableClasses} ${fontSizeClasses} ${ringClasses} ${addClass}`}
|
||||||
|
href={url}
|
||||||
|
data-astro-prefetch
|
||||||
|
>
|
||||||
|
{
|
||||||
|
addHome ? (
|
||||||
|
<Icon
|
||||||
|
name="mdi:home-variant-outline"
|
||||||
|
class="h-3 w-3 translate-y-0.25 transition duration-300 group-hover:translate-x-1 md:h-5 md:w-5"
|
||||||
|
/>
|
||||||
|
) : null
|
||||||
|
}
|
||||||
|
{title}
|
||||||
|
{
|
||||||
|
noArrow ? null : (
|
||||||
|
<Icon
|
||||||
|
name="mdi:keyboard-arrow-right"
|
||||||
|
class="h-3 w-3 translate-y-0.25 transition duration-300 group-hover:translate-x-1 md:h-5 md:w-5"
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</a>
|
||||||
26
src/components/ui/buttons/SecondaryCTA.astro
Normal file
26
src/components/ui/buttons/SecondaryCTA.astro
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
const { title, url } = Astro.props;
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title?: string;
|
||||||
|
url?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const baseClasses =
|
||||||
|
'inline-flex items-center justify-center gap-x-2 rounded-lg px-4 py-3 text-center text-sm font-medium text-neutral-600 shadow-sm outline-none ring-neutral-500 focus-visible:ring transition duration-300';
|
||||||
|
const borderClasses = 'border border-neutral-200';
|
||||||
|
const bgColorClasses = 'bg-neutral-300';
|
||||||
|
const hoverClasses = 'hover:bg-neutral-400/50 hover:text-neutral-600 active:text-neutral-700';
|
||||||
|
const disableClasses = 'disabled:pointer-events-none disabled:opacity-50';
|
||||||
|
const fontSizeClasses = '2xl:text-base';
|
||||||
|
const ringClasses = 'ring-neutral-500';
|
||||||
|
const darkClasses =
|
||||||
|
'dark:border-neutral-700 dark:bg-neutral-700 dark:text-neutral-300 dark:ring-neutral-200 dark:hover:bg-neutral-600 dark:focus:outline-none';
|
||||||
|
---
|
||||||
|
|
||||||
|
<a
|
||||||
|
class={`${baseClasses} ${borderClasses} ${bgColorClasses} ${hoverClasses} ${disableClasses} ${fontSizeClasses} ${ringClasses} ${darkClasses}`}
|
||||||
|
href={url}
|
||||||
|
>
|
||||||
|
{title}
|
||||||
|
</a>
|
||||||
150
src/components/ui/buttons/SocialShare.astro
Normal file
150
src/components/ui/buttons/SocialShare.astro
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
---
|
||||||
|
import Icon from '@components/ui/icons/icon.astro';
|
||||||
|
|
||||||
|
const { pageTitle, title = 'Share' } = Astro.props;
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
pageTitle: string;
|
||||||
|
title?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
type SocialPlatform = {
|
||||||
|
name: string;
|
||||||
|
url: string;
|
||||||
|
svg: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const socialPlatforms: SocialPlatform[] = [
|
||||||
|
{
|
||||||
|
name: 'Facebook',
|
||||||
|
url: `https://www.facebook.com/share.php?u=${Astro.url}&title=${pageTitle}`,
|
||||||
|
svg: 'facebook',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'X',
|
||||||
|
url: `https://twitter.com/home/?status=${pageTitle}${Astro.url}`,
|
||||||
|
svg: 'x',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'LinkedIn',
|
||||||
|
url: `https://www.linkedin.com/shareArticle?mini=true&url=${Astro.url}&title=${pageTitle}`,
|
||||||
|
svg: 'linkedIn',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="hs-dropdown relative inline-flex [--auto-close:inside] [--placement:top-left]">
|
||||||
|
<button
|
||||||
|
id="hs-dropup"
|
||||||
|
type="button"
|
||||||
|
class="hs-dropdown-toggle inline-flex items-center gap-x-2 rounded-lg px-4 py-3 text-sm font-medium text-neutral-600 ring-neutral-500 transition duration-300 outline-none hover:bg-neutral-100 hover:text-neutral-700 focus-visible:ring dark:text-neutral-400 dark:ring-neutral-200 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 dark:focus:outline-none"
|
||||||
|
>
|
||||||
|
<Icon name="share" />
|
||||||
|
|
||||||
|
{title}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="hs-dropdown-menu duration hs-dropdown-open:opacity-100 z-10 hidden w-72 divide-y divide-neutral-200 rounded-lg bg-neutral-50 p-2 opacity-0 shadow-md transition-[opacity,margin] dark:divide-neutral-700 dark:border dark:border-neutral-700 dark:bg-neutral-800"
|
||||||
|
aria-labelledby="hs-dropup"
|
||||||
|
>
|
||||||
|
<div class="py-2 first:pt-0 last:pb-0">
|
||||||
|
{
|
||||||
|
socialPlatforms.map((platform) => (
|
||||||
|
<a
|
||||||
|
class="flex items-center gap-x-3.5 rounded-lg px-3 py-2 text-sm text-neutral-700 hover:bg-neutral-200 focus:bg-neutral-100 focus:outline-none dark:text-neutral-300 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 dark:focus:bg-neutral-700"
|
||||||
|
href={platform.url}
|
||||||
|
>
|
||||||
|
<Icon name={platform.svg} />
|
||||||
|
Share on {platform.name}
|
||||||
|
</a>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
<div class="py-2 first:pt-0 last:pb-0">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="js-clipboard hover:text-dark focus-visible:ring-secondary group inline-flex w-full items-center gap-x-3.5 rounded-lg px-3 py-2 text-sm text-neutral-700 hover:bg-neutral-200 focus:bg-neutral-100 focus:outline-none focus-visible:ring-1 focus-visible:outline-none dark:text-neutral-300 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 dark:focus:bg-neutral-700"
|
||||||
|
data-clipboard-success-text="Copied"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
class="js-clipboard-default h-4 w-4 transition group-hover:rotate-6"
|
||||||
|
width="24"
|
||||||
|
height="24"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
>
|
||||||
|
<rect width="8" height="4" x="8" y="2" rx="1" ry="1"></rect>
|
||||||
|
<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path>
|
||||||
|
</svg>
|
||||||
|
|
||||||
|
<svg
|
||||||
|
class="js-clipboard-success hidden h-4 w-4 text-neutral-700 dark:text-neutral-300"
|
||||||
|
width="24"
|
||||||
|
height="24"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
>
|
||||||
|
<polyline points="20 6 9 17 4 12"></polyline>
|
||||||
|
</svg>
|
||||||
|
<span class="js-clipboard-success-text">Copy link</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--Import the necessary Dropdown and Clipboard plugins-->
|
||||||
|
<!--https://preline.co/plugins/html/dropdown.html-->
|
||||||
|
<!--<script is:inline src="/scripts/vendor/preline/dropdown/index.js"></script>-->
|
||||||
|
|
||||||
|
<!-- https://clipboardjs.com/ -->
|
||||||
|
<!--<script is:inline src="/scripts/vendor/clipboard.min.js"></script>-->
|
||||||
|
|
||||||
|
<script is:inline>
|
||||||
|
(function () {
|
||||||
|
window.addEventListener('load', () => {
|
||||||
|
const $clipboards = document.querySelectorAll('.js-clipboard');
|
||||||
|
$clipboards.forEach((el) => {
|
||||||
|
const clipboard = new ClipboardJS(el, {
|
||||||
|
text: () => {
|
||||||
|
return window.location.href;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
clipboard.on('success', () => {
|
||||||
|
const $default = el.querySelector('.js-clipboard-default');
|
||||||
|
const $success = el.querySelector('.js-clipboard-success');
|
||||||
|
const $successText = el.querySelector('.js-clipboard-success-text');
|
||||||
|
const successText = el.dataset.clipboardSuccessText || '';
|
||||||
|
let oldSuccessText;
|
||||||
|
|
||||||
|
if ($successText) {
|
||||||
|
oldSuccessText = $successText.textContent;
|
||||||
|
$successText.textContent = successText;
|
||||||
|
}
|
||||||
|
if ($default && $success) {
|
||||||
|
$default.style.display = 'none';
|
||||||
|
$success.style.display = 'block';
|
||||||
|
}
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
if ($successText && oldSuccessText) {
|
||||||
|
$successText.textContent = oldSuccessText;
|
||||||
|
}
|
||||||
|
if ($default && $success) {
|
||||||
|
$success.style.display = '';
|
||||||
|
$default.style.display = '';
|
||||||
|
}
|
||||||
|
}, 800);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
@@ -5,14 +5,14 @@
|
|||||||
<button
|
<button
|
||||||
id="theme-toggle"
|
id="theme-toggle"
|
||||||
data-theme-toggle
|
data-theme-toggle
|
||||||
class="group dark:hover:bg-steel/30 hover:bg-yellow-300/20 transition-all duration-300 relative rounded-full p-1.5 sm:p-2 touch-manipulation"
|
class="group dark:hover:bg-steel/30 relative touch-manipulation overflow-hidden rounded-full p-1.5 transition-all duration-300 hover:bg-yellow-300/20 focus:outline-hidden sm:p-2"
|
||||||
aria-label="Toggle dark mode"
|
aria-label="Toggle dark mode"
|
||||||
>
|
>
|
||||||
<div class="relative flex h-5 w-5 items-center justify-center">
|
<div class="relative z-10 flex h-5 w-5 items-center justify-center">
|
||||||
<!-- Sun icon -->
|
<!-- Sun icon -->
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
class="icon-light absolute h-5 w-5 text-neutral-600 dark:text-neutral-400 scale-100 dark:scale-0 rotate-0 dark:-rotate-90 transition-all duration-500"
|
class="icon-light absolute h-5 w-5 scale-100 rotate-0 text-neutral-600 transition-all duration-500 dark:scale-0 dark:-rotate-90 dark:text-neutral-400"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
<!-- Moon icon -->
|
<!-- Moon icon -->
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
class="icon-dark absolute h-5 w-5 text-neutral-600 dark:text-neutral-400 scale-0 dark:scale-100 rotate-90 dark:rotate-0 transition-all duration-500"
|
class="icon-dark absolute h-5 w-5 scale-0 rotate-90 text-neutral-600 transition-all duration-500 dark:scale-100 dark:rotate-0 dark:text-neutral-400"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
@@ -43,23 +43,25 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<script is:inline>
|
<script is:inline>
|
||||||
const applyTheme = () => {
|
// Use a function to persist theme when using SPA transitions
|
||||||
const isDark =
|
// https://docs.astro.build/en/guides/view-transitions/#script-re-execution
|
||||||
localStorage.theme === 'dark' ||
|
function applyTheme() {
|
||||||
(!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches);
|
localStorage.theme === 'dark'
|
||||||
document.documentElement.classList.toggle('dark', isDark);
|
? document.documentElement.classList.add('dark')
|
||||||
};
|
: document.documentElement.classList.remove('dark');
|
||||||
|
}
|
||||||
applyTheme();
|
|
||||||
|
|
||||||
document.addEventListener('astro:after-swap', applyTheme);
|
document.addEventListener('astro:after-swap', applyTheme);
|
||||||
|
|
||||||
|
applyTheme();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
// Use a function to handle theme toggle to ensure it can be called from anywhere
|
||||||
function setupThemeToggle() {
|
function setupThemeToggle() {
|
||||||
const themeToggles = document.querySelectorAll('[data-theme-toggle]');
|
const themeToggles = document.querySelectorAll('[data-theme-toggle]');
|
||||||
|
|
||||||
// Create theme switch overlay element
|
// Create theme switch overlay element if it doesn't exist
|
||||||
if (!document.querySelector('.theme-switch-overlay')) {
|
if (!document.querySelector('.theme-switch-overlay')) {
|
||||||
const overlay = document.createElement('div');
|
const overlay = document.createElement('div');
|
||||||
overlay.className = 'theme-switch-overlay fixed inset-0 pointer-events-none z-50';
|
overlay.className = 'theme-switch-overlay fixed inset-0 pointer-events-none z-50';
|
||||||
@@ -68,7 +70,9 @@
|
|||||||
document.body.appendChild(overlay);
|
document.body.appendChild(overlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Toggle theme when any theme toggle button is clicked
|
||||||
themeToggles.forEach((toggle) => {
|
themeToggles.forEach((toggle) => {
|
||||||
|
// Add event listeners for both click and touch events
|
||||||
['click', 'touchend'].forEach((eventType) => {
|
['click', 'touchend'].forEach((eventType) => {
|
||||||
toggle.addEventListener(
|
toggle.addEventListener(
|
||||||
eventType,
|
eventType,
|
||||||
@@ -88,10 +92,14 @@
|
|||||||
y = e.clientY - rect.top;
|
y = e.clientY - rect.top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the position variables for the radial gradient
|
||||||
document.documentElement.style.setProperty('--x', `${x}px`);
|
document.documentElement.style.setProperty('--x', `${x}px`);
|
||||||
document.documentElement.style.setProperty('--y', `${y}px`);
|
document.documentElement.style.setProperty('--y', `${y}px`);
|
||||||
|
|
||||||
|
// Get the overlay element
|
||||||
const overlay = document.querySelector('.theme-switch-overlay');
|
const overlay = document.querySelector('.theme-switch-overlay');
|
||||||
|
|
||||||
|
// Determine the new theme
|
||||||
const isDark = document.documentElement.classList.contains('dark');
|
const isDark = document.documentElement.classList.contains('dark');
|
||||||
const newTheme = isDark ? 'light' : 'dark';
|
const newTheme = isDark ? 'light' : 'dark';
|
||||||
|
|
||||||
@@ -102,6 +110,7 @@
|
|||||||
overlay.style.opacity = '1';
|
overlay.style.opacity = '1';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add transition class
|
||||||
document.documentElement.classList.add('theme-switching');
|
document.documentElement.classList.add('theme-switching');
|
||||||
|
|
||||||
// Force a reflow to ensure all elements update
|
// Force a reflow to ensure all elements update
|
||||||
@@ -115,7 +124,10 @@
|
|||||||
document.documentElement.classList.add('dark');
|
document.documentElement.classList.add('dark');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Store the preference
|
||||||
localStorage.setItem('theme', newTheme);
|
localStorage.setItem('theme', newTheme);
|
||||||
|
|
||||||
|
// Dispatch a custom event for other components to react to
|
||||||
document.dispatchEvent(
|
document.dispatchEvent(
|
||||||
new CustomEvent('themeChanged', {
|
new CustomEvent('themeChanged', {
|
||||||
detail: { isDark: newTheme === 'dark' },
|
detail: { isDark: newTheme === 'dark' },
|
||||||
@@ -125,10 +137,13 @@
|
|||||||
// Force another reflow to ensure all elements update
|
// Force another reflow to ensure all elements update
|
||||||
document.body.offsetHeight;
|
document.body.offsetHeight;
|
||||||
|
|
||||||
|
// Hide overlay after theme has changed
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (overlay) {
|
if (overlay) {
|
||||||
overlay.style.opacity = '0';
|
overlay.style.opacity = '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove transition class after animation completes
|
||||||
document.documentElement.classList.remove('theme-switching');
|
document.documentElement.classList.remove('theme-switching');
|
||||||
}, 300);
|
}, 300);
|
||||||
}, 50);
|
}, 50);
|
||||||
@@ -136,6 +151,25 @@
|
|||||||
{ passive: false }
|
{ passive: false }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Add touch feedback
|
||||||
|
toggle.addEventListener(
|
||||||
|
'touchstart',
|
||||||
|
() => {
|
||||||
|
toggle.classList.add('active-touch');
|
||||||
|
},
|
||||||
|
{ passive: true }
|
||||||
|
);
|
||||||
|
|
||||||
|
toggle.addEventListener(
|
||||||
|
'touchend',
|
||||||
|
() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
toggle.classList.remove('active-touch');
|
||||||
|
}, 150);
|
||||||
|
},
|
||||||
|
{ passive: true }
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,32 +201,61 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
/* Smooth transition for the entire page when theme changes */
|
||||||
|
:global(body) {
|
||||||
|
transition:
|
||||||
|
background-color 0.5s ease,
|
||||||
|
color 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Theme transition overlay */
|
||||||
|
:global(.theme-switch-overlay) {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 9999;
|
||||||
|
pointer-events: none;
|
||||||
|
transition: opacity 0.3s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ensure theme transitions apply to all elements */
|
||||||
|
:global(.theme-switching *) {
|
||||||
|
transition-duration: 0.5s !important;
|
||||||
|
transition-property: background-color, border-color, color, fill, stroke !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Subtle hover animation */
|
/* Subtle hover animation */
|
||||||
#theme-toggle {
|
#theme-toggle {
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent; /* Remove default mobile tap highlight */
|
||||||
min-height: 32px;
|
min-height: 32px; /* Ensure minimum touch target size */
|
||||||
min-width: 32px;
|
min-width: 32px; /* Ensure minimum touch target size */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Only apply hover effects on non-touch devices */
|
||||||
@media (hover: hover) {
|
@media (hover: hover) {
|
||||||
#theme-toggle:hover {
|
#theme-toggle:hover {
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(:root:not(.dark)) #theme-toggle:hover .icon-light {
|
#theme-toggle:hover .icon-light:not(.dark .icon-light) {
|
||||||
filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.6));
|
filter: drop-shadow-sm(0 0 2px rgba(251, 191, 36, 0.6));
|
||||||
transform: scale(1.1) rotate(15deg);
|
transform: scale(1.1) rotate(15deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(:root.dark) #theme-toggle:hover .icon-dark {
|
#theme-toggle:hover .icon-dark:not(:not(.dark) .icon-dark) {
|
||||||
filter: drop-shadow(0 0 2px rgba(129, 140, 248, 0.6));
|
filter: drop-shadow-sm(0 0 2px rgba(129, 140, 248, 0.6));
|
||||||
transform: scale(1.1) rotate(-15deg);
|
transform: scale(1.1) rotate(-15deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Touch feedback */
|
||||||
|
#theme-toggle.active-touch {
|
||||||
|
transform: scale(0.95);
|
||||||
|
transition: transform 0.15s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
/* Optimize animations for mobile */
|
/* Optimize animations for mobile */
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
.icon-light,
|
.icon-light,
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
import { Icon } from 'astro-icon/components';
|
import { Icon } from 'astro-icon/components';
|
||||||
|
|
||||||
import Logo from '@components/ui/logos/Logo.astro';
|
import Logo from '@components/ui/logos/Logo.astro';
|
||||||
import { getDirectusImageURL } from '@lib/directusFunctions';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
topic: string;
|
topic: string;
|
||||||
@@ -14,8 +12,7 @@ interface Props {
|
|||||||
logoIcon?: string;
|
logoIcon?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { topic, area, date, url, logoUrlLight, logoIcon } = Astro.props;
|
const { topic, area, date, url, logoUrlLight, logoUrlDark, logoIcon } = Astro.props;
|
||||||
const logoUrlDark = Astro.props.logoUrlDark || logoUrlLight;
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="smooth-reveal group flex flex-col">
|
<div class="smooth-reveal group flex flex-col">
|
||||||
@@ -28,8 +25,8 @@ const logoUrlDark = Astro.props.logoUrlDark || logoUrlLight;
|
|||||||
{logoUrlLight ? (
|
{logoUrlLight ? (
|
||||||
<div class="card-hover-icon-scale mr-5">
|
<div class="card-hover-icon-scale mr-5">
|
||||||
<Logo
|
<Logo
|
||||||
srcLight={getDirectusImageURL(logoUrlLight)}
|
srcLight={logoUrlLight}
|
||||||
srcDark={getDirectusImageURL(logoUrlDark!)}
|
srcDark={logoUrlDark}
|
||||||
alt={`Logo of ${topic}`}
|
alt={`Logo of ${topic}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -9,11 +9,13 @@ interface Props {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { title, description, url, icon } = Astro.props;
|
const { title, description, url, icon } = Astro.props;
|
||||||
|
|
||||||
|
const sizeClasses = 'h-30 w-100 md:w-[300px]';
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="smooth-reveal-2 group flex flex-col">
|
<div class="smooth-reveal-2 group flex flex-col">
|
||||||
<a
|
<a
|
||||||
class="card-base flex items-center h-30 w-100 md:w-75"
|
class={`card-base flex items-center ${sizeClasses}`}
|
||||||
href={url}
|
href={url}
|
||||||
data-astro-prefetch
|
data-astro-prefetch
|
||||||
>
|
>
|
||||||
@@ -27,9 +29,9 @@ const { title, description, url, icon } = Astro.props;
|
|||||||
<span class="card-text-title card-hover-text-title block text-lg">
|
<span class="card-text-title card-hover-text-title block text-lg">
|
||||||
{title}
|
{title}
|
||||||
</span>
|
</span>
|
||||||
<p class="card-text-description block mt-1">
|
<span class="card-text-description block mt-1">
|
||||||
{description}
|
{description}
|
||||||
</p>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -39,9 +39,9 @@ const visitClass = visitSource ? 'card-hover-text-gitea' : 'card-hover-text-titl
|
|||||||
<span class="card-text-title block text-lg">
|
<span class="card-text-title block text-lg">
|
||||||
{title}
|
{title}
|
||||||
</span>
|
</span>
|
||||||
<p class="card-text-description block mt-1">
|
<span class="card-text-description block mt-1">
|
||||||
{description}
|
{description}
|
||||||
</p>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{highlights && (
|
{highlights && (
|
||||||
@@ -55,7 +55,7 @@ const visitClass = visitSource ? 'card-hover-text-gitea' : 'card-hover-text-titl
|
|||||||
)}
|
)}
|
||||||
<div class="ml-6 flex">
|
<div class="ml-6 flex">
|
||||||
<div class="relative inline-block">
|
<div class="relative inline-block">
|
||||||
<div class={`card-text-title ${visitClass} flex relative items-center font-semibold text-md min-h-11 mx-auto sm:mx-0 sm:mt-4`}>
|
<div class={`card-text-title ${visitClass} flex relative mx-auto min-h-11 items-center font-semibold text-md sm:mx-0 sm:mt-4`}>
|
||||||
{visitSource && <Icon name="pajamas:gitea" />}
|
{visitSource && <Icon name="pajamas:gitea" />}
|
||||||
<span class="relative inline-block overflow-hidden ml-2">
|
<span class="relative inline-block overflow-hidden ml-2">
|
||||||
{visitText}
|
{visitText}
|
||||||
@@ -7,10 +7,12 @@ interface Props {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { dayName, label, icon, temp } = Astro.props;
|
const { dayName, label, icon, temp } = Astro.props;
|
||||||
|
|
||||||
|
const sizeClasses = 'w-32 md:w-40';
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="smooth-reveal-2 group flex flex-col">
|
<div class="smooth-reveal-2 group flex flex-col">
|
||||||
<div class="card-base w-32 md:w-40">
|
<div class={`card-base ${sizeClasses}`}>
|
||||||
<div class="p-5 text-center">
|
<div class="p-5 text-center">
|
||||||
<span class="card-text-description block font-bold text-xs uppercase tracking-widest">
|
<span class="card-text-description block font-bold text-xs uppercase tracking-widest">
|
||||||
{dayName}
|
{dayName}
|
||||||
@@ -3,8 +3,8 @@ import { readItems } from '@directus/sdk';
|
|||||||
|
|
||||||
import type { Application } from '@lib/directusTypes';
|
import type { Application } from '@lib/directusTypes';
|
||||||
|
|
||||||
import HighlightsCard from '@components/cards/HighlightsCard.astro';
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
|
import HighlightsCard from '@components/ui/cards/HighlightsCard.astro';
|
||||||
|
|
||||||
const applications = ((await directus.request(
|
const applications = ((await directus.request(
|
||||||
readItems('site_applications' as any, {
|
readItems('site_applications' as any, {
|
||||||
@@ -3,8 +3,9 @@ import { readItems } from '@directus/sdk';
|
|||||||
|
|
||||||
import type { Education, Certificate} from '@lib/directusTypes';
|
import type { Education, Certificate} from '@lib/directusTypes';
|
||||||
|
|
||||||
import EducationCard from '@components/cards/EducationCard.astro';
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
|
import { getDirectusImageURL } from '@lib/directusFunctions';
|
||||||
|
import EducationCard from '@components/ui/cards/EducationCard.astro';
|
||||||
|
|
||||||
const educations = ((await directus.request(
|
const educations = ((await directus.request(
|
||||||
readItems('site_education' as any, {
|
readItems('site_education' as any, {
|
||||||
@@ -26,7 +27,7 @@ const certificates = ((await directus.request(
|
|||||||
Education
|
Education
|
||||||
</h3>
|
</h3>
|
||||||
<div class="mx-8">
|
<div class="mx-8">
|
||||||
<h4 class="smooth-reveal card-text-header-minor pt-5">
|
<h4 class="smooth-reveal card-text-header-minor pt-5 ">
|
||||||
College
|
College
|
||||||
</h4>
|
</h4>
|
||||||
<div class="grid md:grid-cols-2 sm:grid-cols-1 gap-4 py-3">
|
<div class="grid md:grid-cols-2 sm:grid-cols-1 gap-4 py-3">
|
||||||
@@ -36,8 +37,8 @@ const certificates = ((await directus.request(
|
|||||||
area={education.area}
|
area={education.area}
|
||||||
date={education.graduationDate}
|
date={education.graduationDate}
|
||||||
url={education.url}
|
url={education.url}
|
||||||
logoUrlLight={education.logo}
|
logoUrlLight={getDirectusImageURL(education.logo)}
|
||||||
logoUrlDark={education.logoDark}
|
logoUrlDark={getDirectusImageURL(education.logoDark)}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
152
src/components/ui/sections/Experience.astro
Normal file
152
src/components/ui/sections/Experience.astro
Normal file
@@ -0,0 +1,152 @@
|
|||||||
|
---
|
||||||
|
import { Icon } from 'astro-icon/components';
|
||||||
|
import { readItems } from '@directus/sdk';
|
||||||
|
|
||||||
|
import type { Experience } from '@lib/directusTypes';
|
||||||
|
|
||||||
|
import directus from '@lib/directus';
|
||||||
|
|
||||||
|
const experiences = await directus.request(
|
||||||
|
readItems('site_experience', {
|
||||||
|
fields: ['*'],
|
||||||
|
sort: ['-endDate'],
|
||||||
|
})
|
||||||
|
);
|
||||||
|
---
|
||||||
|
|
||||||
|
<section
|
||||||
|
class:list={['flex flex-col gap-8', Astro.props.className]}
|
||||||
|
|
||||||
|
>
|
||||||
|
<h3 class="relative flex w-full items-center gap-3 pb-10 text-5xl text-neutral-800 dark:text-neutral-200">Experience</h3>
|
||||||
|
<ul class="ml-8 w-full flex flex-col">
|
||||||
|
{
|
||||||
|
experiences.map(
|
||||||
|
(experience: Experience) => {
|
||||||
|
const startYear = new Date(experience.startDate).getFullYear();
|
||||||
|
const endYear = experience.endDate != null ? new Date(experience.endDate).getFullYear() : 'Present';
|
||||||
|
|
||||||
|
return (
|
||||||
|
<li class="relative">
|
||||||
|
<div class="group smooth-reveal relative grid pb-1 transition-all sm:grid-cols-18 sm:gap-8 md:gap-6 lg:hover:!opacity-100">
|
||||||
|
<header class="relative mt-1 text-lg font-semibold sm:col-span-3 text-neutral-800 dark:text-neutral-200">
|
||||||
|
<time datetime={experience.startDate} data-title={experience.startDate}>
|
||||||
|
{startYear}
|
||||||
|
</time>{' '}
|
||||||
|
-{' '}
|
||||||
|
<time datetime={experience.endDate} data-title={experience.endDate}>
|
||||||
|
{endYear}
|
||||||
|
</time>
|
||||||
|
</header>
|
||||||
|
<div class="relative flex flex-col pb-6 before:absolute before:mt-8 before:-ml-6 before:h-full before:w-px before:bg-stone-400 sm:col-span-12">
|
||||||
|
<div class="absolute mt-4 h-2 w-2 -translate-x-[1.71rem] rounded-full bg-stone-400" />
|
||||||
|
<h3>
|
||||||
|
<div
|
||||||
|
class="inline-flex items-center text-2xl leading-tight font-semibold"
|
||||||
|
aria-label="{position} - {company}"
|
||||||
|
>
|
||||||
|
<span class="text-neutral-800 dark:text-neutral-200">
|
||||||
|
{experience.position} <span>@</span>
|
||||||
|
{experience.url ? (
|
||||||
|
<a
|
||||||
|
class="hover:text-steel dark:hover:text-bermuda"
|
||||||
|
href={experience.url}
|
||||||
|
title={`Ver ${experience.name}`}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
{experience.name}
|
||||||
|
</a>
|
||||||
|
) : (
|
||||||
|
<span>{experience.name}</span>
|
||||||
|
)}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</h3>
|
||||||
|
{(experience.location || experience.location_type) && (
|
||||||
|
<div class="text-sm text-neutral-600 dark:text-neutral-400">
|
||||||
|
{experience.location} {experience.location && experience.location_type && '-'} {experience.location_type}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<div class="text-md mt-4 flex flex-col gap-4" x-data="{ expanded: false }">
|
||||||
|
{experience.summary && (
|
||||||
|
<div class="flex flex-col gap-1">
|
||||||
|
<h4 class="font-semibold text-neutral-800 dark:text-neutral-200">Summary:</h4>
|
||||||
|
<ul class="flex list-disc flex-col gap-2 text-neutral-700 dark:text-neutral-400 [&>li]:ml-4">
|
||||||
|
{Array.isArray(experience.summary) ? (
|
||||||
|
experience.summary.map((item) => ({ item }))
|
||||||
|
) : (
|
||||||
|
<li class="marker:text-steel dark:marker:text-bermuda">{experience.summary}</li>
|
||||||
|
)}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{(experience.responsibilities || experience.achievements) && (
|
||||||
|
<div class="relative flex flex-col gap-4 max-sm:!h-auto md:after:absolute md:after:bottom-0 md:after:h-12 md:after:w-full md:after:bg-gradient-to-t md:after:from-neutral-200 dark:md:after:from-stone-700 md:after:content-[''] " :class="expanded ? 'after:hidden' : ''" x-show="expanded" x-collapse.min.50px>
|
||||||
|
{experience.responsibilities && (
|
||||||
|
<div class="flex flex-col gap-1">
|
||||||
|
<h4 class="font-semibold text-neutral-800 dark:text-neutral-200">Responsibilities:</h4>
|
||||||
|
<ul class="text-neutral-700 dark:text-neutral-400 [&>li]:ml-4 flex list-disc flex-col gap-2">
|
||||||
|
{experience.responsibilities.map(responsibility => (
|
||||||
|
<li class="marker:text-steel dark:marker:text-bermuda">{responsibility}</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{experience.achievements && (
|
||||||
|
<div class="flex flex-col gap-1">
|
||||||
|
<h4 class="font-semibold text-neutral-800 dark:text-neutral-200">Achievements:</h4>
|
||||||
|
<ul class="text-neutral-700 dark:text-neutral-400 [&>li]:ml-4 flex list-disc flex-col gap-2">
|
||||||
|
{experience.achievements.map(achievement => (
|
||||||
|
<li class="marker:text-steel dark:marker:text-bermuda">{achievement}</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button @click="expanded = ! expanded" class="group/more w-fit cursor-pointer items-center justify-center gap-1.5 text-xs underline text-neutral-700 dark:text-neutral-300 hover:text-neutral-900 dark:hover:text-neutral-400 transition-all flex">
|
||||||
|
<span x-text="expanded ? 'Show less' : 'Show more'">Show more</span>
|
||||||
|
<svg
|
||||||
|
class="h-4 w-4 duration-200 ease-out group-hover/more:translate-y-0.5"
|
||||||
|
:class="{ 'rotate-180': expanded }"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
>
|
||||||
|
<polyline points="6 9 12 15 18 9" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<ul class="flex print:hidden flex-wrap gap-2" aria-label="Technologies used">
|
||||||
|
{experience.skills && experience.skills.map(skill => {
|
||||||
|
const iconName = skill.toLowerCase();
|
||||||
|
return (
|
||||||
|
<li class="bg-steel/20 border-steel/20 text-neutral-800 dark:bg-bermuda/20 dark:border-bermuda/20 dark:text-neutral-200 flex gap-1 items-center border-solid border rounded-md px-2 py-0.5 text-xs">
|
||||||
|
<Icon name={`mdi:${iconName}`} /> <span>{skill}</span>
|
||||||
|
</li>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</ul>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Alpine Plugins -->
|
||||||
|
<script defer src="https://cdn.jsdelivr.net/npm/@alpinejs/collapse@3.x.x/dist/cdn.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Alpine Core -->
|
||||||
|
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
---
|
---
|
||||||
import { readSingleton } from '@directus/sdk';
|
import { readSingleton } from '@directus/sdk';
|
||||||
|
|
||||||
import FeaturesCard from '@components/cards/FeaturesCard.astro';
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
|
import FeaturesCard from '@components/ui/cards/FeaturesCard.astro';
|
||||||
|
|
||||||
const global = await directus.request(readSingleton('site_global'));
|
const global = await directus.request(readSingleton('site_global'));
|
||||||
---
|
---
|
||||||
|
|
||||||
<section class="mx-auto mb-20 max-w-340 px-4 py-10 sm:px-6 lg:px-8 lg:py-14 2xl:max-w-full">
|
<section class="mx-auto mb-20 max-w-340 px-4 py-10 sm:px-6 lg:px-8 lg:py-14 2xl:max-w-full">
|
||||||
<div class="flex flex-col items-center justify-center gap-y-2 sm:flex-row sm:gap-x-12 sm:gap-y-0 lg:gap-x-24">
|
<div
|
||||||
|
class="flex flex-col items-center justify-center gap-y-2 sm:flex-row sm:gap-x-12 sm:gap-y-0 lg:gap-x-24"
|
||||||
|
>
|
||||||
<div class="max-w-5xl sm:px-6 lg:px-8">
|
<div class="max-w-5xl sm:px-6 lg:px-8">
|
||||||
<div class="flex flex-wrap gap-6 sm:grid-cols-2 sm:gap-6 lg:grid-cols-3 justify-center">
|
<div class="flex flex-wrap gap-6 sm:grid-cols-2 sm:gap-6 lg:grid-cols-3 justify-center">
|
||||||
<FeaturesCard
|
<FeaturesCard
|
||||||
35
src/components/ui/sections/HeaderSection.astro
Normal file
35
src/components/ui/sections/HeaderSection.astro
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
import PrimaryCTA from '@components/ui/buttons/PrimaryCTA.astro';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title: string;
|
||||||
|
subTitle: string;
|
||||||
|
btnExists?: boolean;
|
||||||
|
btnTitle?: string;
|
||||||
|
btnURL?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { title, subTitle, btnExists, btnTitle, btnURL } = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<section class="mx-auto mt-10 px-4 sm:px-6 lg:px-8 lg:pt-10 2xl:max-w-full">
|
||||||
|
<div class="flex-wrap md:flex md:items-center md:justify-between">
|
||||||
|
<div class="w-full md:w-auto">
|
||||||
|
<h1
|
||||||
|
class="smooth-reveal block text-4xl font-bold tracking-tight text-balance text-neutral-800 md:text-5xl lg:text-6xl dark:text-neutral-200"
|
||||||
|
>
|
||||||
|
{title}
|
||||||
|
</h1>
|
||||||
|
<p class="smooth-reveal mt-4 text-lg text-pretty text-neutral-600 dark:text-neutral-400">
|
||||||
|
{subTitle}
|
||||||
|
</p>
|
||||||
|
{
|
||||||
|
btnExists ? (
|
||||||
|
<div class="smooth-reveal mt-4 md:mt-8">
|
||||||
|
<PrimaryCTA title={btnTitle} url={btnURL} />
|
||||||
|
</div>
|
||||||
|
) : null
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
66
src/components/ui/sections/HeroSection.astro
Normal file
66
src/components/ui/sections/HeroSection.astro
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
---
|
||||||
|
import PrimaryCTA from '@components/ui/buttons/PrimaryCTA.astro';
|
||||||
|
import SecondaryCTA from '@components/ui/buttons/SecondaryCTA.astro';
|
||||||
|
import Image from '@components/ui/images/Image.astro';
|
||||||
|
|
||||||
|
const { title, subTitle, primaryBtn, primaryBtnURL, secondaryBtn, secondaryBtnURL, src, alt } =
|
||||||
|
Astro.props;
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title: string;
|
||||||
|
subTitle?: string;
|
||||||
|
primaryBtn?: string;
|
||||||
|
primaryBtnURL?: string;
|
||||||
|
secondaryBtn?: string;
|
||||||
|
secondaryBtnURL?: string;
|
||||||
|
src?: any;
|
||||||
|
alt?: string;
|
||||||
|
rounded?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
const roundedClasses = Astro.props.rounded ? "rounded-xl" : null;
|
||||||
|
---
|
||||||
|
|
||||||
|
<section
|
||||||
|
class="mx-auto grid max-w-340 gap-4 px-4 py-14 sm:px-6 md:grid-cols-2 md:items-center md:gap-8 lg:px-8 2xl:max-w-full"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<h1
|
||||||
|
class="smooth-reveal block text-3xl font-bold tracking-tight text-balance text-neutral-800 sm:text-4xl lg:text-7xl lg:leading-tight dark:text-neutral-200"
|
||||||
|
>
|
||||||
|
<Fragment set:html={title} />
|
||||||
|
</h1>
|
||||||
|
{
|
||||||
|
subTitle && (
|
||||||
|
<p class="smooth-reveal mt-6 text-lg leading-relaxed text-pretty text-neutral-700 lg:w-4/5 dark:text-neutral-300">
|
||||||
|
{subTitle}
|
||||||
|
</p>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
<div class="smooth-reveal mt-7 grid w-full gap-3 sm:inline-flex">
|
||||||
|
{primaryBtn && <PrimaryCTA title={primaryBtn} url={primaryBtnURL} />}
|
||||||
|
{secondaryBtn && <SecondaryCTA title={secondaryBtn} url={secondaryBtnURL} />}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="smooth-reveal-fade hidden w-full md:block">
|
||||||
|
<div class="top-12 flex w-full justify-center overflow-hidden md:ml-4">
|
||||||
|
{
|
||||||
|
src && alt && (
|
||||||
|
<Image
|
||||||
|
src={src}
|
||||||
|
alt={alt}
|
||||||
|
class={`h-full w-[420px] scale-100 object-cover object-center ${roundedClasses}`}
|
||||||
|
draggable="false"
|
||||||
|
loading="eager"
|
||||||
|
format="webp"
|
||||||
|
quality="low"
|
||||||
|
widths={[840]}
|
||||||
|
disableBlur={true}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
@@ -1,20 +1,22 @@
|
|||||||
---
|
---
|
||||||
import GiteaButton from '@components/buttons/GiteaButton.astro';
|
import GiteaBtn from '@components/ui/buttons/GiteaBtn.astro';
|
||||||
|
|
||||||
|
const { title, subTitle, url } = Astro.props;
|
||||||
|
const btnTitle = 'Continue to Gitea';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
subTitle?: string;
|
subTitle?: string;
|
||||||
url?: string;
|
url?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { title, subTitle, url } = Astro.props;
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<section class="lg:px- relative mx-auto mb-20 max-w-340 px-4 pt-30 pb-30 sm:px-6">
|
<section class="lg:px- relative mx-auto mb-20 max-w-340 px-4 pt-30 pb-30 sm:px-6">
|
||||||
<!-- Animated shapes -->
|
<div
|
||||||
<div class="smooth-reveal absolute top-[55%] left-0 scale-90 md:top-[20%] xl:top-[25%] xl:left-[10%]">
|
class="smooth-reveal absolute top-[55%] left-0 scale-90 md:top-[20%] xl:top-[25%] xl:left-[10%]"
|
||||||
|
>
|
||||||
<svg
|
<svg
|
||||||
class="gitea-animate-hover gitea-animate-hover-1"
|
class="animate-hover animate-hover-1"
|
||||||
width="64"
|
width="64"
|
||||||
height="64"
|
height="64"
|
||||||
fill="none"
|
fill="none"
|
||||||
@@ -44,7 +46,7 @@ const { title, subTitle, url } = Astro.props;
|
|||||||
</div>
|
</div>
|
||||||
<div class="smooth-reveal absolute top-0 left-[85%] scale-75">
|
<div class="smooth-reveal absolute top-0 left-[85%] scale-75">
|
||||||
<svg
|
<svg
|
||||||
class="gitea-animate-hover gitea-animate-hover-2"
|
class="animate-hover animate-hover-2"
|
||||||
width="64"
|
width="64"
|
||||||
height="64"
|
height="64"
|
||||||
fill="none"
|
fill="none"
|
||||||
@@ -78,9 +80,11 @@ const { title, subTitle, url } = Astro.props;
|
|||||||
d="M10.5 19H9M15 19h-1.5"></path>
|
d="M10.5 19H9M15 19h-1.5"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<div class="smooth-reveal absolute bottom-[5%] left-[60%] scale-[.6] xl:bottom-[15%] xl:left-[35%]">
|
<div
|
||||||
|
class="smooth-reveal absolute bottom-[5%] left-[60%] scale-[.6] xl:bottom-[15%] xl:left-[35%]"
|
||||||
|
>
|
||||||
<svg
|
<svg
|
||||||
class="gitea-animate-hover gitea-animate-hover-3"
|
class="animate-hover animate-hover-3"
|
||||||
width="64"
|
width="64"
|
||||||
height="64"
|
height="64"
|
||||||
fill="none"
|
fill="none"
|
||||||
@@ -102,54 +106,59 @@ const { title, subTitle, url } = Astro.props;
|
|||||||
></path>
|
></path>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<!-- Heading -->
|
<!-- Hero Section Heading -->
|
||||||
<div class="smooth-reveal-2 mx-auto mt-5 max-w-xl text-center">
|
<div class="smooth-reveal-2 mx-auto mt-5 max-w-xl text-center">
|
||||||
<h1 class="card-text-header block">
|
<h2
|
||||||
|
class="block text-4xl leading-tight font-bold tracking-tight text-balance text-neutral-800 md:text-5xl lg:text-5xl dark:text-neutral-200"
|
||||||
|
>
|
||||||
{title}
|
{title}
|
||||||
</h1>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<!-- Sub-heading -->
|
<!-- Hero Section Sub-heading -->
|
||||||
<div class="smooth-reveal-2 mx-auto mt-5 max-w-3xl text-center">
|
<div class="smooth-reveal-2 mx-auto mt-5 max-w-3xl text-center">
|
||||||
{subTitle && (
|
{
|
||||||
<p class="card-text-header-description">
|
subTitle && (
|
||||||
{subTitle}
|
<p class="text-lg text-pretty text-neutral-600 dark:text-neutral-400">{subTitle}</p>
|
||||||
</p>
|
)
|
||||||
)}
|
}
|
||||||
</div>
|
</div>
|
||||||
<!-- Gitea Button -->
|
<!-- Github Button -->
|
||||||
{url && (
|
{
|
||||||
<div class="smooth-reveal-2 flex justify-center mt-8 gap-3">
|
url && (
|
||||||
<GiteaButton url={url}/>
|
<div class="smooth-reveal-2 mt-8 flex justify-center gap-3">
|
||||||
</div>
|
<GiteaBtn url={url} title={btnTitle} />
|
||||||
)}
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@keyframes gitea-animate-hover {
|
@keyframes animate-hover {
|
||||||
from {
|
from {
|
||||||
transform: translateY(15px);
|
transform: translateY(15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
to {
|
to {
|
||||||
transform: translateY(-15px);
|
transform: translateY(-15px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.gitea-animate-hover {
|
.animate-hover {
|
||||||
animation: gitea-animate-hover ease-in-out;
|
animation: animate-hover ease-in-out;
|
||||||
|
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
animation-direction: alternate;
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gitea-animate-hover-1 {
|
.animate-hover-1 {
|
||||||
animation-duration: 5s;
|
animation-duration: 5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gitea-animate-hover-2 {
|
.animate-hover-2 {
|
||||||
animation-duration: 5.5s;
|
animation-duration: 5.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gitea-animate-hover-3 {
|
.animate-hover-3 {
|
||||||
animation-duration: 6s;
|
animation-duration: 6s;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
32
src/components/ui/sections/LatestPosts.astro
Normal file
32
src/components/ui/sections/LatestPosts.astro
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
import { readItems } from '@directus/sdk';
|
||||||
|
|
||||||
|
import directus from '@lib/directus';
|
||||||
|
import type { Post } from '@lib/directusTypes';
|
||||||
|
import BlogCard from '@components/blog/BlogCard.astro';
|
||||||
|
|
||||||
|
const posts = await directus.request(
|
||||||
|
readItems('posts', {
|
||||||
|
filter: { published: { _eq: true } },
|
||||||
|
fields: ['*'],
|
||||||
|
sort: ['-published_date'],
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
|
const recentPosts = posts
|
||||||
|
.sort((a: Post, b: Post) => (new Date(b.published_date).getTime()) - (new Date(a.published_date).getTime()))
|
||||||
|
.slice(0, 3);
|
||||||
|
---
|
||||||
|
|
||||||
|
<section class="mx-auto mb-20 max-w-340 px-4 py-10 sm:px-6 lg:px-8 lg:py-14 2xl:max-w-full">
|
||||||
|
<div class="mx-auto mb-10 max-w-2xl text-center lg:mb-14">
|
||||||
|
<h1
|
||||||
|
class="smooth-reveal block text-4xl font-bold text-neutral-800 md:text-5xl md:leading-tight lg:text-5xl dark:text-neutral-200"
|
||||||
|
>
|
||||||
|
Latest Posts
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
|
{recentPosts.map((b) => <BlogCard post={b} />)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
@@ -3,8 +3,8 @@ import { readItems } from '@directus/sdk';
|
|||||||
|
|
||||||
import type { Project } from '@lib/directusTypes';
|
import type { Project } from '@lib/directusTypes';
|
||||||
|
|
||||||
import HighlightsCard from '@components/cards/HighlightsCard.astro';
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
|
import HighlightsCard from '@components/ui/cards/HighlightsCard.astro';
|
||||||
|
|
||||||
const projects = ((await directus.request(
|
const projects = ((await directus.request(
|
||||||
readItems('site_projects' as any, {
|
readItems('site_projects' as any, {
|
||||||
@@ -6,63 +6,86 @@ import type { Skill } from '@lib/directusTypes';
|
|||||||
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
|
|
||||||
const skills = ((await directus.request(
|
const skills = await directus.request(
|
||||||
readItems('site_skills' as any, {
|
readItems('site_skills', {
|
||||||
fields: ['*'],
|
fields: ['*'],
|
||||||
sort: ['-date_created'],
|
sort: ['-date_created'],
|
||||||
})
|
})
|
||||||
)) as unknown) as Skill[];
|
);
|
||||||
|
|
||||||
|
const baseClasses = 'mx-2 min-w-[220px] sm:mx-4 sm:min-w-[280px]';
|
||||||
|
const borderClasses =
|
||||||
|
'border border-neutral-100 hover:border-neutral-200 dark:border-stone-500/20 dark:hover:border-neutral-800';
|
||||||
|
const bgColorClasses = 'bg-neutral-100/80 dark:bg-neutral-800/60 dark:hover:bg-neutral-800/90';
|
||||||
|
const hoverClasses = 'hover:-translate-y-2 hover:scale-105 ';
|
||||||
|
const shadowClasses = 'shadow-xs hover:shadow-lg';
|
||||||
---
|
---
|
||||||
|
|
||||||
<section class:list={['flex flex-col gap-4', Astro.props.className]}>
|
<section class:list={['flex flex-col gap-4', Astro.props.className]}>
|
||||||
<h3 class="smooth-reveal card-text-header flex relative items-center w-full gap-3 pb-5">
|
<h3
|
||||||
|
class="relative flex w-full items-center gap-3 pb-4 text-5xl text-neutral-800 dark:text-neutral-200"
|
||||||
|
>
|
||||||
Skills
|
Skills
|
||||||
</h3>
|
</h3>
|
||||||
<div class="">
|
<div class="">
|
||||||
<div class="tech-stack-slider relative overflow-hidden py-4 sm:py-8">
|
<div class="tech-stack-slider relative overflow-hidden py-4 sm:py-8">
|
||||||
<!-- Main slider container -->
|
<!-- Main slider container -->
|
||||||
<div class="slider-track animate-slide flex">
|
<div class="slider-track animate-slide flex">
|
||||||
{[...skills, ...skills, ...skills].map((skill: Skill) => {
|
{
|
||||||
return (
|
[...skills, ...skills, ...skills].map((skill: Skill) => {
|
||||||
<div class="skill-card card-base transform hover:-translate-y-2 hover:scale-105 transition-all duration-300 mx-2 min-w-55 sm:mx-4 sm:min-w-70">
|
return (
|
||||||
<div class="p-4 sm:p-6">
|
|
||||||
<div class="flex items-center justify-between mb-4 sm:mb-6">
|
|
||||||
<div class="flex items-center gap-2 sm:gap-4">
|
|
||||||
<div class="flex items-center justify-center rounded-lg text-primary">
|
|
||||||
<Icon name={skill.icon} class="h-8 w-8 sm:h-12 sm:w-12" />
|
|
||||||
</div>
|
|
||||||
<h3 class="text-neutral-900 dark:text-neutral-100 text-base font-semibold sm:text-xl">
|
|
||||||
{skill.title}
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
<span class=" bg-neutral-200 dark:bg-neutral-800 text-neutral-700 dark:text-neutral-300 font-mono text-xs sm:text-sm rounded-full px-2 sm:px-2.5 py-0.5 sm:py-1">
|
|
||||||
{skill.level}%
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div class="relative bg-stone-500/20 dark:bg-stone-500/20 rounded-full h-1.5 sm:h-2 w-full overflow-hidden">
|
|
||||||
<div
|
<div
|
||||||
class="progress-bar-animate bg-linear-to-r from-steel via-bermuda to-steel absolute top-0 left-0 h-full rounded-full transition-all duration-1000"
|
class={`skill-card transform rounded-xl transition-all duration-300 ${baseClasses} ${borderClasses} ${bgColorClasses} ${hoverClasses} ${shadowClasses}`}
|
||||||
style={`width: ${skill.level}%`}
|
>
|
||||||
/>
|
<div class="p-4 sm:p-6">
|
||||||
</div>
|
<div class="mb-4 flex items-center justify-between sm:mb-6">
|
||||||
<div class="flex justify-between text-secondary font-mono text-[10px] mt-1 sm:mt-2 sm:text-xs">
|
<div class="flex items-center gap-2 sm:gap-4">
|
||||||
<span>Beginner</span>
|
<div class="flex transform items-center justify-center rounded-lg text-neutral-800 transition-transform group-hover:rotate-12 dark:text-neutral-200">
|
||||||
<span>Advanced</span>
|
<Icon name={skill.icon} class="h-8 w-8 sm:h-12 sm:w-12" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<h3 class="text-base font-semibold text-neutral-900 sm:text-xl dark:text-neutral-100">
|
||||||
</div>
|
{skill.title}
|
||||||
);
|
</h3>
|
||||||
})}
|
</div>
|
||||||
|
<span class="rounded-full bg-neutral-200 px-2 py-0.5 font-mono text-xs text-neutral-700 sm:px-2.5 sm:py-1 sm:text-sm dark:bg-neutral-800 dark:text-neutral-300">
|
||||||
|
{skill.level}%
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="relative h-1.5 w-full overflow-hidden rounded-full bg-stone-500/20 sm:h-2 dark:bg-stone-500/20">
|
||||||
|
<div
|
||||||
|
class="progress-bar-animate from-steel via-bermuda to-steel absolute top-0 left-0 h-full rounded-full bg-linear-to-r transition-all duration-1000"
|
||||||
|
style={`width: ${skill.level}%`}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-1 flex justify-between font-mono text-[10px] text-neutral-600 sm:mt-2 sm:text-xs dark:text-neutral-400">
|
||||||
|
<span>Beginner</span>
|
||||||
|
<span>Advanced</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Gradient overlays -->
|
<!-- Gradient overlays -->
|
||||||
<div class="bg-linear-to-r from-neutral-200 to-transparent dark:from-stone-700 absolute top-0 bottom-0 left-0 z-10 w-12 sm:w-24"/>
|
<div
|
||||||
<div class="bg-linear-to-l from-neutral-200 to-transparent dark:from-stone-700 absolute top-0 bottom-0 right-0 z-10 w-12 sm:w-24"/>
|
class="absolute top-0 bottom-0 left-0 z-10 w-12 bg-linear-to-r from-neutral-200 to-transparent sm:w-24 dark:from-stone-700"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="absolute top-0 right-0 bottom-0 z-10 w-12 bg-linear-to-l from-neutral-200 to-transparent sm:w-24 dark:from-stone-700"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('astro:page-load', () => {
|
document.addEventListener('astro:page-load', () => {
|
||||||
|
// Create infinite scrolling effect
|
||||||
function setupInfiniteScroll() {
|
function setupInfiniteScroll() {
|
||||||
const cards = document.querySelectorAll('.skill-card');
|
const cards = document.querySelectorAll('.skill-card');
|
||||||
if (!cards.length) return;
|
if (!cards.length) return;
|
||||||
@@ -70,6 +93,7 @@ const skills = ((await directus.request(
|
|||||||
|
|
||||||
setupInfiniteScroll();
|
setupInfiniteScroll();
|
||||||
|
|
||||||
|
// Add hover effects to cards - only on non-touch devices
|
||||||
const isTouchDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
const isTouchDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
||||||
const cards = document.querySelectorAll('.skill-card');
|
const cards = document.querySelectorAll('.skill-card');
|
||||||
|
|
||||||
@@ -120,7 +144,7 @@ const skills = ((await directus.request(
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
/* Specific css to enable sliding effect */
|
/* Tech Stack Slider */
|
||||||
.slider-track {
|
.slider-track {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
animation: scroll 40s linear infinite;
|
animation: scroll 40s linear infinite;
|
||||||
@@ -131,7 +155,7 @@ const skills = ((await directus.request(
|
|||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
transform: translateX(calc(-220px * 6 - 16px * 6));
|
transform: translateX(calc(-220px * 6 - 16px * 6)); /* Card width + margin for mobile */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,7 +169,7 @@ const skills = ((await directus.request(
|
|||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
transform: translateX(calc(-280px * 6 - 32px * 6));
|
transform: translateX(calc(-280px * 6 - 32px * 6)); /* Card width + margin for desktop */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,15 +1,14 @@
|
|||||||
---
|
---
|
||||||
import WeatherCard from '@components/cards/WeatherCard.astro';
|
import WeatherCard from '@components/ui/cards/WeatherCard.astro';
|
||||||
import { getFiveDayForecast } from '@support/weather';
|
import { getFiveDayForecast } from '@support/weather';
|
||||||
|
|
||||||
const { latitude = "44.95", longitude = "-93.09", cityName = "St. Paul, Minnesota", timezone = "America/Chicago" } = Astro.props;
|
const { latitude = "44.95", longitude = "-93.09", cityName = "St. Paul, Minnesota", timezone = "America/Chicago" } = Astro.props;
|
||||||
|
|
||||||
const { forecastDays, error } = await getFiveDayForecast(latitude, longitude, timezone);
|
const { forecastDays, error } = await getFiveDayForecast(latitude, longitude, timezone);
|
||||||
---
|
---
|
||||||
|
|
||||||
<section class="mx-auto mb-20 max-w-340 px-4 py-10 sm:px-6 lg:px-8 lg:py-14 2xl:max-w-full">
|
<section class="mx-auto mb-20 max-w-340 px-4 py-10 sm:px-6 lg:px-8 lg:py-14 2xl:max-w-full">
|
||||||
<div class="mx-auto mb-10 max-w-2xl text-center lg:mb-14">
|
<div class="mx-auto mb-10 max-w-2xl text-center lg:mb-14">
|
||||||
<h1 class="smooth-reveal card-text-header block">
|
<h1 class="card-text-header smooth-reveal block font-bold md:leading-tight">
|
||||||
Weather in my Area
|
Weather in my Area
|
||||||
</h1>
|
</h1>
|
||||||
<div class="smooth-reveal mx-auto mt-5 max-w-3xl text-center">
|
<div class="smooth-reveal mx-auto mt-5 max-w-3xl text-center">
|
||||||
@@ -18,6 +17,7 @@ const { forecastDays, error } = await getFiveDayForecast(latitude, longitude, ti
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{error ? (
|
{error ? (
|
||||||
<div class="card-base p-10 text-accent text-center">
|
<div class="card-base p-10 text-accent text-center">
|
||||||
{error}
|
{error}
|
||||||
@@ -3,8 +3,8 @@ import { readSingleton } from '@directus/sdk';
|
|||||||
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
import BaseLayout from '@layouts/BaseLayout.astro';
|
import BaseLayout from '@layouts/BaseLayout.astro';
|
||||||
import GoBackButton from '@/components/buttons/GoBackButton.astro';
|
import PrimaryCTA from '@components/ui/buttons/PrimaryCTA.astro';
|
||||||
import GoHomeButton from '@/components/buttons/GoHomeButton.astro';
|
import GoBack from '@/components/ui/buttons/GoBack.astro';
|
||||||
|
|
||||||
const global = await directus.request(readSingleton('site_global'));
|
const global = await directus.request(readSingleton('site_global'));
|
||||||
---
|
---
|
||||||
@@ -28,7 +28,6 @@ const global = await directus.request(readSingleton('site_global'));
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
||||||
<section class="mt-20 grid place-content-center">
|
<section class="mt-20 grid place-content-center">
|
||||||
<div class="mx-auto max-w-7xl px-4 py-8 lg:px-6 lg:py-16">
|
<div class="mx-auto max-w-7xl px-4 py-8 lg:px-6 lg:py-16">
|
||||||
<div class="mx-auto max-w-screen-sm text-center">
|
<div class="mx-auto max-w-screen-sm text-center">
|
||||||
@@ -62,13 +61,12 @@ const global = await directus.request(readSingleton('site_global'));
|
|||||||
<div
|
<div
|
||||||
class="smooth-reveal mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row"
|
class="smooth-reveal mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row"
|
||||||
>
|
>
|
||||||
<GoBackButton/>
|
<GoBack title="Go Back" />
|
||||||
<GoHomeButton url={global.site_url} />
|
<PrimaryCTA title="Return Home" url={global.site_url} noArrow addHome />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ import { readSingleton } from '@directus/sdk';
|
|||||||
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
import BaseLayout from '@layouts/BaseLayout.astro';
|
import BaseLayout from '@layouts/BaseLayout.astro';
|
||||||
import HeroSection from '@components/sections/HeroSection.astro';
|
import HeroSection from '@components/ui/sections/HeroSection.astro';
|
||||||
import ExperienceSection from '@components/sections/ExperienceSection.astro';
|
import Experience from '@components/ui/sections/Experience.astro';
|
||||||
import EducationSection from '@components/sections/EducationSection.astro';
|
import EducationSection from '@components/ui/sections/EducationSection.astro';
|
||||||
import ProjectSection from '@components/sections/ProjectSection.astro';
|
import ProjectSection from '@components/ui/sections/ProjectSection.astro';
|
||||||
import SkillsSliderSection from '@components/sections/SkillsSliderSection.astro';
|
import SkillsSlider from '@components/ui/sections/SkillsSlider.astro';
|
||||||
|
|
||||||
import portraitImg from '@images/portrait.avif';
|
import portraitImg from '@images/portrait.avif';
|
||||||
|
|
||||||
@@ -44,10 +44,10 @@ const global = await directus.request(readSingleton('site_global'));
|
|||||||
|
|
||||||
<section class="mx-auto max-w-7xl px-4 py-10 sm:px-6 lg:px-8 lg:py-14">
|
<section class="mx-auto max-w-7xl px-4 py-10 sm:px-6 lg:px-8 lg:py-14">
|
||||||
<div class="flex flex-col gap-y-24 md:gap-y-32">
|
<div class="flex flex-col gap-y-24 md:gap-y-32">
|
||||||
<ExperienceSection className="smooth-reveal" />
|
<Experience className="smooth-reveal" />
|
||||||
<EducationSection className="smooth-reveal" />
|
<EducationSection className="smooth-reveal" />
|
||||||
<ProjectSection className="smooth-reveal" />
|
<ProjectSection className="smooth-reveal" />
|
||||||
<SkillsSliderSection className="smooth-reveal" />
|
<SkillsSlider className="smooth-reveal" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import { readSingleton } from '@directus/sdk';
|
|||||||
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
import BaseLayout from '@layouts/BaseLayout.astro';
|
import BaseLayout from '@layouts/BaseLayout.astro';
|
||||||
import HeroSection from '@components/sections/HeroSection.astro';
|
import HeroSection from '@components/ui/sections/HeroSection.astro';
|
||||||
import ApplicationSection from '@components/sections/ApplicationSection.astro';
|
import ApplicationSection from '@components/ui/sections/ApplicationSection.astro';
|
||||||
|
|
||||||
import applicationImg from '@images/cedar_tree.png';
|
import applicationImg from '@images/cedar_tree.png';
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,17 @@
|
|||||||
---
|
---
|
||||||
import { type CollectionEntry, getCollection } from 'astro:content';
|
import { type CollectionEntry, getCollection } from 'astro:content';
|
||||||
import getReadingTime from 'reading-time';
|
import getReadingTime from 'reading-time';
|
||||||
|
import { readItems, readSingleton } from '@directus/sdk';
|
||||||
|
|
||||||
|
import directus from '@lib/directus';
|
||||||
import { marked } from 'marked';
|
import { marked } from 'marked';
|
||||||
import markedShiki from 'marked-shiki';
|
import markedShiki from 'marked-shiki';
|
||||||
import { createHighlighter } from 'shiki';
|
import { createHighlighter } from 'shiki';
|
||||||
import { readItems, readSingleton } from '@directus/sdk';
|
|
||||||
|
|
||||||
import Image from '@components/ui/images/Image.astro';
|
|
||||||
import SocialShareButton from '@components/buttons/SocialShareButton.astro';
|
|
||||||
import BaseLayout from '@layouts/BaseLayout.astro';
|
|
||||||
import directus from '@lib/directus';
|
|
||||||
import { getDirectusImageURL } from '@lib/directusFunctions';
|
import { getDirectusImageURL } from '@lib/directusFunctions';
|
||||||
|
import BaseLayout from '@layouts/BaseLayout.astro';
|
||||||
|
import Image from '@components/ui/images/Image.astro';
|
||||||
import { formatDateTime } from '@support/time';
|
import { formatDateTime } from '@support/time';
|
||||||
|
|
||||||
const post = Astro.props;
|
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const posts = await directus.request(readItems('posts'));
|
const posts = await directus.request(readItems('posts'));
|
||||||
return posts.map((post) => ({
|
return posts.map((post) => ({
|
||||||
@@ -22,19 +19,18 @@ export async function getStaticPaths() {
|
|||||||
props: post,
|
props: post,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
const post = Astro.props;
|
||||||
|
|
||||||
const global = await directus.request(readSingleton('site_global'));
|
const global = await directus.request(readSingleton('site_global'));
|
||||||
const category: CollectionEntry<'categories'> = (await getCollection('categories'))
|
const category: CollectionEntry<'categories'> = (await getCollection('categories'))
|
||||||
.filter((c) => c.slug === post.category)
|
.filter((c) => c.slug === post.category)
|
||||||
.pop() as CollectionEntry<'categories'>;
|
.pop() as CollectionEntry<'categories'>;
|
||||||
|
|
||||||
const readingTime = getReadingTime(post.content);
|
const readingTime = getReadingTime(post.content);
|
||||||
|
|
||||||
const highlighter = await createHighlighter({
|
const highlighter = await createHighlighter({
|
||||||
themes: ['github-light', 'github-dark', 'monokai'],
|
themes: ['github-light', 'github-dark', 'monokai'],
|
||||||
langs: ['typescript', 'python', 'css', 'html', 'yaml', 'bash', 'json'],
|
langs: ['typescript', 'python', 'css', 'html', 'yaml', 'bash', 'json'],
|
||||||
});
|
});
|
||||||
|
|
||||||
marked.use(markedShiki({
|
marked.use(markedShiki({
|
||||||
highlight(code, lang) {
|
highlight(code, lang) {
|
||||||
return highlighter.codeToHtml(code, {
|
return highlighter.codeToHtml(code, {
|
||||||
@@ -47,7 +43,6 @@ marked.use(markedShiki({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const content = marked.parse(post.content);
|
const content = marked.parse(post.content);
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -83,7 +78,6 @@ const content = marked.parse(post.content);
|
|||||||
],
|
],
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
||||||
<section class="mx-auto max-w-6xl px-4 pt-8 pb-12 sm:px-6 lg:px-8 lg:pt-12">
|
<section class="mx-auto max-w-6xl px-4 pt-8 pb-12 sm:px-6 lg:px-8 lg:pt-12">
|
||||||
<div class="smooth-reveal relative w-full">
|
<div class="smooth-reveal relative w-full">
|
||||||
<div class="mt-4 rounded-2xl shadow-none sm:mt-0 sm:shadow-sm">
|
<div class="mt-4 rounded-2xl shadow-none sm:mt-0 sm:shadow-sm">
|
||||||
@@ -168,15 +162,11 @@ const content = marked.parse(post.content);
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<SocialShareButton
|
|
||||||
pageTitle={post.title}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<style is:inline>
|
<style is:inline>
|
||||||
code[data-theme*=' '],
|
code[data-theme*=' '],
|
||||||
code[data-theme*=' '] span {
|
code[data-theme*=' '] span {
|
||||||
@@ -190,7 +180,6 @@ const content = marked.parse(post.content);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -3,12 +3,11 @@ import { readItems, readSingleton } from '@directus/sdk';
|
|||||||
|
|
||||||
import type { Post } from '@lib/directusTypes';
|
import type { Post } from '@lib/directusTypes';
|
||||||
|
|
||||||
import HeroSection from '@components/sections/HeroSection.astro';
|
|
||||||
import SelectedPostsSection from '@components/sections/SelectedPostsSection.astro';
|
|
||||||
import RecentPostsSection from '@components/sections/RecentPostsSection.astro';
|
|
||||||
import BaseLayout from '@layouts/BaseLayout.astro';
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
|
import BaseLayout from '@layouts/BaseLayout.astro';
|
||||||
|
import BlogSelectedArticles from '@components/blog/BlogSelectedArticles.astro';
|
||||||
|
import BlogRecentArticles from '@components/blog/BlogRecentArticles.astro';
|
||||||
|
import HeroSection from '@components/ui/sections/HeroSection.astro';
|
||||||
import blogImg from '@images/autumn_tree.png';
|
import blogImg from '@images/autumn_tree.png';
|
||||||
|
|
||||||
const global = await directus.request(readSingleton('site_global'));
|
const global = await directus.request(readSingleton('site_global'));
|
||||||
@@ -19,11 +18,10 @@ const posts = await directus.request(
|
|||||||
sort: ['-published_date'],
|
sort: ['-published_date'],
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
const selectedPosts: Post[] = posts.filter((p) => p.selected).slice(0, 4);
|
||||||
const selectedPosts: Post[] = posts.filter((p) => p.selected).slice(0, 3);
|
|
||||||
const recentPosts: Post[] = posts.filter(
|
const recentPosts: Post[] = posts.filter(
|
||||||
(p) => !selectedPosts.some((selected) => selected.slug === p.slug)
|
(p) => !selectedPosts.some((selected) => selected.slug === p.slug)
|
||||||
).slice(0, 9);
|
).slice(0, 6);
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout
|
<BaseLayout
|
||||||
@@ -45,21 +43,10 @@ const recentPosts: Post[] = posts.filter(
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<HeroSection title="Blog" subTitle={global.about_blog} src={blogImg} alt={global.blog_image_alt} />
|
||||||
|
|
||||||
<HeroSection
|
<BlogSelectedArticles posts={selectedPosts} />
|
||||||
title="Blog"
|
<BlogRecentArticles posts={recentPosts} />
|
||||||
subTitle={global.about_blog}
|
|
||||||
src={blogImg}
|
|
||||||
alt={global.blog_image_alt}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<SelectedPostsSection posts={selectedPosts} />
|
|
||||||
|
|
||||||
<RecentPostsSection
|
|
||||||
posts={recentPosts}
|
|
||||||
title="Recent Posts"
|
|
||||||
/>
|
|
||||||
|
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -2,12 +2,11 @@
|
|||||||
import { getCollection } from 'astro:content';
|
import { getCollection } from 'astro:content';
|
||||||
import { readItems, readSingleton } from '@directus/sdk';
|
import { readItems, readSingleton } from '@directus/sdk';
|
||||||
|
|
||||||
import type { Post } from '@lib/directusTypes';
|
|
||||||
|
|
||||||
import BlogCard from '@components/cards/BlogCard.astro';
|
|
||||||
import HeaderSection from '@components/sections/HeaderSection.astro';
|
|
||||||
import BaseLayout from '@layouts/BaseLayout.astro';
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
|
import type { Post } from '@lib/directusTypes';
|
||||||
|
import BaseLayout from '@layouts/BaseLayout.astro';
|
||||||
|
import BlogCard from '@components/blog/BlogCard.astro';
|
||||||
|
import HeaderSection from '@components/ui/sections/HeaderSection.astro';
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const categories = await getCollection('categories');
|
const categories = await getCollection('categories');
|
||||||
@@ -27,7 +26,6 @@ const posts = await directus.request(
|
|||||||
sort: ['-published_date'],
|
sort: ['-published_date'],
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
const categoriesPosts = posts
|
const categoriesPosts = posts
|
||||||
.sort((a: Post, b: Post) => b.published_date.valueOf() - a.published_date.valueOf())
|
.sort((a: Post, b: Post) => b.published_date.valueOf() - a.published_date.valueOf())
|
||||||
.filter((b) => {
|
.filter((b) => {
|
||||||
@@ -53,7 +51,6 @@ const categoriesPosts = posts
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
||||||
<HeaderSection
|
<HeaderSection
|
||||||
title={category.data.title}
|
title={category.data.title}
|
||||||
subTitle={category.data.description}
|
subTitle={category.data.description}
|
||||||
@@ -62,12 +59,9 @@ const categoriesPosts = posts
|
|||||||
btnURL="/categories"
|
btnURL="/categories"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<section class="max-w-340 2xl:max-w-full mx-auto mt-10 mb-10 px-4 py-8 sm:px-6 lg:px-8">
|
<section class="mx-auto mt-10 mb-10 max-w-[85rem] px-4 py-8 sm:px-6 lg:px-8 2xl:max-w-full">
|
||||||
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
{categoriesPosts.map((b) =>
|
{categoriesPosts.map((b) => <BlogCard post={b} />)}
|
||||||
<BlogCard post={b} />
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|||||||
@@ -1,14 +1,78 @@
|
|||||||
---
|
---
|
||||||
import { readSingleton } from '@directus/sdk';
|
import { getCollection } from 'astro:content';
|
||||||
|
import { readItems, readSingleton } from '@directus/sdk';
|
||||||
|
|
||||||
|
import type { Post } from '@lib/directusTypes';
|
||||||
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
import BaseLayout from '@layouts/BaseLayout.astro';
|
import BaseLayout from '@layouts/BaseLayout.astro';
|
||||||
import HeroSection from '@components/sections/HeroSection.astro';
|
import BlogCategoryCard from '@components/blog/BlogCategoryCard.astro';
|
||||||
import CategorySection from '@components/sections/CategorySection.astro';
|
import HeroSection from '@components/ui/sections/HeroSection.astro';
|
||||||
|
import { timeago } from '@support/time';
|
||||||
import categoryImg from '@images/autumn_bench.png';
|
import categoryImg from '@images/autumn_bench.png';
|
||||||
|
|
||||||
const global = await directus.request(readSingleton('site_global'));
|
const global = await directus.request(readSingleton('site_global'));
|
||||||
|
const posts = await directus.request(
|
||||||
|
readItems('posts', {
|
||||||
|
filter: { published: { _eq: true } },
|
||||||
|
fields: ['*'],
|
||||||
|
sort: ['-published_date'],
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
|
const postMap: Map<string, Post[]> = posts
|
||||||
|
.sort((a: Post, b: Post) => b.published_date.valueOf() - a.published_date.valueOf())
|
||||||
|
.reduce((acc, obj) => {
|
||||||
|
let posts = acc.get(obj.category);
|
||||||
|
if (!posts) {
|
||||||
|
posts = [];
|
||||||
|
}
|
||||||
|
posts.push(obj);
|
||||||
|
|
||||||
|
acc.set(obj.category, posts);
|
||||||
|
|
||||||
|
return acc;
|
||||||
|
}, new Map<string, Post[]>());
|
||||||
|
|
||||||
|
const layoutPattern = [
|
||||||
|
{ col: 2, row: 2 },
|
||||||
|
{ col: 2, row: 1 },
|
||||||
|
{ col: 1, row: 1 },
|
||||||
|
{ col: 1, row: 1 },
|
||||||
|
{ col: 1, row: 2 },
|
||||||
|
{ col: 2, row: 1 },
|
||||||
|
{ col: 1, row: 1 },
|
||||||
|
{ col: 1, row: 1 },
|
||||||
|
{ col: 1, row: 1 },
|
||||||
|
{ col: 1, row: 1 },
|
||||||
|
];
|
||||||
|
|
||||||
|
const categories = (await getCollection('categories'))
|
||||||
|
.sort((a, b) => {
|
||||||
|
const aCount = postMap.get(a.slug)?.length ?? 0;
|
||||||
|
const bCount = postMap.get(b.slug)?.length ?? 0;
|
||||||
|
return bCount - aCount;
|
||||||
|
})
|
||||||
|
.map((c, index) => {
|
||||||
|
const posts = postMap.get(c.slug);
|
||||||
|
const pattern = layoutPattern[index % layoutPattern.length];
|
||||||
|
const smColSpan = Math.min(pattern.col, 2);
|
||||||
|
const mdColSpan = Math.min(pattern.col, 4);
|
||||||
|
const rowSpan = pattern.row;
|
||||||
|
const rowSpanClass = rowSpan > 1 ? `row-span-${rowSpan}` : 'row-span-1';
|
||||||
|
const gridItemClass = `col-span-${smColSpan} md:col-span-${mdColSpan} ${rowSpanClass} smooth-reveal-cards rounded-xl transition-all duration-300 shadow-xs hover:shadow-md dark:shadow-md dark:hover:shadow-lg border border-stone-200/50 dark:border-stone-700/50`;
|
||||||
|
return {
|
||||||
|
...c,
|
||||||
|
posts,
|
||||||
|
gridItemClass,
|
||||||
|
layoutPattern: {
|
||||||
|
smCol: smColSpan,
|
||||||
|
mdCol: mdColSpan,
|
||||||
|
row: rowSpan,
|
||||||
|
index,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout
|
<BaseLayout
|
||||||
@@ -30,7 +94,6 @@ const global = await directus.request(readSingleton('site_global'));
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
||||||
<HeroSection
|
<HeroSection
|
||||||
title="Categories"
|
title="Categories"
|
||||||
subTitle={global.about_categories}
|
subTitle={global.about_categories}
|
||||||
@@ -38,8 +101,28 @@ const global = await directus.request(readSingleton('site_global'));
|
|||||||
alt={global.categories_image_alt}
|
alt={global.categories_image_alt}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<CategorySection />
|
<section class="mx-auto px-4 py-10 sm:px-6 lg:px-8 lg:py-14 lg:pt-10 2xl:max-w-full">
|
||||||
|
<div class="grid grid-flow-row-dense grid-cols-2 gap-4 md:grid-cols-4">
|
||||||
|
{
|
||||||
|
categories.map((category) => {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
class={category.gridItemClass}
|
||||||
|
style={category.layoutPattern.row > 1 ? 'grid-row: span 2 / span 2;' : ''}
|
||||||
|
>
|
||||||
|
<BlogCategoryCard
|
||||||
|
slug={category.slug}
|
||||||
|
title={category.data.title}
|
||||||
|
description={category.data.description}
|
||||||
|
count={postMap.get(category.slug)?.length ?? 0}
|
||||||
|
publishDate={timeago(postMap.get(category.slug)?.[0]?.published_date)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,31 +1,17 @@
|
|||||||
---
|
---
|
||||||
import { readSingleton, readItems } from '@directus/sdk';
|
import { readSingleton } from '@directus/sdk';
|
||||||
|
|
||||||
import type { Post } from '@lib/directusTypes';
|
|
||||||
|
|
||||||
import directus from '@lib/directus';
|
import directus from '@lib/directus';
|
||||||
import BaseLayout from '@layouts/BaseLayout.astro';
|
import BaseLayout from '@layouts/BaseLayout.astro';
|
||||||
import HeroSection from '@components/sections/HeroSection.astro';
|
import HeroSection from '@components/ui/sections/HeroSection.astro';
|
||||||
import FeatureSection from '@components/sections/FeatureSection.astro';
|
import FeaturesSection from '@components/ui/sections/FeaturesSection.astro';
|
||||||
import WeatherSection from '@components/sections/WeatherSection.astro';
|
import WeatherSection from '@components/ui/sections/WeatherSection.astro';
|
||||||
import RecentPostsSection from '@components/sections/RecentPostsSection.astro';
|
import LatestPosts from '@components/ui/sections/LatestPosts.astro';
|
||||||
import GiteaSection from '@components/sections/GiteaSection.astro';
|
import HeroSectionAlt from '@components/ui/sections/HeroSectionAlt.astro';
|
||||||
|
|
||||||
import homeImg from '@images/autumn_mountain.png';
|
import homeImg from '@images/autumn_mountain.png';
|
||||||
|
|
||||||
const global = await directus.request(readSingleton('site_global'));
|
const global = await directus.request(readSingleton('site_global'));
|
||||||
const weather = await directus.request(readSingleton('site_weather'));
|
const weather = await directus.request(readSingleton('site_weather'));
|
||||||
const posts = await directus.request(
|
|
||||||
readItems('posts', {
|
|
||||||
filter: { published: { _eq: true } },
|
|
||||||
fields: ['*'],
|
|
||||||
sort: ['-published_date'],
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
const recentPosts = posts
|
|
||||||
.sort((a: Post, b: Post) => (new Date(b.published_date).getTime()) - (new Date(a.published_date).getTime()))
|
|
||||||
.slice(0, 3);
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout
|
<BaseLayout
|
||||||
@@ -47,7 +33,6 @@ const recentPosts = posts
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
||||||
<HeroSection
|
<HeroSection
|
||||||
title={`Hello, I'm <span class="text-steel dark:text-steel">Alex Lebens</span>`}
|
title={`Hello, I'm <span class="text-steel dark:text-steel">Alex Lebens</span>`}
|
||||||
subTitle={global.about_description}
|
subTitle={global.about_description}
|
||||||
@@ -57,7 +42,7 @@ const recentPosts = posts
|
|||||||
alt={global.home_image_alt}
|
alt={global.home_image_alt}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FeatureSection />
|
<FeaturesSection />
|
||||||
|
|
||||||
<WeatherSection
|
<WeatherSection
|
||||||
server:defer
|
server:defer
|
||||||
@@ -65,20 +50,16 @@ const recentPosts = posts
|
|||||||
longitude={weather.longitude}
|
longitude={weather.longitude}
|
||||||
cityName={weather.location}
|
cityName={weather.location}
|
||||||
timezone={weather.timezone}
|
timezone={weather.timezone}
|
||||||
/>
|
>
|
||||||
|
</WeatherSection>
|
||||||
|
|
||||||
<RecentPostsSection
|
<LatestPosts />
|
||||||
posts={recentPosts}
|
|
||||||
title="Latest Posts"
|
|
||||||
subTitle="Checkout my most recent thoughts here"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<GiteaSection
|
<HeroSectionAlt
|
||||||
title="Follow me on Gitea"
|
title="Follow me on Gitea"
|
||||||
subTitle="I love open source and have my code availabile on my Gitea server."
|
subTitle="I love open source and have my code availabile on my Gitea server."
|
||||||
url="https://gitea.alexlebens.dev"
|
url="https://gitea.alexlebens.dev"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
@import 'tailwindcss';
|
@import 'tailwindcss';
|
||||||
@import 'preline/variants.css';
|
@import 'preline/variants.css';
|
||||||
@import './utilities.css';
|
|
||||||
|
|
||||||
@plugin '@tailwindcss/typography';
|
@plugin '@tailwindcss/typography';
|
||||||
@plugin '@tailwindcss/forms';
|
@plugin '@tailwindcss/forms';
|
||||||
|
|
||||||
@@ -12,17 +10,11 @@
|
|||||||
/* Custom colors */
|
/* Custom colors */
|
||||||
@theme {
|
@theme {
|
||||||
--color-midnight: #0c354d;
|
--color-midnight: #0c354d;
|
||||||
--color-ocean: #134e70;
|
|
||||||
|
|
||||||
--color-cobalt: #6c9cb0;
|
|
||||||
--color-steel: #4682b4;
|
|
||||||
|
|
||||||
--color-turquoise: #0da797;
|
--color-turquoise: #0da797;
|
||||||
|
--color-steel: #4682b4;
|
||||||
--color-bermuda: #7fbab4;
|
--color-bermuda: #7fbab4;
|
||||||
|
|
||||||
--color-desert: #f9deb2;
|
--color-desert: #f9deb2;
|
||||||
--color-bronze: #9e7f5e;
|
--color-bronze: #9e7f5e;
|
||||||
|
|
||||||
--color-gitea-primary: #609926;
|
--color-gitea-primary: #609926;
|
||||||
--color-gitea-secondary: #4c7a33;
|
--color-gitea-secondary: #4c7a33;
|
||||||
|
|
||||||
@@ -31,7 +23,6 @@
|
|||||||
|
|
||||||
--color-header: light-dark(var(--color-neutral-800), var(--color-neutral-200));
|
--color-header: light-dark(var(--color-neutral-800), var(--color-neutral-200));
|
||||||
--color-primary: light-dark(var(--color-neutral-600), var(--color-neutral-200));
|
--color-primary: light-dark(var(--color-neutral-600), var(--color-neutral-200));
|
||||||
--color-primary-hover: light-dark(var(--color-neutral-800), var(--color-neutral-400));
|
|
||||||
--color-secondary: light-dark(var(--color-neutral-500), var(--color-neutral-400));
|
--color-secondary: light-dark(var(--color-neutral-500), var(--color-neutral-400));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,6 +98,63 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@utility card-base {
|
||||||
|
@apply rounded-xl transition-all duration-300
|
||||||
|
border border-neutral-100 dark:border-stone-500/20
|
||||||
|
bg-neutral-100/80 hover:bg-neutral-100 dark:bg-neutral-800/60 dark:hover:bg-neutral-800/90
|
||||||
|
shadow-xs hover:shadow-md dark:shadow-md dark:hover:shadow-lg
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility card-hover-icon-color {
|
||||||
|
@apply transition-all duration-300
|
||||||
|
text-primary
|
||||||
|
group-hover:text-main
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility card-hover-icon-scale {
|
||||||
|
@apply transition-all duration-300
|
||||||
|
drop-shadow-sm
|
||||||
|
group-hover:scale-110
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility card-text-header {
|
||||||
|
@apply text-header
|
||||||
|
md:text-5xl
|
||||||
|
text-4xl
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility card-text-header-minor {
|
||||||
|
@apply text-header
|
||||||
|
md:text-3xl
|
||||||
|
text-2xl
|
||||||
|
font-semibold
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility card-text-header-description {
|
||||||
|
@apply text-primary
|
||||||
|
text-lg
|
||||||
|
text-pretty
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility card-text-title {
|
||||||
|
@apply text-primary
|
||||||
|
font-bold
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility card-text-description {
|
||||||
|
@apply text-secondary
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility card-hover-text-title {
|
||||||
|
@apply transition-all duration-300
|
||||||
|
group-hover:text-main
|
||||||
|
}
|
||||||
|
|
||||||
|
@utility card-hover-text-gitea {
|
||||||
|
@apply transition-all duration-300
|
||||||
|
group-hover:text-gitea-primary
|
||||||
|
}
|
||||||
|
|
||||||
/* Content reveal animations */
|
/* Content reveal animations */
|
||||||
.smooth-reveal,
|
.smooth-reveal,
|
||||||
.smooth-reveal-2,
|
.smooth-reveal-2,
|
||||||
|
|||||||
@@ -1,123 +0,0 @@
|
|||||||
/* Button classes */
|
|
||||||
@utility button-base {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
border border-transparent
|
|
||||||
shadow-sm hover:shadow-md dark:shadow-md dark:hover:shadow-lg
|
|
||||||
px-4 py-3
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility button-base-hidden {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
border border-transparent
|
|
||||||
hover:bg-neutral-100 dark:hover:bg-neutral-700
|
|
||||||
p-2
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility button-hover-arrow {
|
|
||||||
@apply translate-y-px transition duration-300
|
|
||||||
group-hover:translate-x-1
|
|
||||||
h-3 w-3 md:h-5 md:w-5
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility button-text-title {
|
|
||||||
@apply text-neutral-200 2xl:text-base
|
|
||||||
text-sm font-bold
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility button-text-title-hidden {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
text-neutral-600 group-hover:text-neutral-700 dark:text-neutral-400 dark:group-hover:text-neutral-300 2xl:text-base
|
|
||||||
text-sm font-medium
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility button-bg-blue {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
bg-cobalt hover:bg-steel dark:bg-steel dark:hover:bg-cobalt
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility button-bg-teal {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
bg-bermuda hover:bg-turquoise group-hover:bg-turquoise dark:bg-turquoise dark:hover:bg-bermuda dark:group-hover:bg-bermuda
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility button-bg-neutral {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
border border-neutral-100 dark:border-stone-500/20
|
|
||||||
bg-neutral-100/80 hover:bg-neutral-100 dark:bg-neutral-800/60 dark:hover:bg-neutral-800/90
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility button-bg-gitea {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
bg-gitea-primary hover:bg-gitea-secondary dark:bg-gitea-secondary dark:hover:bg-gitea-primary
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Card classes */
|
|
||||||
@utility card-base {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
rounded-xl
|
|
||||||
border border-neutral-100 dark:border-stone-500/20
|
|
||||||
bg-neutral-100/80 hover:bg-neutral-100 dark:bg-neutral-800/60 dark:hover:bg-neutral-800/90
|
|
||||||
shadow-xs hover:shadow-md dark:shadow-md dark:hover:shadow-lg
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-base-hidden {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
rounded-xl
|
|
||||||
border border-transparent
|
|
||||||
hover:bg-neutral-400/20 dark:hover:bg-neutral-800/40
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-hover-icon-color {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
text-primary
|
|
||||||
group-hover:text-main
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-hover-icon-scale {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
drop-shadow-sm
|
|
||||||
group-hover:scale-110
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-text-header {
|
|
||||||
@apply text-header
|
|
||||||
text-4xl md:text-5xl
|
|
||||||
font-bold leading-tight tracking-tight text-balance
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-text-header-minor {
|
|
||||||
@apply text-header
|
|
||||||
text-2xl md:text-3xl
|
|
||||||
font-semibold leading-tight tracking-tight text-balance
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-text-header-description {
|
|
||||||
@apply text-primary
|
|
||||||
text-lg
|
|
||||||
text-pretty leading-relaxed
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-text-title {
|
|
||||||
@apply text-primary
|
|
||||||
font-bold
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-text-title-major {
|
|
||||||
@apply text-header
|
|
||||||
text-4xl md:text-3xl
|
|
||||||
font-bold leading-tight tracking-tight text-balance
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-hover-text-title {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
group-hover:text-main
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-hover-text-gitea {
|
|
||||||
@apply transition-all duration-300
|
|
||||||
group-hover:text-gitea-primary
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility card-text-description {
|
|
||||||
@apply text-secondary
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user