diff --git a/package-lock.json b/package-lock.json
index 3098527..0c3fe10 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,13 +1,14 @@
{
"name": "@onwidget/astrowind",
- "version": "1.0.0-beta.23",
+ "version": "1.0.0-beta.24",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@onwidget/astrowind",
- "version": "1.0.0-beta.23",
+ "version": "1.0.0-beta.24",
"dependencies": {
+ "@astro-community/astro-embed-youtube": "^0.5.2",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.2",
"@astrolib/analytics": "^0.5.0",
@@ -190,6 +191,17 @@
"url": "https://github.com/sponsors/antfu"
}
},
+ "node_modules/@astro-community/astro-embed-youtube": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/@astro-community/astro-embed-youtube/-/astro-embed-youtube-0.5.2.tgz",
+ "integrity": "sha512-cckWcq7mFCmI6uPpIlRolSafSQRYZBOaxIc8DaCUh8+JQAtPF7O4EdpRpZBUcvbARrWEEyHJCWrt0XOGppMniw==",
+ "dependencies": {
+ "lite-youtube-embed": "^0.3.2"
+ },
+ "peerDependencies": {
+ "astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta"
+ }
+ },
"node_modules/@astrojs/compiler": {
"version": "2.7.1",
"license": "MIT"
@@ -679,6 +691,16 @@
"node": ">=18.0.0"
}
},
+ "node_modules/@emnapi/runtime": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.1.1.tgz",
+ "integrity": "sha512-3bfqkzuR1KLx57nZfjr2NLnFOobvyS0aTszaEGCGqmYMVDRaGvgIZbjGSV/MHSSmLgQ/b9JFHQ5xm5WRZYd+XQ==",
+ "dev": true,
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
"node_modules/@esbuild/aix-ppc64": {
"version": "0.19.12",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz",
@@ -7053,6 +7075,11 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/lite-youtube-embed": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/lite-youtube-embed/-/lite-youtube-embed-0.3.2.tgz",
+ "integrity": "sha512-b1dgKyF4PHhinonmr3PB172Nj0qQgA/7DE9EmeIXHR1ksnFEC2olWjNJyJGdsN2cleKHRjjsmrziKlwXtPlmLQ=="
+ },
"node_modules/load-yaml-file": {
"version": "0.2.0",
"license": "MIT",
diff --git a/package.json b/package.json
index e8223f1..8c1a70d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@onwidget/astrowind",
- "version": "1.0.0-beta.23",
+ "version": "1.0.0-beta.24",
"description": "AstroWind: A free template using Astro 4.0 and Tailwind CSS. Astro starter theme.",
"type": "module",
"private": true,
@@ -17,6 +17,7 @@
"lint:eslint": "eslint ."
},
"dependencies": {
+ "@astro-community/astro-embed-youtube": "^0.5.2",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.2",
"@astrolib/analytics": "^0.5.0",
@@ -58,4 +59,4 @@
"typescript": "^5.4.5",
"typescript-eslint": "^7.6.0"
}
-}
\ No newline at end of file
+}
diff --git a/src/components/common/YoutubeVideo.astro b/src/components/common/YoutubeVideo.astro
deleted file mode 100644
index dfa882d..0000000
--- a/src/components/common/YoutubeVideo.astro
+++ /dev/null
@@ -1,277 +0,0 @@
----
-
-const {
- videoId,
- title = ""
-} = Astro.props;
-
----
-
-
-
-
-
-
diff --git a/src/pages/homes/startup.astro b/src/pages/homes/startup.astro
index 4df1e68..0aea545 100644
--- a/src/pages/homes/startup.astro
+++ b/src/pages/homes/startup.astro
@@ -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 YoutubeVideo from '~/components/common/YoutubeVideo.astro';
+import { YouTube } from '@astro-community/astro-embed-youtube';
const metadata = {
title: 'Startup Landing Page',
@@ -46,7 +46,8 @@ const metadata = {
-
+
+