repl.it
@Pablo74/

PWA template Quasar

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • css
  • img
  • js
  • CZ info.md
  • manifest.json
  • service-worker.js
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
    <title>Quasar</title>
    <meta name="theme-color" content="#027be3">
    <link rel="preload" as="font" type="font/woff2" crossorigin="anonymous"
    href="https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2">

    <link href="css/fonts.css" rel="stylesheet" type="text/css">

    <link href="css/style.css" rel="stylesheet" type="text/css">

    <link href="https://cdn.jsdelivr.net/npm/[email protected]^4.5.10-0/dist/css/ionicons.min.css" rel="stylesheet" >

    <link href="https://cdn.jsdelivr.net/npm/[email protected]^1.2.1/dist/quasar.min.css" rel="stylesheet" type="text/css">

    <link rel="manifest" href="/manifest.json">    
  </head>

  <body>

    <div id="q-app"></div>

    <template id="main">
      <q-layout view="hHh lpR fFf">

        <q-header elevated class="bg-primary text-white glossy">
          <q-toolbar>
            <q-btn dense flat round icon="menu" @click="left = !left" ></q-btn>
            <q-toolbar-title class="absolute-center">
              Quasar App
            </q-toolbar-title>
          </q-toolbar>
        </q-header>

        <q-drawer 
          show-if-above 
          v-model="left" 
          side="left" 
          width="160"
          overlay
          behavior="mobile"
          bordered>
          <q-scroll-area class="fit">
            <q-list >
              <q-item 
                style="border-bottom: 1px solid lightgray"
                clickable 
                v-ripple 
                to = "/"
                >
              <!-- name: Info -->
                <q-item-section :style="{'font-weight': router.currentRoute.path == '/' ? 'bold' : 'normal'}">
                  Info
                </q-item-section>               
              </q-item>
              <q-item 
                style="border-bottom: 1px solid lightgray"
                clickable 
                v-ripple 
                to = "/settings"
                >
              <!-- name: Settings -->                <q-item-section :style="{'font-weight': router.currentRoute.path == '/settings' ? 'bold' : 'normal'}">
                  Settings
                </q-item-section>               
              </q-item>
              <q-item 
                style="border-bottom: 1px solid lightgray"
                clickable 
                v-ripple 
                to = "/about"
                >
              <!-- name: About -->                <q-item-section :style="{'font-weight': router.currentRoute.path == '/about' ? 'bold' : 'normal'}">
                  About
                </q-item-section>               
              </q-item>              
            </q-list>
          </q-scroll-area>
        </q-drawer>

        <q-page-container>
          <router-view ></router-view>
        </q-page-container>

        <q-footer elevated class="" style="background: linear-gradient(to bottom, #3399ff, #0000ff, #3399ff);">
          <q-toolbar>
            <q-toolbar-title class="absolute-center">
              author: Pavel Kříž
            </q-toolbar-title>
          </q-toolbar>
        </q-footer>

      </q-layout>
    </template>

    <!-- template PageInfo -->
    <template id="info">
      <q-page padding>
        <h2 class="">Info page</h2>
        <p>This is the <strong>Info page.</strong></p>
        <p>route: {{router.currentRoute.path}}</p>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque sapien. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Et harum quidem rerum facilis est et expedita distinctio. Maecenas fermentum, sem in pharetra pellentesque, velit turpis volutpat ante, in pharetra metus odio a lectus. 
        </p>
      </q-page>
    </template>

    <!-- template PageSettings -->
    <template id="settings">
      <q-page padding >
        <h2 class="">Settings page</h2>
        <p>This is the <strong>Settings page.</strong></p>
        <p>route: {{router.currentRoute.path}}</p>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque sapien. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Et harum quidem rerum facilis est et expedita distinctio. Maecenas fermentum, sem in pharetra pellentesque, velit turpis volutpat ante, in pharetra metus odio a lectus. 
        </p>
      </q-page>
    </template>

    <!-- template PageAbout -->
    <template id="about">
      <q-page padding>
        <h2 class="">About page</h2>
        <p>This is the <strong>About page.</strong></p>
        <p>route: {{router.currentRoute.path}}</p>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque sapien. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Et harum quidem rerum facilis est et expedita distinctio. Maecenas fermentum, sem in pharetra pellentesque, velit turpis volutpat ante, in pharetra metus odio a lectus. 
        </p>
      </q-page>
    </template>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
    <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]^1.2.1/dist/quasar.umd.min.js"></script>

    <script src="js/app.js"></script>

  </body>
</html>
result
console