Skip to content

Commit 5b6e060

Browse files
committed
feat(docs): landing page work
1 parent 181ac9e commit 5b6e060

File tree

18 files changed

+104
-59
lines changed

18 files changed

+104
-59
lines changed

docs/src/assets/menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ module.exports = [
843843
{
844844
name: 'Getting Started',
845845
icon: 'flight_takeoff',
846-
path: 'getting-started',
846+
path: 'start',
847847
children: gettingStarted
848848
},
849849
{

docs/src/layouts/Layout.vue

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,19 @@
22
q-layout.doc-layout(view="hHh LpR lff", @scroll="onScroll")
33
q-header.header(elevated)
44
q-toolbar
5-
q-btn.q-mr-sm(v-if="hasDrawer", flat, dense, round, @click="leftDrawerState = !leftDrawerState", aria-label="Menu")
5+
q-btn.q-mr-sm(flat, dense, round, @click="leftDrawerState = !leftDrawerState", aria-label="Menu")
66
q-icon(name="menu")
77

88
q-btn.quasar-logo.text-bold(key="logo", flat, no-caps, no-wrap, stretch, to="/")
99
q-avatar
1010
img(src="https://cdn.quasar-framework.org/img/quasar-logo.png")
1111
q-toolbar-title(shrink) Quasar
1212

13-
template(v-if="hasDrawer !== true")
14-
q-separator.q-mx-xs(vertical, dark, inset)
15-
q-btn.text-bold(key="docs", flat, stretch, no-caps, to="/getting-started/pick-quasar-flavour", label="Docs")
16-
1713
q-space
1814

1915
header-menu.self-stretch.row.no-wrap(v-if="$q.screen.gt.xs")
2016

21-
q-btn.q-ml-xs(v-show="hasDrawer", flat, dense, round, @click="rightDrawerState = !rightDrawerState", aria-label="Menu")
17+
q-btn.q-ml-xs(flat, dense, round, @click="rightDrawerState = !rightDrawerState", aria-label="Menu")
2218
q-icon(name="assignment")
2319

2420
q-footer.text-white.text-center.footer
@@ -43,7 +39,6 @@ q-layout.doc-layout(view="hHh LpR lff", @scroll="onScroll")
4339
div Copyright © 2015 - {{ year }} PULSARDEV SRL, Razvan Stoenescu
4440

4541
q-drawer(
46-
v-if="hasDrawer"
4742
v-model="leftDrawerState"
4843
bordered
4944
show-if-above
@@ -67,7 +62,6 @@ q-layout.doc-layout(view="hHh LpR lff", @scroll="onScroll")
6762
app-menu.q-mb-lg
6863

6964
q-drawer(
70-
v-if="hasDrawer"
7165
v-model="rightDrawerState"
7266
side="right"
7367
content-class="bg-grey-2"
@@ -91,11 +85,6 @@ q-layout.doc-layout(view="hHh LpR lff", @scroll="onScroll")
9185
q-item-section(v-if="toc.sub === true", side)
9286
q-item-section {{ toc.title }}
9387

94-
.flex.justify-center.q-mt-sm
95-
.bg-grey.flex.flex-center.text-white(
96-
style="width: 160px; height: 243px"
97-
) Ad
98-
9988
q-page-container
10089
transition(
10190
enter-active-class="animated fadeIn"
@@ -132,7 +121,7 @@ export default {
132121
$route () {
133122
this.leftDrawerState = true
134123
this.rightDrawerState = true
135-
this.hasDrawer === true && this.$nextTick(() => {
124+
this.$nextTick(() => {
136125
this.updateActiveToc(document.documentElement.scrollTop || document.body.scrollTop)
137126
})
138127
}
@@ -148,10 +137,6 @@ export default {
148137
},
149138
150139
computed: {
151-
hasDrawer () {
152-
return this.$store.getters.hasDrawer
153-
},
154-
155140
leftDrawerState: {
156141
get () {
157142
return this.$store.state.leftDrawerState
@@ -212,11 +197,9 @@ export default {
212197
},
213198
214199
onScroll ({ position }) {
215-
if (this.scrollingPage === true || this.hasDrawer !== true) {
216-
return
200+
if (this.scrollingPage !== true) {
201+
this.updateActiveToc(position)
217202
}
218-
219-
this.updateActiveToc(position)
220203
},
221204
222205
updateActiveToc (position) {
@@ -266,7 +249,7 @@ export default {
266249
267250
.footer
268251
font-size 11px
269-
padding 24px 0
252+
padding 16px 0
270253
271254
&__icons
272255
font-size 28px

docs/src/pages/Landing.vue

Lines changed: 69 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
11
<template lang="pug">
2-
q-page(padding)
3-
div.flex
4-
div.row
5-
h4 Quasar - Empowering your websites and apps
6-
div.row.col-12
7-
img(src='https://cdn.quasar-framework.org/img/responsive-logo.png')
8-
9-
div.col-12.q-pt-sm Todo... Meanwhile, go to <doc-link to="/getting-started/pick-quasar-flavour">Documentation pages</doc-link>.
10-
11-
div.col-12.q-pt-md If you encounter a problem you can’t solve, you can also get help from:
12-
li the Quasar <doc-link to="https://forum.quasar-framework.org/">forum</doc-link>.
13-
li the <doc-link to="https://discord.gg/5TDhbDg">Discord chat server</doc-link>.
14-
li You can also get updates on new versions and features by following us on <doc-link to="https://twitter.com/quasarframework">Twitter</doc-link>.
2+
.landing
3+
section.landing__toolbar.bg-primary.text-white
4+
q-toolbar.q-pa-none
5+
q-btn.quasar-logo.text-bold(flat, no-caps, no-wrap, to="/start")
6+
q-avatar
7+
img(src="https://cdn.quasar-framework.org/img/quasar-logo.png")
8+
q-toolbar-title(shrink) Get started
9+
10+
q-space
11+
12+
q-btn.q-mr-sm(type="a", flat, icon="fab fa-github", href="https://github.com/quasarframework/quasar", target="_blank")
13+
q-btn.q-mr-sm(type="a", flat, icon="fab fa-twitter", href="https://twitter.com/quasarframework", target="_blank")
14+
q-btn.q-mr-sm(type="a", flat, icon="fab fa-medium", href="https://medium.com/quasar-framework", target="_blank")
15+
q-btn.q-mr-sm(type="a", flat, icon="fab fa-discord", href="https://discord.gg/5TDhbDg", target="_blank")
16+
q-btn(type="a", flat, icon="fas fa-comments", href="https://forum.quasar-framework.org/", target="_blank")
17+
18+
section.bg-primary.text-white
19+
.landing__hero.row
20+
.col-8.flex.items-center
21+
.q-gutter-md
22+
.text-h1
23+
div.text-weight-bold Quasar
24+
div Framework
25+
26+
div
27+
.q-gutter-md.row.items-center
28+
q-btn(push, color="white", text-color="primary", to="/start", label="Get started")
29+
.text-body2 v{{ $q.version }}
30+
31+
.col-4.row.items-center.justify-end
32+
img.landing__logo(src="https://cdn.quasar-framework.org/logo/svg/quasar-logo.svg")
33+
1534
</template>
1635

1736
<script>
@@ -23,3 +42,40 @@ export default {
2342
}
2443
}
2544
</script>
45+
46+
<style lang="stylus">
47+
.landing
48+
49+
> section
50+
display flex
51+
justify-content center
52+
position relative
53+
padding 0 16px
54+
55+
> div
56+
position relative
57+
max-width 800px
58+
width 100%
59+
60+
&__toolbar
61+
62+
&:before
63+
content ''
64+
position absolute
65+
top 0
66+
right 0
67+
bottom 0
68+
left 0
69+
background linear-gradient(to bottom, rgba(0,0,0,.2), transparent 70%)
70+
71+
.q-btn
72+
border-radius 0 0 5px 5px
73+
align-self stretch
74+
75+
&__hero
76+
min-height 70vh
77+
78+
&__logo
79+
width 184px
80+
height 184px
81+
</style>

docs/src/pages/introduction-to-quasar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ And finally, it’s worth mentioning the significant amount of time taken to wri
7878
Except for Vue, which takes half a day to pick up and will change you forever, there is no requirement for you to know the other technologies. They are all integrated and configured in Quasar for you.
7979

8080
## Get started in under a minute
81-
Having said this, let's [get started](/getting-started/pick-quasar-flavour)! You'll be running a website or app in under a minute.
81+
Having said this, let's [get started](/start)! You'll be running a website or app in under a minute.

docs/src/pages/quasar-cli/developing-electron-apps/build-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Electron Build Commands
33
---
4-
[Quasar CLI](/getting-started/quasar-cli) makes it incredibly simple to develop or build the final distributables from your source code.
4+
[Quasar CLI](/start/quasar-cli) makes it incredibly simple to develop or build the final distributables from your source code.
55

66
## Developing
77
```bash

docs/src/pages/quasar-cli/developing-pwa/build-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: PWA Build Commands
33
---
4-
[Quasar CLI](/getting-started/quasar-cli) makes it incredibly simple to develop or build the final distributables from your source code.
4+
[Quasar CLI](/start/quasar-cli) makes it incredibly simple to develop or build the final distributables from your source code.
55

66
## Developing
77
```bash

docs/src/pages/quasar-cli/developing-spa/build-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: PWA Build Commands
33
---
4-
[Quasar CLI](/getting-started/quasar-cli) makes it incredibly simple to develop or build the final distributables from your source code.
4+
[Quasar CLI](/start/quasar-cli) makes it incredibly simple to develop or build the final distributables from your source code.
55

66
Developing:
77
```bash

docs/src/pages/quasar-cli/developing-ssr/build-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: SSR Build Commands
33
---
4-
[Quasar CLI](/getting-started/quasar-cli) makes it incredibly simple to develop or build the final distributables from your source code.
4+
[Quasar CLI](/start/quasar-cli) makes it incredibly simple to develop or build the final distributables from your source code.
55

66
## Developing
77
```bash
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)