Skip to content

Commit 623fd5f

Browse files
authored
Merge pull request tailwindlabs#68 from tailwindcss/move-homepage
Use "What is Tailwind?" page as the homepage
2 parents c69fecb + 004d63b commit 623fd5f

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

source/_layouts/documentation.blade.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@
131131
{{-- Main content area --}}
132132
<div class="pt-24 pb-8 lg:pt-28 w-full">
133133
<div class="markdown mb-6 px-6 max-w-lg mx-auto lg:ml-0 lg:mr-auto xl:mx-0 xl:px-12 xl:w-3/4">
134-
<h1>{{ $page->title }}</h1>
134+
@if(isset($page->title))
135+
<h1>{{ $page->title }}</h1>
136+
@endif
137+
135138
@if ($page->description)
136139
<div class="text-xl text-grey-dark mb-4">
137140
{{ $page->description }}

source/docs/what-is-tailwind.blade.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
---
22
extends: _layouts.documentation
3-
title: "What is Tailwind?"
3+
title: ""
44
description: null
55
---
66

7-
<div class="mt-8 text-2xl text-grey-dark mb-8">
7+
<div class="flex items-center justify-center">
8+
<svg class="h-20 w-20 sm:w-24 sm:h-24 block mr-4 -ml-4" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="0%" y1="0%" y2="100%" id="a"><stop stop-color="#2383AE" offset="0%"/><stop stop-color="#6DD7B9" offset="100%"/></linearGradient></defs><path d="M10 8c1.333-5.333 4.667-8 10-8 8 0 9 6 13 7 2.667.667 5-.333 7-3-1.333 5.333-4.667 8-10 8-8 0-9-6-13-7-2.667-.667-5 .333-7 3zM0 20c1.333-5.333 4.667-8 10-8 8 0 9 6 13 7 2.667.667 5-.333 7-3-1.333 5.333-4.667 8-10 8-8 0-9-6-13-7-2.667-.667-5 .333-7 3z" transform="translate(4 12)" fill="url(#a)" fill-rule="nonzero"/></svg>
9+
<h1 class="text-center font-semibold text-4xl sm:text-5xl tracking-tight mb-1">Tailwind CSS</h1>
10+
</div>
11+
12+
<div class="max-w-sm mx-auto text-center text-xl sm:text-2xl text-grey-dark mb-16">
813
<p class="leading-tight">
9-
Tailwind is a utility-first CSS framework for rapidly building custom user interfaces.
14+
A utility-first CSS framework for rapidly building custom user interfaces.
1015
</p>
1116
</div>
1217

source/redirects

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/ /docs/what-is-tailwind 302

0 commit comments

Comments
 (0)