aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/templates
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-01-10 13:19:31 +0100
committerTibor Frank <tifrank@cisco.com>2022-01-11 14:09:38 +0100
commita5e8351152d9513811e2d6d9eaaf2180e35e002d (patch)
tree83ee473fc391aff83869706345acf740eba22cd9 /resources/tools/dash/app/pal/templates
parentfd5600f3441d99f4cc9643e3a0da99c850b80a5c (diff)
feat(uti): Dash demo
- displays the table with trending data downloaded from trending pages Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ic0d48290105ccd846c7de9ee4d8acb78e0b72f00
Diffstat (limited to 'resources/tools/dash/app/pal/templates')
-rw-r--r--resources/tools/dash/app/pal/templates/index.jinja213
-rw-r--r--resources/tools/dash/app/pal/templates/layout.jinja233
2 files changed, 46 insertions, 0 deletions
diff --git a/resources/tools/dash/app/pal/templates/index.jinja2 b/resources/tools/dash/app/pal/templates/index.jinja2
new file mode 100644
index 0000000000..8ab5c84356
--- /dev/null
+++ b/resources/tools/dash/app/pal/templates/index.jinja2
@@ -0,0 +1,13 @@
+{% extends "layout.jinja2" %}
+
+{% block content %}
+<div class="card">
+ <img src="{{ url_for('static', filename='img/logo.svg') }}" class="logo" />
+ <h1 class="site-title">{{ title }}</h1>
+ <p class="subtitle">{{ description }}</p>
+ <a href="/trending/" class="dash-link">
+ <span>trending</span>
+ <i class="fas fa-arrow-right"></i>
+ </a>
+</div>
+{% endblock %}
diff --git a/resources/tools/dash/app/pal/templates/layout.jinja2 b/resources/tools/dash/app/pal/templates/layout.jinja2
new file mode 100644
index 0000000000..59abba36e3
--- /dev/null
+++ b/resources/tools/dash/app/pal/templates/layout.jinja2
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <title>{{ title }}</title>
+ <meta property="og:site_name" content="{{ title }}"/>
+ <meta property="og:type" content="website"/>
+ <meta property="og:title" content="{{ title }}"/>
+ <meta property="og:description" content="{{ description }}"/>
+ <meta property="og:url" content="https://fd.io/"/>
+ <meta name="HandheldFriendly" content="True" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
+ <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
+ <link rel="stylesheet" href="{{ url_for('static', filename='dist/css/styles.css') }}" />
+ <link rel="stylesheet" href="https://use.typekit.net/uqq2lcv.css">
+ <link rel="shortcut icon" href="{{ url_for('static', filename='dist/img/favicon.svg') }}" type="image/x-icon" />
+ <link
+ rel="stylesheet"
+ href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
+ integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf"
+ crossorigin="anonymous"
+ />
+</head>
+
+<body class="{{template}}">
+ <div class="container">
+ {% block content %}{% endblock %}
+ </div>
+</body>
+
+</html>