Skip to content

Commit b004ed1

Browse files
committed
Changes home page
1 parent e2b4671 commit b004ed1

File tree

4 files changed

+157
-74
lines changed

4 files changed

+157
-74
lines changed

css/main.css

Lines changed: 62 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

img/background.svg

Lines changed: 23 additions & 0 deletions
Loading

index.html

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,28 @@
3232

3333
<div class="hero home">
3434
<div class="container">
35-
<nav>
36-
<a href="./" class="selected">Home</a>
37-
<a href="./docs.html">Docs</a>
38-
<a class="github-button" href="https://github.com/igorescobar/jQuery-Mask-Plugin" data-style="mega" data-count-href="/igorescobar/jQuery-Mask-Plugin/stargazers" data-count-api="/repos/igorescobar/jQuery-Mask-Plugin#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star igorescobar/jQuery-Mask-Plugin on GitHub">Star</a>
39-
</nav>
35+
<div class="navigation">
36+
<nav>
37+
<a href="./" class="selected">Home</a>
38+
<a href="./docs.html">Docs</a>
39+
<a class="github-button" href="https://github.com/igorescobar/jQuery-Mask-Plugin" data-style="mega" data-count-href="/igorescobar/jQuery-Mask-Plugin/stargazers" data-count-api="/repos/igorescobar/jQuery-Mask-Plugin#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star igorescobar/jQuery-Mask-Plugin on GitHub">Star</a>
40+
</nav>
41+
</div>
4042

4143
<h1>Masks on form fields with jQuery Mask Plugin</h1>
4244

43-
<a href="#" class="button-large">Download Now</a>
44-
<a href="#" class="link-small">View on Github</a>
45+
<ul class="actions">
46+
<li><a href="#" class="button-large">Download Now</a></li>
47+
<li><a href="#" class="link-small">View on Github</a></li>
48+
</ul>
4549
</div>
4650
</div>
4751

4852
<section class="examples">
49-
<div class="container container-small">
50-
<h2>Examples</h2>
53+
<div class="container">
54+
<p class="large">jQuery Mask Plugin allows you to easily create masks on fields and HTML elements.</p>
55+
56+
<h3>View in action</h3>
5157

5258
<div class="inputs">
5359
<div class="input-group">

sass/main.sass

Lines changed: 57 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ body
1616

1717
h1
1818
font-size: 52px
19-
line-height: 44px
20-
font-weight: 700
21-
letter-spacing: -0.77px
19+
line-height: 56px
20+
font-weight: 400
21+
letter-spacing: -2.22px
2222
margin: 0
2323

2424
h2
@@ -30,12 +30,17 @@ h2
3030
h3
3131
font-size: 24px
3232
font-weight: 700
33-
letter-spacing: -0.36px
33+
letter-spacing: -0.38px
3434
margin: 0
3535

3636
p
3737
margin: 0
3838

39+
&.large
40+
font-size: 18px
41+
line-height: 28px
42+
letter-spacing: -0.38px
43+
3944
a
4045
text-decoration: none
4146
font-family: "Roboto Mono"
@@ -48,13 +53,13 @@ a
4853
&.button-large
4954
display: block
5055
font-size: 14px
51-
padding: 15px 36px 17px
52-
background: $color-dark
56+
padding: 13px 36px 16px
57+
background: $color-main
5358
color: #FFF
54-
border-radius: 6px
59+
border-radius: 4px
5560

5661
&:hover
57-
background: lighten($color-dark, 6%)
62+
background: darken($color-main, 6%)
5863

5964
&.link-small
6065
font-size: 14px
@@ -94,11 +99,9 @@ pre
9499
max-width: 600px
95100

96101
.navigation
97-
margin-top: 110px
98-
99102
nav
100103
width: 100%
101-
margin: 40px 0 80px 0
104+
margin: 60px 0 80px 0
102105
display: flex
103106
align-items: center
104107

@@ -118,10 +121,10 @@ input[type=email],
118121
-webkit-appearance: none
119122
outline: none
120123
border: none
121-
border-bottom: 2px solid $color-borders
124+
border-bottom: 1px solid $color-borders
122125
font-family: "Roboto Mono"
123126
font-size: 14px
124-
padding: 12px
127+
padding: 12px 4px
125128

126129
&:focus
127130
border-color: $color-dark
@@ -139,6 +142,7 @@ label
139142
.input-group
140143
display: flex
141144
align-items: center
145+
justify-content: space-between
142146
margin-bottom: 20px
143147

144148
label
@@ -147,14 +151,29 @@ label
147151

148152
input
149153
width: 100%
150-
margin-left: 20px
154+
max-width: 380px
155+
margin-left: 32px
151156

152157
.examples
153-
margin-top: 100px
158+
margin-top: 20px
154159
margin-bottom: 120px
155160

161+
.container
162+
display: flex
163+
flex-direction: column
164+
align-items: center
165+
166+
p
167+
margin-bottom: 100px
168+
169+
p,
170+
h3
171+
text-align: center
172+
156173
.inputs
157174
margin-top: 80px
175+
width: 100%
176+
max-width: 600px
158177

159178
.donate
160179
width: 100%
@@ -203,17 +222,8 @@ label
203222
.hero
204223
margin-top: 50px
205224

206-
.border-bottom
207-
border-bottom: 2px solid $color-borders
208-
209-
.container-narrow
210-
display: flex
211-
justify-content: space-between
212-
align-items: center
213-
padding-bottom: 120px
214-
215225
h1
216-
max-width: 510px
226+
max-width: 580px
217227

218228
ul
219229
display: flex
@@ -235,8 +245,28 @@ label
235245
height: 2px
236246
background-color: #DDDDDD
237247

238-
&.home
239-
color: $color-main
248+
.hero.home
249+
250+
&::after
251+
content: ""
252+
display: block
253+
width: 100%
254+
height: 242px
255+
background: url(../img/background.svg) center center no-repeat
256+
background-size: cover
257+
margin-top: 40px
258+
259+
nav
260+
margin-bottom: 100px
261+
262+
.container
263+
display: flex
264+
flex-direction: column
265+
align-items: center
266+
267+
h1
268+
text-align: center
269+
margin-bottom: 60px
240270

241271
.docs
242272
margin-top: 100px

0 commit comments

Comments
 (0)