Skip to content
This repository was archived by the owner on May 8, 2021. It is now read-only.

Commit 17bcc06

Browse files
committed
Rewrite welcome view.
1 parent d694731 commit 17bcc06

File tree

1 file changed

+19
-70
lines changed

1 file changed

+19
-70
lines changed

examples/laravel/resources/views/welcome.blade.php

Lines changed: 19 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -6,92 +6,41 @@
66

77
<title>Laravel</title>
88

9-
<!-- Fonts -->
10-
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
9+
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
1110

1211
<!-- Styles -->
13-
<style>
14-
html, body {
15-
background-color: #fff;
16-
color: #636b6f;
17-
font-family: 'Nunito', sans-serif;
18-
font-weight: 200;
19-
height: 100vh;
20-
margin: 0;
21-
}
22-
23-
.full-height {
24-
height: 100vh;
25-
}
26-
27-
.flex-center {
28-
align-items: center;
29-
display: flex;
30-
justify-content: center;
31-
}
32-
33-
.position-ref {
34-
position: relative;
35-
}
36-
37-
.top-right {
38-
position: absolute;
39-
right: 10px;
40-
top: 18px;
41-
}
42-
43-
.content {
44-
text-align: center;
45-
}
46-
47-
.title {
48-
font-size: 84px;
49-
}
50-
51-
.links > a {
52-
color: #636b6f;
53-
padding: 0 25px;
54-
font-size: 13px;
55-
font-weight: 600;
56-
letter-spacing: .1rem;
57-
text-decoration: none;
58-
text-transform: uppercase;
59-
}
60-
61-
.m-b-md {
62-
margin-bottom: 30px;
63-
}
64-
</style>
12+
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
6513
</head>
66-
<body>
67-
<div class="flex-center position-ref full-height">
14+
<body class="bg-white text-gray-600 font-sans font-thin h-screen m-0">
15+
<div class="flex items-center justify-end h-12 no-underline text-sm font-normal">
6816
@if (Route::has('login'))
6917
<div class="top-right links">
7018
@auth
71-
<a href="{{ url('/home') }}">Home</a>
19+
<a class="pr-5" href="{{ url('/home') }}">Home</a>
7220
@else
73-
<a href="{{ route('login') }}">Login</a>
21+
<a class="pr-5" href="{{ route('login') }}">Login</a>
7422

7523
@if (Route::has('register'))
76-
<a href="{{ route('register') }}">Register</a>
24+
<a class="pr-5" href="{{ route('register') }}">Register</a>
7725
@endif
7826
@endauth
7927
</div>
8028
@endif
81-
82-
<div class="content">
83-
<div class="title m-b-md">
29+
</div>
30+
<div class="flex items-center justify-center h-screen -mt-12">
31+
<div class="text-center">
32+
<div class="text-6xl mb-6">
8433
Laravel
8534
</div>
8635

87-
<div class="links">
88-
<a href="https://laravel.com/docs">Docs</a>
89-
<a href="https://laracasts.com">Laracasts</a>
90-
<a href="https://laravel-news.com">News</a>
91-
<a href="https://blog.laravel.com">Blog</a>
92-
<a href="https://nova.laravel.com">Nova</a>
93-
<a href="https://forge.laravel.com">Forge</a>
94-
<a href="https://github.com/laravel/laravel">GitHub</a>
36+
<div class="uppercase no-underline text-sm font-normal">
37+
<a class="" href="https://laravel.com/docs">Docs</a>
38+
<a class="px-8" href="https://laracasts.com">Laracasts</a>
39+
<a class="px-8" href="https://laravel-news.com">News</a>
40+
<a class="px-8" href="https://blog.laravel.com">Blog</a>
41+
<a class="px-8" href="https://nova.laravel.com">Nova</a>
42+
<a class="px-8" href="https://forge.laravel.com">Forge</a>
43+
<a class="px-8" href="https://github.com/laravel/laravel">GitHub</a>
9544
</div>
9645
</div>
9746
</div>

0 commit comments

Comments
 (0)