summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJfriedli2021-03-18 15:40:37 +0100
committerJfriedli2021-03-18 15:40:37 +0100
commit29e29e02929bb29345e4c472b8a2aaeab3609bab (patch)
tree78ae3b805d326a2a87d3c32faa841f7f24ec0fbf
parentb325dcc4523f13dfe7c741335a7bb80a91a1fac6 (diff)
finish up restyling
-rw-r--r--static/src/main.css57
-rw-r--r--templates/base.html10
-rw-r--r--templates/info.html125
3 files changed, 132 insertions, 60 deletions
diff --git a/static/src/main.css b/static/src/main.css
index 1171fe3..d7ec674 100644
--- a/static/src/main.css
+++ b/static/src/main.css
@@ -73,4 +73,59 @@
73 src: local(''), 73 src: local(''),
74 url('/static/font/rubik-v12-latin-500italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ 74 url('/static/font/rubik-v12-latin-500italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
75 url('/static/font/rubik-v12-latin-500italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ 75 url('/static/font/rubik-v12-latin-500italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
76} \ No newline at end of file 76}
77
78div pre[class*="language-"] {
79 display: inline-block;
80 padding-right: 10em;
81 padding-top: 3rem;
82 border-radius: 6px;
83 background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fillRule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="%23FF5F56" stroke="%23E0443E" strokeWidth=".5" /><circle cx="26" cy="6" r="6" fill="%23FFBD2E" stroke="%23DEA123" strokeWidth=".5" /><circle cx="46" cy="6" r="6" fill="%2327C93F" stroke="%231AAB29" strokeWidth=".5" /></g></svg>');
84 background-repeat: no-repeat;
85 background-position: 16px 16px;
86 box-shadow: 5px 5px 15px 0px rgba(50, 50, 50, 0.75);
87}
88
89/**
90 * okaidia theme for JavaScript, CSS and HTML
91 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
92 * @author ocodia
93 */
94
95code[class*="language-"],
96pre[class*="language-"] {
97 max-width: 90%;
98 border: black;
99 color: #f8f8f2;
100 background: none;
101 text-shadow: 0 1px rgba(0, 0, 0, 0.3);
102 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
103 text-align: left;
104 white-space: pre;
105 word-spacing: normal;
106 word-break: normal;
107 word-wrap: normal;
108 line-height: 1.5;
109
110 -moz-tab-size: 4;
111 -o-tab-size: 4;
112 tab-size: 4;
113
114 -webkit-hyphens: none;
115 -moz-hyphens: none;
116 -ms-hyphens: none;
117 hyphens: none;
118}
119
120/* Code blocks */
121pre[class*="language-"] {
122 padding: 1em;
123 margin: .5em 0;
124 overflow: auto;
125 border-radius: 0.3em;
126}
127
128:not(pre) > code[class*="language-"],
129pre[class*="language-"] {
130 background: #272822;
131}
diff --git a/templates/base.html b/templates/base.html
index 8d6712c..b259fdc 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -5,7 +5,6 @@
5 <title>MAT2</title> 5 <title>MAT2</title>
6 <meta charset="UTF-8"> 6 <meta charset="UTF-8">
7 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 <link href="{{ url_for('static', filename='raleway.woff2') }}" as="font" type="font/woff2" rel="preload">
9 <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}"> 8 <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}">
10 {% assets 'css' %} 9 {% assets 'css' %}
11 <link rel="stylesheet" href="{{ ASSET_URL }}"> 10 <link rel="stylesheet" href="{{ ASSET_URL }}">
@@ -36,8 +35,11 @@
36 </section> 35 </section>
37 36
38 <footer class="h-10 flex justify-center"> 37 <footer class="h-10 flex justify-center">
39 © <a href='https://dustri.org'>jvoisin</a> - 38 <a class="flex justify-center" target="_blank" rel="noreferrer" href="https://0xacab.org/jvoisin/mat2-web" class="text-blue-dark">
40 <a href='https://0xacab.org/jvoisin/mat2-web'>source</a> - 39 <svg class="w-4 h-4 mr-2 text-blue-dark self-center" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
41 40 <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" />
41 </svg>
42 <span class="self-center text-blue-dark">source</span>
43 </a>
42 </footer> 44 </footer>
43</body> \ No newline at end of file 45</body> \ No newline at end of file
diff --git a/templates/info.html b/templates/info.html
index 889a08f..3be85b8 100644
--- a/templates/info.html
+++ b/templates/info.html
@@ -1,60 +1,75 @@
1{% extends "base.html" %} 1{% extends "base.html" %}
2{% block content %} 2{% block content %}
3 <div> 3 <div class="grid grid-cols-1 md:grid-cols-2 gap-8 p-2 md:p-16 break-words max-w-full">
4 <h1> 4 <section>
5 What are metadata? 5 <h1 class="grid grid-rows-1">
6 </h1> 6 <div class="font-light text-4xl mb-4">
7 <p> 7 What are metadata
8 Metadata consists of information that characterizes your file. They answer background questions about who, how, when, and what. This gives your file multi-faceted documentation. 8 </div>
9 <a href="https://0xacab.org/jvoisin/mat2/blob/master/README.md"> 9 </h1>
10 https://0xacab.org/jvoisin/mat2/blob/master/README.md (09.2019) 10 <p class="text-gray-700 text-base text-opacity-80 mb-4">
11 </a> 11 Metadata consists of information that characterizes your file. They answer background questions about who, how, when, and what. This gives your file multi-faceted documentation.
12 </p> 12 <a class="text-blue-dark" href="https://0xacab.org/jvoisin/mat2/blob/master/README.md">
13 13 https://0xacab.org/jvoisin/mat2/blob/master/README.md (09.2019)
14 <p> 14 </a>
15 The metadata of your file leak a lot of information about you. For example, cameras store file information about the time of a shot and which camera was used for it. Documents, such as PDF or Words, automatically add author or company information to the document. You don't want to publish all this information at all? 15 </p>
16 </p> 16
17 17 <p class="text-gray-700 text-base text-opacity-80 mb-4">
18 <p> 18 The metadata of your file leak a lot of information about you. For example, cameras store file information about the time of a shot and which camera was used for it. Documents, such as PDF or Words, automatically add author or company information to the document. You don't want to publish all this information at all?
19 This is precisely the job of MAT2: getting rid, as much as possible, of metadata. 19 </p>
20 </p> 20
21 21 <p class="text-gray-700 text-base text-opacity-80 mb-4">
22 <h1> 22 This is precisely the job of MAT2: getting rid, as much as possible, of metadata.
23 MAT2 locally 23 </p>
24 </h1> 24
25 <p> 25 <h1 class="grid grid-rows-1">
26 Please note that while we do not keep a copy of your file, there is no way that you could be certain about this: Act accordingly. Due to this warning, please consider running MAT2 locally on your device. 26 <div class="font-light text-4xl mb-4">
27 </p> 27 MAT2 locally
28 28 </div>
29 <h2> 29 </h1>
30 MAT2 is available in pip 30 <p class="text-gray-700 text-base text-opacity-80 mb-4">
31 </h2> 31 Please note that while we do not keep a copy of your file, there is no way that you could be certain about this: Act accordingly. Due to this warning, please consider running MAT2 locally on your device.
32 <p> 32 </p>
33 <pre class=" language-javascript"><code class=" language-javascript">pip3 install mat2</code></pre> 33
34 </p> 34 <h2 class="grid grid-rows-1">
35 <h2> 35 <div class="font-light text-2xl mb-4">
36 MAT2 on Debian 36 MAT2 is available in pip
37 </h2> 37 </div>
38 <p> 38 </h2>
39 MAT2 is available on Debian. 39 <p>
40 </p> 40 <pre class="language-javascript"><code class="language-javascript">pip3 install mat2</code></pre>
41 <p> 41 </p>
42 <pre class=" language-javascript"><code class=" language-javascript">sudo apt install mat2</code></pre> 42
43 </p> 43 <h2 class="grid grid-rows-1">
44 <p> 44 <div class="font-light text-2xl mb-4">
45 More info: <a href="https://packages.debian.org/sid/mat2">https://packages.debian.org/sid/mat2</a> 45 MAT2 on Debian
46 </p> 46 </div>
47 47 </h2>
48 <h1> 48 <p class="text-gray-700 text-base text-opacity-80 mb-4">
49 Supported file formats 49 MAT2 is available on Debian.
50 </h1> 50 </p>
51 <p> 51
52 {% for extension in extensions %} 52 <p>
53 <span class="uk-badge"> 53 <pre class="max-w-max language-javascript"><code class="language-javascript">sudo apt install mat2</code></pre>
54 {{ extension }} 54 </p>
55 </span> 55 <p class="text-gray-700 text-base text-opacity-80 mb-4">
56 {% endfor %} 56 More info: <a class="text-blue-dark" href="https://packages.debian.org/sid/mat2">https://packages.debian.org/sid/mat2</a>
57 </p> 57 </p>
58 </section>
59 <section>
60 <h1 class="grid grid-rows-1">
61 <div class="font-light text-4xl mb-4">
62 Supported file formats
63 </div>
64 </h1>
65 <div>
66 {% for extension in extensions %}
67 <span class="rounded-full bg-blue text-white p-2 mb-2 mr-2 rounded float-left">
68 {{ extension }}
69 </span>
70 {% endfor %}
71 </div>
72 </section>
58 73
59 </div> 74 </div>
60 75