#landing page

3 messages · Page 1 of 1 (latest)

jagged stream
#

What would be the best structure for the following case: a landing page style that will be used for several companies, but each company has its own logo, color, and text, but always the same design style.

forest torrentBOT
#

Hi @jagged stream. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Astro's component-based design and layout system would be ideal for this use case. You can create a base layout that defines the common design style for all the landing pages. This layout can include placeholders for the logo, color scheme, and text content that will be unique for each company.

For each company, you can create a separate Astro component that imports the base layout and provides the company-specific logo, color, and text. This way, you can maintain a consistent design style across all landing pages while allowing for company-specific customization.

Here's a simplified example based on the information from the Astro documentation:

---
// Import the base layout
import BaseLayout from '../layouts/BaseLayout.astro';
---

<BaseLayout>
  <h1>{companyName}</h1>
  <img src={logoUrl} alt={companyName + ' logo'} />
  <p>{companyDescription}</p>
</BaseLayout>

In this example, companyName, logoUrl, and companyDescription would be variables that you define for each company.

Astro also supports nesting layouts, which could be useful if you have multiple levels of common design elements across different groups of companies.

For more detailed information on working with layouts in Astro, refer to the Astro documentation (https://docs.astro.build/en/tutorial/4-layouts/).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: