Skip to content

Commit 525caf7

Browse files
committed
chore(demo): new hero look
1 parent 4dde979 commit 525caf7

File tree

2 files changed

+40
-19
lines changed

2 files changed

+40
-19
lines changed

demo/src/components/Hero.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<template>
22
<div>
33
<section class="page-header">
4-
<h1 class="project-name">QIconPicker</h1>
5-
<h2 class="project-tagline"></h2>
4+
<div class="text-h1 project-name">QIconPicker</div>
5+
<div class="text-h2 project-tagline"></div>
6+
<div class="byline">Created and maintained by Jeff Galbraith</div>
7+
<div class="quasar">A Quasar Framework App Extension</div>
68
<q-btn type="a" href="https://github.com/quasarframework/app-extension-qiconpicker" target="_blank" class="btn" label="View on GitHub" no-caps flat/>
79
<q-btn to="/icons" class="btn" label="Icons" no-caps flat/>
810
<q-btn to="/docs" class="btn" label="Docs" no-caps flat/>

demo/src/css/app.styl

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
$fgColor ?= #9932CC
44
$bgColor ?= #155799
55

6+
.quasar
7+
position absolute
8+
left 10px
9+
bottom 10px
10+
opacity 0.5
11+
12+
.byline
13+
position absolute
14+
bottom 10px
15+
right 10px
16+
opacity 0.5
17+
618
.qribbon__container
719
position relative
820

@@ -64,6 +76,8 @@ a
6476
.btn + .btn
6577
margin-left 1rem
6678

79+
.project-name
80+
font-weight 700
6781

6882
@media screen and (min-width 64em)
6983
.btn
@@ -81,55 +95,60 @@ a
8195
padding 0.75rem
8296
font-size 0.9rem
8397
.btn + .btn
84-
margin-left 0
98+
margin-left 0
99+
.byline
100+
left 0
101+
align-text center
102+
.quasar
103+
opacity 0
85104

86105
.page-header
106+
position relative
87107
color #fff
88108
text-align center
89109
background-color $bgColor
90110
background-image linear-gradient(120deg, $bgColor, $fgColor)
91111

92112
@media screen and (min-width 64em)
93113
.page-header
94-
padding 5rem 6rem
114+
padding 3rem 4rem
95115

96116
@media screen and (min-width 42em) and (max-width 64em)
97117
.page-header
98-
padding 3rem 4rem
118+
padding 2rem 4rem
99119

100120
@media screen and (max-width 42em)
101121
.page-header
102122
padding 2rem 1rem 1rem 1rem
103123

104-
.project-name
105-
font-weight 700
106-
margin-top 0
107-
margin-bottom 0.1rem
124+
.project-name
125+
font-weight 700
126+
margin-top 0
127+
margin-bottom 0.1rem
108128

109129
@media screen and (min-width 64em)
110130
.project-name
111-
font-size 3.25rem
131+
font-size 4.25rem
112132

113133
@media screen and (min-width 42em) and (max-width 64em)
114134
.project-name
115-
font-size 2.25rem
135+
font-size 3.25rem
116136

117137
@media screen and (max-width 42em)
118138
.project-name
119-
font-size 1.75rem
139+
font-size 2.75rem
120140

121-
.project-tagline
122-
margin-bottom 2rem
123-
font-weight normal
124-
opacity 0.7
141+
.project-tagline
142+
font-weight normal
143+
opacity 0.7
125144

126145
@media screen and (min-width 64em)
127146
.project-tagline
128-
font-size 1.25rem
147+
font-size 1.75rem
129148

130149
@media screen and (min-width 42em) and (max-width 64em)
131150
.project-tagline
132-
font-size 1.15rem
151+
font-size 1.25rem
133152

134153
@media screen and (max-width 42em)
135154
.project-tagline
@@ -143,7 +162,7 @@ a
143162
margin-top 2rem
144163
margin-bottom 1rem
145164
font-weight normal
146-
color $fgColor
165+
color #159957
147166
.main-content p
148167
margin-bottom 1em
149168
.main-content code

0 commit comments

Comments
 (0)