Skip to content

Commit

Permalink
add sections
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-garrido committed Nov 19, 2023
1 parent 99370e2 commit 23d76a1
Show file tree
Hide file tree
Showing 12 changed files with 126 additions and 224 deletions.
37 changes: 0 additions & 37 deletions src/components/compatibility-list.astro

This file was deleted.

89 changes: 0 additions & 89 deletions src/components/compatibility.astro

This file was deleted.

95 changes: 95 additions & 0 deletions src/components/contact/contact.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
import ContentSection from "~/components/content-section.astro";
import type { CompatibilityItem } from "~/types";
const frameworks: Array<CompatibilityItem> = [
{
title: "React",
icon: "frameworks/react",
url: "https://reactjs.org/",
},
{
title: "Preact",
icon: "frameworks/preact",
url: "https://preactjs.com/",
},
{
title: "Svelte",
icon: "frameworks/svelte",
url: "https://svelte.dev/",
},
{
title: "Vue",
icon: "frameworks/vue",
url: "https://vuejs.org/",
},
{
title: "Solid",
icon: "frameworks/solid",
url: "https://www.solidjs.com/",
},
{
title: "Lit",
icon: "frameworks/lit",
url: "https://lit.dev/",
},
];
const platforms: Array<CompatibilityItem> = [
{
title: "Netlify",
icon: "platforms/netlify",
url: "https://www.netlify.com/",
},
{
title: "Vercel",
icon: "platforms/vercel",
url: "https://vercel.com/",
},
{
title: "Cloudflare",
icon: "fa-brands:cloudflare",
url: "https://pages.cloudflare.com/",
},
{
title: "Render",
icon: "platforms/render",
url: "https://render.com/",
},
{
title: "GitHub",
icon: "fa-brands:github",
url: "https://pages.github.com/",
},
{
title: "GitLab",
icon: "fa-brands:gitlab",
url: "https://docs.gitlab.com/ee/user/project/pages/",
},
];
---

<ContentSection title="Contact" id="contact">
<Fragment slot="lead">
Astro <span class="text-primary">plays nice</span>. Bring your own UI{" "}
<span class="text-primary">framework</span>
and deploy to your favorite <span class="text-primary">platform</span>.
</Fragment>
<div class="py-8 lg:py-16 px-4 mx-auto max-w-screen-md w-full">
<form action="#" class="space-y-8">
<div>
<label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300">Your email</label>
<input type="email" id="email" class="shadow-sm bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500 dark:shadow-sm-light" placeholder="[email protected]" required>
</div>
<div>
<label for="subject" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300">Subject</label>
<input type="text" id="subject" class="block p-3 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 shadow-sm focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500 dark:shadow-sm-light" placeholder="Let us know how we can help you" required>
</div>
<div class="sm:col-span-2">
<label for="message" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400">Your message</label>
<textarea id="message" rows="6" class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg shadow-sm border border-gray-300 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500" placeholder="Leave a comment..."></textarea>
</div>
<button type="submit" class="py-3 px-5 text-sm font-medium text-center text-white rounded-lg bg-primary-700 sm:w-fit hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800">Send message</button>
</form>
</div>
</ContentSection>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { getCollection } from "astro:content";
import ContentSection from "~/components/content-section.astro";
import ShowcaseCard from "~/components/showcase-card.astro";
import ShowcaseCard from "~/components/gallery/showcase-card.astro";
const featuredSites = await getCollection(
"showcase",
Expand All @@ -12,7 +12,7 @@ const orderedSites = featuredSites.sort(
);
---

<ContentSection title="Showcase" id="showcase">
<ContentSection title="Galerie" id="gallery">
<Fragment slot="lead">
Astro is <span class="text-primary">versatile</span>.{" "}
<span class="text-primary">Explore</span> what's possible and get{" "}
Expand Down
File renamed without changes.
52 changes: 0 additions & 52 deletions src/components/github-corner.astro

This file was deleted.

32 changes: 8 additions & 24 deletions src/components/intro.astro
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
---
import { Icon } from "astro-icon";
// import { Icon } from "astro-icon";
import ContentSection from "~/components/content-section.astro";
---

<ContentSection title="Just ship less" id="intro">
<Icon slot="eyebrow" name="logomark" class="h-32" />
<ContentSection title="Spécialiste de la pose de clim à Bordeaux" id="intro">
<!-- <Icon slot="eyebrow" name="logomark" class="h-32" /> -->
<Fragment slot="lead">
Astro is a new kind of site builder for the
<span class="text-primary">modern</span> web.
<span class="text-primary">Lightning-fast</span>
performance meets <span class="text-primary">powerful</span> developer
experience.
Vous pouvez nous contacter, un devis gratuit, complet et détaillé intégrant le matériel et la main d'oeuvre nécessaire vous proposant la meilleure solution selon votre besoin et budget vous sera transmis rapidement.
Pour toute urgence de dépannage les délais sont relativement rapide (en moyenne sous 2h selon planning)
Notre entreprise assure la maintenance de tous les appareils que nous avons installé ou pas et dispose d'une panoplie de service lié au domaine de la climatisation et du chauffage à votre service.
<span class="text-primary">modern</span>
</Fragment>
<div class="grid grid-cols-1 gap-2 sm:grid-cols-2">
<a
href="https://docs.astro.build/"
class="flex items-center justify-center gap-3 border-2 border-current px-6 py-4"
>
<Icon pack="mdi" name="telescope" class="h-8" />
<span>Read the docs</span>
</a>
<a
href="https://astro.new/"
class="flex items-center justify-center gap-3 border-2 border-current px-6 py-4"
>
<Icon pack="mdi" name="rocket" class="h-8" />
<span>Try it out</span>
</a>
</div>

</ContentSection>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import ThemeSwitcher from "~/components/theme-switcher.astro";
import type { NavItem } from "~/types";
const navItems: Array<NavItem> = [
{ title: "Nos services", url: "#features" },
{ title: "Galerie", url: "#compatibility" },
{ title: "Contact", url: "#showcase" },
{ title: "Nos services", url: "#services" },
{ title: "Galerie", url: "#gallery" },
{ title: "Contact", url: "#contact" },
];
---

Expand All @@ -15,9 +15,9 @@ const navItems: Array<NavItem> = [
class="absolute bottom-0 z-20 flex w-full items-center justify-between border-b border-transparent px-8 py-4 text-white"
>
<a class="flex items-center gap-3 hover:!text-default" href="#">
<h1 class="sr-only">Astro</h1>
<Icon name="logomark" class="h-10" />
<Icon name="wordmark" class="hidden h-4 sm:block" />
<h1 class="text-xl">Aclim Confort</h1>
<!-- <Icon name="logomark" class="h-10" />
<Icon name="wordmark" class="hidden h-4 sm:block" /> -->
</a>
<div>
<div class="flex items-center gap-6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const features: Array<FeatureItem> = [
];
---

<ContentSection title="Features" id="features">
<ContentSection title="Services" id="services">
<Fragment slot="lead">
Astro comes <span class="text-primary">batteries included</span>. It takes
the best parts of
Expand Down
Loading

0 comments on commit 23d76a1

Please sign in to comment.