Landing Page
Learn how to create beautiful, responsive landing pages using the built-in marketing blocks
This guide covers how to create and customize landing pages in your MkSaaS website using the built-in marketing blocks from Tailark.
Core Features
MkSaaS comes with a comprehensive set of pre-built marketing blocks that allow you to quickly create beautiful, responsive landing pages. These blocks include:
- Hero sections
- Feature displays
- Pricing tables
- Testimonials
- Call-to-action sections
- And many more
All of these components are based on the Tailark open-source project, which provides high-quality UI blocks built with shadcn/UI and TailwindCSS.
Available Block Categories
The MkSaaS template includes all marketing blocks from Tailark, organized into the following categories:
Category | Description |
---|---|
Hero Sections | Engaging, attention-grabbing page headers |
Logo Cloud | Display partner or client logos |
Features | Highlight your product's key capabilities |
Integrations | Showcase third-party integrations |
Content | General content display sections |
Stats | Display important metrics and statistics |
Team | Present your team members |
Testimonials | Display customer reviews and testimonials |
Call-to-action | Encourage user actions |
Footer | Page footers with links and information |
Pricing | Showcase your pricing plans |
Comparator | Compare different product features or plans |
FAQs | Answer common questions |
Login | Login related components |
Sign-up | Sign-up related components |
Forgot Password | Password recovery interfaces |
Contact | Contact forms and information |
Each category contains multiple block variants, giving you plenty of options to choose from.
How to Use Marketing Blocks
The blocks are located in the src/app/[locale]/preview
directory, organized by category. Each category folder contains multiple block variants that you can use in your landing pages.
Browsing Available Blocks
To see all available blocks, you can explore the preview
directory:
Each category folder contains numbered variants (e.g., one
, two
, three
, etc.), and each variant has a page.tsx
file that implements the block.
Adding a Block to Landing Page
To use a block in your landing page:
- Browse the
preview
directory to find the block you want to use - Open the corresponding
page.tsx
file to view the implementation - Copy the component code from the file
- Paste it into your landing page component
- Customize the content and styling as needed
We do not recommend directly using components from the preview
directory in your code. These components are regularly synchronized with the official Tailark components and may introduce conflicts during updates. Instead, copy the components to your own directory or use the pre-built components in the blocks
directory as described in the next section.
For example, to use the first hero section variant:
Using the Blocks Directory
For better organization and internationalization support, MkSaaS provides a dedicated src/components/blocks
directory where you should place your customized components after copying them from the preview directory.
This directory structure mirrors the categories in the preview directory and already includes some pre-built, internationalized block components. When adding new blocks from the preview directory, we recommend the following workflow:
- Find and select the desired block from the preview directory
- Copy the component code from the
page.tsx
file - Create a new file in the corresponding category folder in
src/components/blocks
- Adapt the component to support internationalization (see the Internationalization section)
For example, if you've selected a hero section component from the preview directory, you should place your customized version in:
Using this organized approach provides several benefits:
- Keeps all your landing page components in one dedicated location
- Makes it easier to maintain and update components
- Ensures proper separation from the original preview components
- Allows you to adapt components for internationalization in a structured way
- Facilitates reuse across different parts of your application
While you can use components directly from the blocks
directory, the most recommended approach is to copy them to your own directory (e.g., components/home
or components/landing
) and customize them there. This approach:
- Prevents conflicts when the template is updated
- Gives you full control over the components
- Allows you to make extensive customizations without affecting the original components
- Makes it easier to maintain your specific modifications
Creating a Complete Landing Page
A typical landing page combines multiple blocks to create a cohesive user experience. Here's an example of how you might structure a landing page using components from the blocks directory:
This approach allows you to mix and match different blocks to create a unique landing page that suits your needs.
Internationalization
The blocks from Tailark do not support internationalization out of the box. To make your landing page multilingual, you'll need to extract the text content into language-specific resource files.
Extracting Text for Translation
When you've finalized your block selection and customization, follow these steps to make your landing page multilingual:
- Identify all text content in the blocks you're using
- Extract this text into language-specific resource files (e.g., using next-intl)
- Replace the hardcoded text with translation function calls
Here's an example of how to internationalize a hero section:
Translation Resource Files
Create translation files for each supported language:
Pre-built Internationalized Components
The src/components/blocks
directory already includes several pre-internationalized components that you can use as a reference or starting point. These components:
- Import
useTranslations
from next-intl - Use translation keys for all text content
- Use
LocaleLink
instead of regular Next.jsLink
for proper localization of URLs - Maintain the same visual design and functionality as their preview counterparts
For example, here's a simplified version of an internationalized hero component:
By following this approach, you can create a fully multilingual landing page that adapts to the user's preferred language.
Keeping Components Updated
The marketing blocks in MkSaaS are regularly synchronized with the Tailark GitHub repository. This ensures that you always have access to the latest improvements and additions.
There are three approaches to managing your landing page components, each with different update implications:
-
Using Preview Components (Not Recommended)
- Components in the
preview
directory are automatically synchronized with Tailark - Direct usage may cause conflicts during updates
- Avoid using these components in production
- Components in the
-
Using Blocks Directory Components
- Components in
src/components/blocks
are more stable - May still be affected by template updates
- Good for minimal customization needs
- Components in
-
Using Your Own Directory (Recommended)
- Copy components to your own directory (e.g.,
components/home
) - Immune to template updates
- Complete control over component updates
- Best for extensive customization needs
- Copy components to your own directory (e.g.,
When new versions of MkSaaS are released, you can manually review the changes in the preview
and blocks
directories to decide if you want to incorporate any improvements into your custom components.
Best Practices
When creating your landing page, consider these best practices:
- Start with a plan: Before implementing, sketch out the structure of your landing page
- Focus on user flow: Arrange blocks to guide users through a logical journey
- Maintain consistency: Use consistent colors, fonts, and styling throughout
- Optimize for performance: Compress images and minimize unnecessary animations
- Mobile first: Ensure your landing page looks great on all devices
- Test loading times: Verify that your page loads quickly, especially the above-the-fold content
- Clear call-to-action: Make your primary CTA prominent and compelling
- Simplify navigation: Keep navigation minimal to focus attention on your content
- A/B test: If possible, test different versions to see what resonates with your audience
- Track metrics: Set up analytics to measure the effectiveness of your landing page
Next Steps
Now that you understand how to create and customize landing pages in MkSaaS, explore these related topics: