frontend/public/index.html (75 lines of code) (raw):

<!DOCTYPE html> <!-- Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Pic-a-Daily Serverless Workshop</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css"> <link rel="stylesheet" href="style.css"> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> <script src="https://unpkg.com/axios/dist/axios.min.js"></script> <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> </head> <body> <section class="hero is-info"> <div class="hero-body"> <div class="container"> <h1 class="title"> <i class="fas fa-image"></i> &nbsp; Pic-a-Daily Serverless Workshop </h1> </div> </div> <nav class="navbar has-background-dark" role="navigation" aria-label="main navigation"> <div class="navbar-brand"> <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarPica"> <span aria-hidden="true"></span> <span aria-hidden="true"></span> <span aria-hidden="true"></span> </a> </div> <div class="navbar-menu" id="navbarPica"> <div class="navbar-start"> <a class="navbar-item has-text-white" href="/"> <i class="fas fa-home"></i> &nbsp; Home </a> <a class="navbar-item has-text-white" href="/collage.html"> <i class="fas fa-cubes"></i> &nbsp; Collage </a> <a class="navbar-item has-text-white" href="/upload.html"> <i class="fas fa-upload"></i> &nbsp; Upload </a> </div> </div> </nav> </section> <section class="section"> <div class="container" id="app"> <div id="picture-grid"> <div class="card" v-for="pic in pictures"> <div class="card-content"> <div class="content"> <div class="image-border" :style="{ 'border-color': pic.color }"> <a :href="'/api/pictures/' + pic.name"> <img :src="'/api/thumbnails/' + pic.name"> </a> </div> <a class="panel-block" v-for="label in pic.labels" :href="'/?q=' + label"> <span class="panel-icon"> <i class="fas fa-bookmark"></i> &nbsp; </span> {{ label }} </a> </div> </div> </div> </div> </div> </section> </body> <script src="app.js"></script> <script src="script.js"></script> </html>