diff --git a/.gitignore b/.gitignore index 7329a85..42d5d2a 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ pnpm-debug.log* # macOS-specific files .DS_Store + +package-lock.json \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs index 461bd30..864df6f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,8 +1,17 @@ -import { defineConfig } from 'astro/config'; +import { defineConfig } from "astro/config"; import tailwind from "@astrojs/tailwind"; +import sitemap from "@astrojs/sitemap"; // https://astro.build/config export default defineConfig({ - integrations: [tailwind()] -}); \ No newline at end of file + // Astro uses this full URL to generate your sitemap and canonical URLs in your final build + site: "https://tailwind-astro.vercel.app", + + integrations: [ + tailwind({ + config: { applyBaseStyles: false }, + }), + sitemap({}), + ], +}); diff --git a/package-lock.json b/package-lock.json index ba32bf4..90d15d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "tailwind-astro", + "name": "@onwidget/astrowind", "version": "0.0.1", "lockfileVersion": 1, "requires": true, @@ -95,6 +95,16 @@ "integrity": "sha512-JxkrXFiFhfunOFBI2Xxwru9t4IzrLw+nfA7RkNnV8qP65BLidrwWS+NfZhOSVGTrbf+cQfF8QNe6O4gAX8wQHw==", "dev": true }, + "@astrojs/sitemap": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-0.2.1.tgz", + "integrity": "sha512-ZdUDqTtBOtkY9srN0dBL1BNB5/luv8I7LyEtv9l6jco5JF6fyY9/4OpWgiA2n6zGWzkuEw0WynWKK08uEvAxHQ==", + "dev": true, + "requires": { + "sitemap": "^7.1.1", + "zod": "^3.17.3" + } + }, "@astrojs/svelte-language-integration": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/@astrojs/svelte-language-integration/-/svelte-language-integration-0.1.6.tgz", @@ -577,6 +587,12 @@ "@types/unist": "*" } }, + "@types/node": { + "version": "17.0.45", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", + "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", + "dev": true + }, "@types/parse5": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-6.0.3.tgz", @@ -589,6 +605,15 @@ "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", "dev": true }, + "@types/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, "@types/unist": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", @@ -3923,6 +3948,12 @@ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "dev": true }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, "section-matter": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", @@ -4010,6 +4041,18 @@ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", "dev": true }, + "sitemap": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.1.tgz", + "integrity": "sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==", + "dev": true, + "requires": { + "@types/node": "^17.0.5", + "@types/sax": "^1.2.1", + "arg": "^5.0.0", + "sax": "^1.2.4" + } + }, "slash": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", diff --git a/package.json b/package.json index 3fc8280..0ab5db5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "tailwind-astro", - "version": "0.0.1", + "name": "@onwidget/astrowind", + "version": "0.0.2", "private": true, "scripts": { "dev": "astro dev", @@ -9,6 +9,7 @@ "preview": "astro preview" }, "devDependencies": { + "@astrojs/sitemap": "^0.2.1", "@astrojs/tailwind": "^0.2.1", "astro": "^1.0.0-beta.53" } diff --git a/public/images/hero-astro.jpg b/public/images/hero-astro.jpg new file mode 100644 index 0000000..d7a2773 Binary files /dev/null and b/public/images/hero-astro.jpg differ diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..6f27bb6 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: \ No newline at end of file diff --git a/src/components/astro/ctas/BasicCTA.astro b/src/components/astro/ctas/BasicCTA.astro new file mode 100644 index 0000000..2e2ba1d --- /dev/null +++ b/src/components/astro/ctas/BasicCTA.astro @@ -0,0 +1,14 @@ +--- +--- + +
+
+
+
+

Astro + Tailwind CSS

+

Arcu cursus vitae congue mauris + rhoncus viverra nibh cras pulvinar mattis blandit libero cursus mattis.

+
+
+
+
\ No newline at end of file diff --git a/src/components/astro/features/BasicFeatures.astro b/src/components/astro/features/BasicFeatures.astro new file mode 100644 index 0000000..801fcdd --- /dev/null +++ b/src/components/astro/features/BasicFeatures.astro @@ -0,0 +1,144 @@ +--- +--- + +
+ +
+
+
+

