Skip to content

Commit c7fc77f

Browse files
committed
auth style updates
1 parent 1872937 commit c7fc77f

File tree

6 files changed

+120
-6
lines changed

6 files changed

+120
-6
lines changed

app/views/auth/signup.blade.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
Hi, you'll need an account in order to do whatever you just tried to do. No problem, just authenticate through GitHub and you're done.
1+
@extends('layouts._one_column')
22

3-
<a href="{{ action('AuthController@getLogin') }}">Login with GitHub</a>
3+
@section('content')
4+
<section class="auth woops">
5+
<h1>Woops!</h1>
6+
<p>You'll need an account in order to do whatever you just tried to do. No problem, just authenticate through GitHub and you're done.</p>
7+
<a class="button full" href="{{ action('AuthController@getLogin') }}">Login with GitHub</a>
8+
</section>
9+
@stop
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
We're going to create an account with this information.
1+
@extends('layouts._one_column')
22

3-
<img src="{{ $githubUser['avatar_url'] }}"/>
3+
@section('content')
4+
<section class="auth">
5+
<h1>We're going to create an account with this information.</h1>
46

5-
<a href="{{ $githubUser['html_url'] }}">{{ $githubUser['name'] }} {{ $githubUser['email'] }}</a>
7+
<div class="user">
8+
<img src="{{ $githubUser['avatar_url'] }}"/>
9+
<div class="bio">
10+
<h2>{{ $githubUser['name'] }}</h2>
11+
<h3>{{ $githubUser['email'] }}</h3>
12+
<a class="button" href="{{ action('AuthController@getLogin') }}">Create My Laravel.IO Account</a>
13+
</div>
14+
</div>
615

7-
<a href="{{ action('AuthController@getLogin') }}">Create My Laravel.IO Account</a>
16+
17+
</section>
18+
@stop
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<section class="content center">
2+
@section('content')
3+
@show
4+
</section>

public/scss/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@
3535
@import "modules/dashboard";
3636
@import "modules/code";
3737
@import "modules/alert";
38+
@import "modules/auth";

public/scss/modules/_auth.scss

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/* ==========================================================================
2+
MOBILE FIRST MODULE SKELETON
3+
========================================================================== */
4+
5+
// MOBILE STYLES ////////////////////////////////////////////////////////////
6+
7+
.auth {
8+
padding: 2%;
9+
10+
11+
&.woops {
12+
text-align: center;
13+
}
14+
15+
.user {
16+
@include clearfix;
17+
}
18+
19+
h1 {
20+
font-size:30px;
21+
font-weight: 600;
22+
text-align: center;
23+
line-height: 1.3;
24+
padding: 0 0 20px 0;
25+
}
26+
27+
img {
28+
float: left;
29+
@include span-columns(3);
30+
}
31+
32+
.bio {
33+
float: left;
34+
@include span-columns(9);
35+
36+
h2 {
37+
padding: 0 0 0 10px;
38+
font-weight: 600;
39+
font-size:22px;
40+
}
41+
42+
h3 {
43+
font-size:14px;
44+
padding: 0 0 0 10px;
45+
}
46+
47+
.button {
48+
font-size:14px;
49+
margin: 15px 0 0 10px;
50+
}
51+
}
52+
}
53+
54+
55+
// BREAKPOINT 1 (480) ////////////////////////////////////////////////////////////
56+
57+
@media only screen and (min-width: 480px) {
58+
59+
.auth {
60+
width:500px;
61+
margin: auto;
62+
}
63+
64+
}
65+
66+
67+
// BREAKPOINT 2 (768) ////////////////////////////////////////////////////////////
68+
69+
@media only screen and (min-width: 768px) {
70+
71+
.module {}
72+
}
73+
74+
75+
// BREAKPOINT 3 (1024) ////////////////////////////////////////////////////////////
76+
77+
@media only screen and (min-width: 1024px) {
78+
79+
.module {}
80+
}
81+
82+
83+
// BREAKPOINT 4 (1440) ////////////////////////////////////////////////////////////
84+
85+
@media only screen and (min-width: 1440px) {
86+
87+
.module {}
88+
}

public/scss/modules/_buttons.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@
1414
&.full {
1515
width: 100%;
1616
}
17+
18+
&:hover {
19+
background: $lioGrey;
20+
}
1721
}

0 commit comments

Comments
 (0)