Reactivate astro-embed

This commit is contained in:
prototypa
2024-10-10 01:16:56 -04:00
parent 0795d3c465
commit 3a5823b039
4 changed files with 190 additions and 2 deletions

180
package-lock.json generated
View File

@@ -14,6 +14,7 @@
"@astrolib/seo": "^1.0.0-beta.8",
"@fontsource-variable/inter": "^5.1.0",
"astro": "^5.0.0-beta.4",
"astro-embed": "^0.7.4",
"astro-icon": "^1.1.1",
"limax": "4.1.0",
"lodash.merge": "^4.6.2",
@@ -94,6 +95,100 @@
"url": "https://github.com/sponsors/antfu"
}
},
"node_modules/@astro-community/astro-embed-integration": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/@astro-community/astro-embed-integration/-/astro-embed-integration-0.7.2.tgz",
"integrity": "sha512-R5eyiA01pj400skp6sJY4t01oXtTY+Huv2uR4eWUagaPgOOadu135+UkPXo38+LgZ5voYzZkaGwfTaZj4R0AFg==",
"dependencies": {
"@astro-community/astro-embed-link-preview": "^0.2.0",
"@astro-community/astro-embed-twitter": "^0.5.5",
"@astro-community/astro-embed-vimeo": "^0.3.9",
"@astro-community/astro-embed-youtube": "^0.5.4",
"@types/unist": "^2.0.0",
"astro-auto-import": "^0.4.2",
"unist-util-select": "^4.0.1"
},
"peerDependencies": {
"astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta || ^5.0.0-beta"
}
},
"node_modules/@astro-community/astro-embed-integration/node_modules/@types/node": {
"version": "18.19.55",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.55.tgz",
"integrity": "sha512-zzw5Vw52205Zr/nmErSEkN5FLqXPuKX/k5d1D7RKHATGqU7y6YfX9QxZraUzUrFGqH6XzOzG196BC35ltJC4Cw==",
"dependencies": {
"undici-types": "~5.26.4"
}
},
"node_modules/@astro-community/astro-embed-integration/node_modules/@types/unist": {
"version": "2.0.11",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",
"integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="
},
"node_modules/@astro-community/astro-embed-integration/node_modules/astro-auto-import": {
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/astro-auto-import/-/astro-auto-import-0.4.3.tgz",
"integrity": "sha512-qnSkydy13c81QDzDnIWuoQLCBOgU6ywRhqMq+ZTKJSE8+aK4ugZmGhtr7FGnNp1FLCmUxzj759SF0eLmTGsCdA==",
"dependencies": {
"@types/node": "^18.0.0",
"acorn": "^8.8.0"
},
"engines": {
"node": ">=16.0.0"
},
"peerDependencies": {
"astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta"
}
},
"node_modules/@astro-community/astro-embed-link-preview": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/@astro-community/astro-embed-link-preview/-/astro-embed-link-preview-0.2.2.tgz",
"integrity": "sha512-eZ/ORqtPCC3Z2cSH6UvOB1w9CBguEQUC4nFdyLmwHYIR3FhkutQgbaP7fgI1r+qUBDbXImpZjYxKS3RB4m/fOA==",
"dependencies": {
"@astro-community/astro-embed-utils": "^0.1.1"
}
},
"node_modules/@astro-community/astro-embed-twitter": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/@astro-community/astro-embed-twitter/-/astro-embed-twitter-0.5.6.tgz",
"integrity": "sha512-ywUjNhYbGW17vAQXj2tMus9JvLw8cwgzMshu6tVkzSRlyOoLFeWSNKwe44sU7REhUgmTCEQOUUfleN1j1Zwd4Q==",
"dependencies": {
"@astro-community/astro-embed-utils": "^0.1.0"
},
"peerDependencies": {
"astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta || ^5.0.0-beta"
}
},
"node_modules/@astro-community/astro-embed-utils": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/@astro-community/astro-embed-utils/-/astro-embed-utils-0.1.3.tgz",
"integrity": "sha512-eiMO+vfCdE9GtW6qE7X5Xl6YCKZDCoXJEWqRofQcoC3GHjqN2/WhJlnaxNVRq3demSO03UNtho57Em5p7o7AOA==",
"dependencies": {
"linkedom": "^0.14.26"
}
},
"node_modules/@astro-community/astro-embed-vimeo": {
"version": "0.3.10",
"resolved": "https://registry.npmjs.org/@astro-community/astro-embed-vimeo/-/astro-embed-vimeo-0.3.10.tgz",
"integrity": "sha512-H7v8BozWXG+EhIOn1DcNKLRO6z3bNXZVESUR25mNFiDd3Ue8MEzp8mWkBeRd6Y2onV9acxR34ZhXN36fsSb8bA==",
"dependencies": {
"@astro-community/astro-embed-utils": "^0.1.2"
},
"peerDependencies": {
"astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta || ^5.0.0-beta"
}
},
"node_modules/@astro-community/astro-embed-youtube": {
"version": "0.5.5",
"resolved": "https://registry.npmjs.org/@astro-community/astro-embed-youtube/-/astro-embed-youtube-0.5.5.tgz",
"integrity": "sha512-pG9uYjyZB1kpW8Ljy/H1Klof2txVXLwQmyoG4XWblZyt9eqFlaa65MdzL7UKzzqdoOsn64TN+Q+zPbx0HJhP4Q==",
"dependencies": {
"lite-youtube-embed": "^0.3.3"
},
"peerDependencies": {
"astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta || ^5.0.0-beta"
}
},
"node_modules/@astrojs/check": {
"version": "0.9.4",
"resolved": "https://registry.npmjs.org/@astrojs/check/-/check-0.9.4.tgz",
@@ -3193,6 +3288,21 @@
"url": "https://opencollective.com/svgo"
}
},
"node_modules/astro-embed": {
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/astro-embed/-/astro-embed-0.7.4.tgz",
"integrity": "sha512-meDmEpmwu1wcz1i1KT4yAPJhydq/C4iyh1Pn7sepSbtXF85C05nJoE0cTDJHf0cwM4zMoYTYDluqFIQIfsdhHA==",
"dependencies": {
"@astro-community/astro-embed-integration": "^0.7.2",
"@astro-community/astro-embed-link-preview": "^0.2.2",
"@astro-community/astro-embed-twitter": "^0.5.6",
"@astro-community/astro-embed-vimeo": "^0.3.10",
"@astro-community/astro-embed-youtube": "^0.5.5"
},
"peerDependencies": {
"astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta || ^5.0.0-beta"
}
},
"node_modules/astro-eslint-parser": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/astro-eslint-parser/-/astro-eslint-parser-1.0.3.tgz",
@@ -4385,6 +4495,11 @@
"url": "https://github.com/sponsors/fb55"
}
},
"node_modules/css-selector-parser": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/css-selector-parser/-/css-selector-parser-1.4.1.tgz",
"integrity": "sha512-HYPSb7y/Z7BNDCOrakL4raGO2zltZkbeXyAd6Tg9obzix6QhzxCotdBl6VT0Dv4vZfJGVz3WL/xaEI9Ly3ul0g=="
},
"node_modules/css-tree": {
"version": "2.2.1",
"license": "MIT",
@@ -4428,6 +4543,11 @@
"npm": ">=7.0.0"
}
},
"node_modules/cssom": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz",
"integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw=="
},
"node_modules/debug": {
"version": "4.3.7",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
@@ -5817,6 +5937,24 @@
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/htmlparser2": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz",
"integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==",
"funding": [
"https://github.com/fb55/htmlparser2?sponsor=1",
{
"type": "github",
"url": "https://github.com/sponsors/fb55"
}
],
"dependencies": {
"domelementtype": "^2.3.0",
"domhandler": "^5.0.3",
"domutils": "^3.0.1",
"entities": "^4.4.0"
}
},
"node_modules/http-cache-semantics": {
"version": "4.1.1",
"license": "BSD-2-Clause"
@@ -6369,6 +6507,23 @@
"dev": true,
"license": "MIT"
},
"node_modules/linkedom": {
"version": "0.14.26",
"resolved": "https://registry.npmjs.org/linkedom/-/linkedom-0.14.26.tgz",
"integrity": "sha512-mK6TrydfFA7phrnp+1j57ycBwFI5bGSW6YXlw9acHoqF+mP/y+FooEYYyniOt5Ot57FSKB3iwmnuQ1UUyNLm5A==",
"dependencies": {
"css-select": "^5.1.0",
"cssom": "^0.5.0",
"html-escaper": "^3.0.3",
"htmlparser2": "^8.0.1",
"uhyphen": "^0.2.0"
}
},
"node_modules/lite-youtube-embed": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/lite-youtube-embed/-/lite-youtube-embed-0.3.3.tgz",
"integrity": "sha512-gFfVVnj6NRjxVfJKo3qoLtpi0v5mn3AcR4eKD45wrxQuxzveFJUb+7Cr6uV6n+DjO8X3p0UzPPquhGt0H/y+NA=="
},
"node_modules/load-yaml-file": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/load-yaml-file/-/load-yaml-file-0.2.0.tgz",
@@ -9510,6 +9665,11 @@
"resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz",
"integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ=="
},
"node_modules/uhyphen": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/uhyphen/-/uhyphen-0.2.0.tgz",
"integrity": "sha512-qz3o9CHXmJJPGBdqzab7qAYuW8kQGKNEuoHFYrBwV6hWIMcpAmxDLXojcHfFr9US1Pe6zUswEIJIbLI610fuqA=="
},
"node_modules/undici": {
"version": "6.19.8",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.19.8.tgz",
@@ -9612,6 +9772,26 @@
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-select": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/unist-util-select/-/unist-util-select-4.0.3.tgz",
"integrity": "sha512-1074+K9VyR3NyUz3lgNtHKm7ln+jSZXtLJM4E22uVuoFn88a/Go2pX8dusrt/W+KWH1ncn8jcd8uCQuvXb/fXA==",
"dependencies": {
"@types/unist": "^2.0.0",
"css-selector-parser": "^1.0.0",
"nth-check": "^2.0.0",
"zwitch": "^2.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-select/node_modules/@types/unist": {
"version": "2.0.11",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",
"integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="
},
"node_modules/unist-util-stringify-position": {
"version": "4.0.0",
"license": "MIT",

View File

@@ -28,6 +28,7 @@
"@astrolib/seo": "^1.0.0-beta.8",
"@fontsource-variable/inter": "^5.1.0",
"astro": "^5.0.0-beta.4",
"astro-embed": "^0.7.4",
"astro-icon": "^1.1.1",
"limax": "4.1.0",
"lodash.merge": "^4.6.2",

View File

@@ -9,6 +9,7 @@ tags:
---
import Logo from '~/components/Logo.astro';
import { YouTube, Tweet, Vimeo } from 'astro-embed';
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@@ -190,8 +191,14 @@ import Logo from "~/components/Logo.astro";
### Youtube
<YouTube id="y9n6HkftavM" />
### Tweet
<Tweet id="https://twitter.com/Steve8708/status/1598713161339015173" />
### Vimeo
<Vimeo id="178430038" />
[[Top]](#top)

View File

@@ -11,7 +11,7 @@ import Features3 from '~/components/widgets/Features3.astro';
import FAQs from '~/components/widgets/FAQs.astro';
import Brands from '~/components/widgets/Brands.astro';
// import { YouTube } from 'astro-embed';
import { YouTube } from 'astro-embed';
const metadata = {
title: 'Startup Landing Page',
@@ -46,7 +46,7 @@ const metadata = {
</Fragment>
<Fragment slot="image">
<!-- <YouTube id="gxBkghlglTg" title="Astro just Launched.... Could it be the ultimate web framework?" /> -->
<YouTube id="gxBkghlglTg" title="Astro just Launched.... Could it be the ultimate web framework?" />
<style is:inline>
lite-youtube {
margin: 0 auto;