+ Features +

+

+ Most used Sections +

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum + dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat.

+
+
+
+
+ + + + + + + + + + +
+ Headers +
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore. +

+
+
+
+ + + + + + + + + + + +
+ Footers +
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore. +

+
+
+
+ + + + + + + + + + +
+ Features +
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore. +

+
+
+
+ + + + + + + + + + + +
+ Call-to-Action +
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore. +

+
+
+
+ + + + + + + + + + +
+ Pricing +
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore. +

+
+
+
+ + + + + + + + + + +
+ Testimonial +
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore. +

+
+
+ +
+
+
\ No newline at end of file diff --git a/src/components/astro/features/StepsFeatures.astro b/src/components/astro/features/StepsFeatures.astro new file mode 100644 index 0000000..a10fa79 --- /dev/null +++ b/src/components/astro/features/StepsFeatures.astro @@ -0,0 +1,81 @@ +--- +--- + +
+
+
+ +
+
+
+
+

+ Sed ac magna sit amet risus tristique interdum, at vel velit in hac habitasse platea dictumst. +

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis, quam nec venenatis lobortis, mi + risus tempus nulla, sed porttitor est nibh at nulla. Praesent placerat enim ut ex tincidunt vehicula. + Fusce sit amet dui tellus. +

+
+ +
+
+
+
+
    +
  • +
    + + 1 + +
    +
    +

    + Responsive Elements +

    +

    + All elements are responsive and provide the best display in all screen size. It's magic ! +

    +
    +
  • +
  • +
    + + 2 + +
    +
    +

    + Flexible Team +

    +

    + Flexibility is the key. All team is available 24/24 and joinable every day on our hotline. +

    +
    +
  • +
  • +
    + + 3 + +
    +
    +

    + Ecologic Software +

    +

    + Our Software are ecologic and responsable. Green is not just a color, it's a way of life. +

    +
    +
  • +
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/src/components/astro/footers/BasicFooter.astro b/src/components/astro/footers/BasicFooter.astro new file mode 100644 index 0000000..f7f3427 --- /dev/null +++ b/src/components/astro/footers/BasicFooter.astro @@ -0,0 +1,117 @@ +--- + const { } = Astro.props; +--- + + \ No newline at end of file diff --git a/src/components/astro/headers/BasicHeader.astro b/src/components/astro/headers/BasicHeader.astro new file mode 100644 index 0000000..de01e69 --- /dev/null +++ b/src/components/astro/headers/BasicHeader.astro @@ -0,0 +1,55 @@ +--- + const { } = Astro.props; +--- + +
+ +
+
+ + AstroWind + +
+ + +
+
+ +
+
\ No newline at end of file diff --git a/src/components/astro/hero/HeroWithImage.astro b/src/components/astro/hero/HeroWithImage.astro new file mode 100644 index 0000000..bbb83e1 --- /dev/null +++ b/src/components/astro/hero/HeroWithImage.astro @@ -0,0 +1,34 @@ +--- +--- + +
+
+
+
+

Your + website with Astro + Tailwind +

+
+

Lorem ipsum dolor sit amet, consectetur + adipiscing 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.

+ +
+
+
+
+
Hero +
+
+
+
+
+
\ No newline at end of file diff --git a/src/components/.gitkeep b/src/components/react/.gitkeep similarity index 100% rename from src/components/.gitkeep rename to src/components/react/.gitkeep diff --git a/src/components/svelte/.gitkeep b/src/components/svelte/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index fc9625e..efd151f 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,5 +1,10 @@ --- - const { title = "", description = "" } = Astro.props; + import "~/styles/base.css" + + import Header from "~/components/astro/headers/BasicHeader.astro" + import Footer from "~/components/astro/footers/BasicFooter.astro"; + + const { title = "", description = "", withHeader = true } = Astro.props; --- @@ -11,10 +16,15 @@ {title} + + + - + +
+