-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init Pre-launch template * feat: Pre-launch template * fix: dedicated templates route
- Loading branch information
Showing
3 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
template: pre-launch | ||
title: Pre-launch template | ||
--- | ||
|
||
:::pre-launch-hero{yml} | ||
title: Awesome startup | ||
description: Pretty long awesome startup description | ||
ctaDescription: Request an invite | ||
ctaPlaceholder: Your email | ||
ctaLabel: Get Invite | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<template> | ||
<section class="flex flex-col md:flex-row d-container-content py-12 md:py-24"> | ||
<div class="w-full md:w-1/2 flex flex-col justify-center mb-8 md:mb-0"> | ||
<div class="flex flex-col items-center md:items-start mb-2"> | ||
<span | ||
class="mx-2 text-xs mb-4 text-primary-500 px-2.5 py-1.5 leading-none rounded font-semibold uppercase tracking-wide bg-primary-100 dark:bg-primary-900 dark:text-primary-400" | ||
> | ||
🚀 Coming Soon | ||
</span> | ||
<h2 | ||
class="mb-2 text-5xl font-semibold sm:leading-none tracking-tighter text-center text-gray-900 md:text-left dark:text-gray-100 sm:text-6xl lg:text-7xl sm:mb-4" | ||
> | ||
{{ title }} | ||
</h2> | ||
<p | ||
class="mb-2 text-base text-center text-gray-700 md:text-left sm:text-xl xl:text-2xl leading-base sm:mb-4 dark:text-gray-300" | ||
> | ||
{{ description }} | ||
</p> | ||
</div> | ||
|
||
<div class="w-full"> | ||
<div class="flex flex-col max-w-md mx-auto md:mx-0"> | ||
<p class="text-sm mb-2 font-medium text-center md:text-left text-gray-600 dark:text-gray-500"> | ||
{{ ctaDescription }} | ||
</p> | ||
<div | ||
class="flex flex-col md:flex-row border border-gray-300 placeholder-gray-900 dark:border-gray-700 rounded-md p-1 w-full mb-2" | ||
> | ||
<input | ||
type="text" | ||
:placeholder="ctaPlaceholder" | ||
class="flex-1 py-3 px-3 focus:outline-none bg-transparent dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-600" | ||
/> | ||
<button | ||
class="inline-block font-semibold text-center items-center flex-none px-6 py-3 text-lg leading-6 rounded-md text-white transition-colors duration-200 border border-transparent border-l-0 bg-primary-500 hover:bg-primary-600 focus:outline-none" | ||
> | ||
{{ ctaLabel }} | ||
</button> | ||
</div> | ||
<SocialIcons padding="p-1.5" /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="w-full md:w-1/2 flex-col flex"> | ||
<!-- <svg class="max-h-64 md:max-h-96 mx-auto" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<rect x="119" y="100" width="205" height="205" class="text-primary-500" fill="currentColor" /> | ||
<circle cx="122.5" cy="290.5" r="85.5" class="text-rose-500" fill="currentColor" /> | ||
<path d="M256.5 24L347.866 182.25H165.134L256.5 24Z" class="text-yellow-500" fill="currentColor" /> | ||
</svg> --> | ||
<img class="max-h-64 md:max-h-96 mx-auto" :src="imageUrl" alt="" /> | ||
</div> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
import { defineComponent } from '@nuxtjs/composition-api' | ||
export default defineComponent({ | ||
props: { | ||
title: { | ||
type: String, | ||
default: 'Hero title' | ||
}, | ||
description: { | ||
type: String, | ||
default: 'I am the Hero description, with some text useful to go with the title.' | ||
}, | ||
ctaDescription: { | ||
type: String, | ||
default: 'CTA description' | ||
}, | ||
ctaPlaceholder: { | ||
type: String, | ||
default: 'CTA placeholder' | ||
}, | ||
ctaLabel: { | ||
type: String, | ||
default: 'CTA label' | ||
}, | ||
imageUrl: { | ||
type: String, | ||
default: 'https://source.unsplash.com/random' | ||
} | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<AppContainer fluid :footer="false"> | ||
<NuxtContent :document="page" /> | ||
</AppContainer> | ||
</template> | ||
|
||
<script> | ||
import { defineComponent } from '@nuxtjs/composition-api' | ||
export default defineComponent({ | ||
props: { | ||
page: { | ||
type: Object, | ||
required: true | ||
} | ||
} | ||
}) | ||
</script> |
18e0a77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: