summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--static/font/rubik-v12-latin-300.woffbin0 -> 22524 bytes
-rw-r--r--static/font/rubik-v12-latin-300.woff2bin0 -> 17312 bytes
-rw-r--r--static/font/rubik-v12-latin-300italic.woffbin0 -> 21484 bytes
-rw-r--r--static/font/rubik-v12-latin-300italic.woff2bin0 -> 17032 bytes
-rw-r--r--static/font/rubik-v12-latin-500.woffbin0 -> 24112 bytes
-rw-r--r--static/font/rubik-v12-latin-500.woff2bin0 -> 18792 bytes
-rw-r--r--static/font/rubik-v12-latin-500italic.woffbin0 -> 22876 bytes
-rw-r--r--static/font/rubik-v12-latin-500italic.woff2bin0 -> 18196 bytes
-rw-r--r--static/font/rubik-v12-latin-600.woffbin0 -> 24088 bytes
-rw-r--r--static/font/rubik-v12-latin-600.woff2bin0 -> 18752 bytes
-rw-r--r--static/font/rubik-v12-latin-700.woffbin0 -> 24160 bytes
-rw-r--r--static/font/rubik-v12-latin-700.woff2bin0 -> 18816 bytes
-rw-r--r--static/font/rubik-v12-latin-italic.woffbin0 -> 22656 bytes
-rw-r--r--static/font/rubik-v12-latin-italic.woff2bin0 -> 18080 bytes
-rw-r--r--static/font/rubik-v12-latin-regular.woffbin0 -> 23916 bytes
-rw-r--r--static/font/rubik-v12-latin-regular.woff2bin0 -> 18692 bytes
-rw-r--r--static/raleway.woff2bin20332 -> 0 bytes
-rw-r--r--static/src/main.css71
-rw-r--r--tailwind.config.js8
-rw-r--r--templates/base.html14
-rw-r--r--templates/download.html35
-rw-r--r--templates/index.html34
23 files changed, 118 insertions, 46 deletions
diff --git a/package.json b/package.json
index 8674c0a..cec81f1 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
3 "version": "0.5.0", 3 "version": "0.5.0",
4 "description": "A web version of mat2! ", 4 "description": "A web version of mat2! ",
5 "scripts": { 5 "scripts": {
6 "test": "echo \"Error: no test specified\" && exit 1" 6 "build:css": "postcss static/src/main.css -o static/dist/main.css"
7 }, 7 },
8 "repository": { 8 "repository": {
9 "type": "git", 9 "type": "git",
diff --git a/static/font/rubik-v12-latin-300.woff b/static/font/rubik-v12-latin-300.woff
new file mode 100644
index 0000000..ef32f2e
--- /dev/null
+++ b/static/font/rubik-v12-latin-300.woff
Binary files differ
diff --git a/static/font/rubik-v12-latin-300.woff2 b/static/font/rubik-v12-latin-300.woff2
new file mode 100644
index 0000000..f68504d
--- /dev/null
+++ b/static/font/rubik-v12-latin-300.woff2
Binary files differ
diff --git a/static/font/rubik-v12-latin-300italic.woff b/static/font/rubik-v12-latin-300italic.woff
new file mode 100644
index 0000000..3be20fd
--- /dev/null
+++ b/static/font/rubik-v12-latin-300italic.woff
Binary files differ
diff --git a/static/font/rubik-v12-latin-300italic.woff2 b/static/font/rubik-v12-latin-300italic.woff2
new file mode 100644
index 0000000..092955b
--- /dev/null
+++ b/static/font/rubik-v12-latin-300italic.woff2
Binary files differ
diff --git a/static/font/rubik-v12-latin-500.woff b/static/font/rubik-v12-latin-500.woff
new file mode 100644
index 0000000..86d1b9e
--- /dev/null
+++ b/static/font/rubik-v12-latin-500.woff
Binary files differ
diff --git a/static/font/rubik-v12-latin-500.woff2 b/static/font/rubik-v12-latin-500.woff2
new file mode 100644
index 0000000..f727e10
--- /dev/null
+++ b/static/font/rubik-v12-latin-500.woff2
Binary files differ
diff --git a/static/font/rubik-v12-latin-500italic.woff b/static/font/rubik-v12-latin-500italic.woff
new file mode 100644
index 0000000..e1a7a90
--- /dev/null
+++ b/static/font/rubik-v12-latin-500italic.woff
Binary files differ
diff --git a/static/font/rubik-v12-latin-500italic.woff2 b/static/font/rubik-v12-latin-500italic.woff2
new file mode 100644
index 0000000..7c774a8
--- /dev/null
+++ b/static/font/rubik-v12-latin-500italic.woff2
Binary files differ
diff --git a/static/font/rubik-v12-latin-600.woff b/static/font/rubik-v12-latin-600.woff
new file mode 100644
index 0000000..1cf7ecb
--- /dev/null
+++ b/static/font/rubik-v12-latin-600.woff
Binary files differ
diff --git a/static/font/rubik-v12-latin-600.woff2 b/static/font/rubik-v12-latin-600.woff2
new file mode 100644
index 0000000..913dce8
--- /dev/null
+++ b/static/font/rubik-v12-latin-600.woff2
Binary files differ
diff --git a/static/font/rubik-v12-latin-700.woff b/static/font/rubik-v12-latin-700.woff
new file mode 100644
index 0000000..4e3a22f
--- /dev/null
+++ b/static/font/rubik-v12-latin-700.woff
Binary files differ
diff --git a/static/font/rubik-v12-latin-700.woff2 b/static/font/rubik-v12-latin-700.woff2
new file mode 100644
index 0000000..830fe3d
--- /dev/null
+++ b/static/font/rubik-v12-latin-700.woff2
Binary files differ
diff --git a/static/font/rubik-v12-latin-italic.woff b/static/font/rubik-v12-latin-italic.woff
new file mode 100644
index 0000000..c06c350
--- /dev/null
+++ b/static/font/rubik-v12-latin-italic.woff
Binary files differ
diff --git a/static/font/rubik-v12-latin-italic.woff2 b/static/font/rubik-v12-latin-italic.woff2
new file mode 100644
index 0000000..bb2a4b8
--- /dev/null
+++ b/static/font/rubik-v12-latin-italic.woff2
Binary files differ
diff --git a/static/font/rubik-v12-latin-regular.woff b/static/font/rubik-v12-latin-regular.woff
new file mode 100644
index 0000000..7f013db
--- /dev/null
+++ b/static/font/rubik-v12-latin-regular.woff
Binary files differ
diff --git a/static/font/rubik-v12-latin-regular.woff2 b/static/font/rubik-v12-latin-regular.woff2
new file mode 100644
index 0000000..a9261b1
--- /dev/null
+++ b/static/font/rubik-v12-latin-regular.woff2
Binary files differ
diff --git a/static/raleway.woff2 b/static/raleway.woff2
deleted file mode 100644
index 7cb7031..0000000
--- a/static/raleway.woff2
+++ /dev/null
Binary files differ
diff --git a/static/src/main.css b/static/src/main.css
index 72e6911..1171fe3 100644
--- a/static/src/main.css
+++ b/static/src/main.css
@@ -2,18 +2,75 @@
2@tailwind components; 2@tailwind components;
3@tailwind utilities; 3@tailwind utilities;
4 4
5/* rubik-300 - latin */
5@font-face { 6@font-face {
6 font-family: 'Raleway'; 7 font-family: 'Rubik';
8 font-style: normal;
9 font-weight: 300;
10 src: local(''),
11 url('/static/font/rubik-v12-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
12 url('/static/font/rubik-v12-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
13}
14/* rubik-regular - latin */
15@font-face {
16 font-family: 'Rubik';
7 font-style: normal; 17 font-style: normal;
8 font-weight: 400; 18 font-weight: 400;
9 src: local('Raleway'), local('Raleway-Regular'), url(raleway-ext.woff2) format('woff2'); 19 src: local(''),
10 unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; 20 url('/static/font/rubik-v12-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
21 url('/static/font/rubik-v12-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
11} 22}
12 23/* rubik-500 - latin */
13@font-face { 24@font-face {
14 font-family: 'Raleway'; 25 font-family: 'Rubik';
15 font-style: normal; 26 font-style: normal;
27 font-weight: 500;
28 src: local(''),
29 url('/static/font/rubik-v12-latin-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
30 url('/static/font/rubik-v12-latin-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
31}
32/* rubik-600 - latin */
33@font-face {
34 font-family: 'Rubik';
35 font-style: normal;
36 font-weight: 600;
37 src: local(''),
38 url('/static/font/rubik-v12-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
39 url('/static/font/rubik-v12-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
40}
41/* rubik-700 - latin */
42@font-face {
43 font-family: 'Rubik';
44 font-style: normal;
45 font-weight: 700;
46 src: local(''),
47 url('/static/font/rubik-v12-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
48 url('/static/font/rubik-v12-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
49}
50/* rubik-300italic - latin */
51@font-face {
52 font-family: 'Rubik';
53 font-style: italic;
54 font-weight: 300;
55 src: local(''),
56 url('/static/font/rubik-v12-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
57 url('/static/font/rubik-v12-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
58}
59/* rubik-italic - latin */
60@font-face {
61 font-family: 'Rubik';
62 font-style: italic;
16 font-weight: 400; 63 font-weight: 400;
17 src: local('Raleway'), local('Raleway-Regular'), url(raleway.woff2) format('woff2'); 64 src: local(''),
18 unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; 65 url('/static/font/rubik-v12-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
66 url('/static/font/rubik-v12-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
19} 67}
68/* rubik-500italic - latin */
69@font-face {
70 font-family: 'Rubik';
71 font-style: italic;
72 font-weight: 500;
73 src: local(''),
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+ */
76} \ No newline at end of file
diff --git a/tailwind.config.js b/tailwind.config.js
index 74b3d31..d56edce 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -7,6 +7,8 @@ module.exports = {
7 theme: { 7 theme: {
8 extend: { 8 extend: {
9 colors: { 9 colors: {
10 transparent: 'transparent',
11 current: 'currentColor',
10 blue: { 12 blue: {
11 light: '#f4f7fb', 13 light: '#f4f7fb',
12 DEFAULT: '#99c1f1', 14 DEFAULT: '#99c1f1',
@@ -14,12 +16,10 @@ module.exports = {
14 } 16 }
15 }, 17 },
16 fontFamily: { 18 fontFamily: {
17 sans: ['Inter var', ...defaultTheme.fontFamily.sans], 19 sans: ['Rubik'],
18 }, 20 },
19 }, 21 },
20 }, 22 },
21 variants: {}, 23 variants: {},
22 plugins: [ 24 plugins: [],
23 require('@tailwindcss/forms'),
24 ],
25} 25}
diff --git a/templates/base.html b/templates/base.html
index 576f264..8d6712c 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -13,25 +13,17 @@
13</head> 13</head>
14 14
15<body class="flex flex-col h-screen justify-between"> 15<body class="flex flex-col h-screen justify-between">
16 <header class="h-20 w-full bg-blue-100 my-0 flex justify-center"> 16 <header class="h-20 w-full bg-blue-light my-0 flex justify-center">
17 <a href='.' class="mt-8"> 17 <a href='.' class="mt-8">
18 <img class='max-h-28' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo" /> 18 <img class='max-h-28' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo" />
19 </a> 19 </a>
20 </header> 20 </header>
21 21
22 22 <section class="mb-auto mt-12 pt-8">
23
24 <section class="mb-auto mt-8 pt-8">
25 {% with messages = get_flashed_messages() %} 23 {% with messages = get_flashed_messages() %}
26 {% if messages %} 24 {% if messages %}
27 {% for message in messages %} 25 {% for message in messages %}
28 <div class="text-white px-6 py-4 border-0 rounded relative mb-4 bg-red-500"> 26 <div class="text-white px-6 py-4 border-0 relative mb-4 bg-red-500">
29 <span class="text-xl inline-block mr-5 align-middle">
30 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
31 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
32 d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
33 </svg>
34 </span>
35 <span class="inline-block align-middle mr-8"> 27 <span class="inline-block align-middle mr-8">
36 {{ message }} 28 {{ message }}
37 </span> 29 </span>
diff --git a/templates/download.html b/templates/download.html
index 2313d04..77f081a 100644
--- a/templates/download.html
+++ b/templates/download.html
@@ -2,14 +2,29 @@
2 2
3{% block content %} 3{% block content %}
4<div class="grid grid-rows-1 w-50"> 4<div class="grid grid-rows-1 w-50">
5 <div class="flex justify-center"> 5 <div class="grid grid-rows-1">
6 <div class="rounded overflow-hidden shadow-lg p-4"> 6 {% if not meta_after %}
7 {% if not meta_after %}
8 <div class="px-6 py-4 grid grid-rows-1"> 7 <div class="px-6 py-4 grid grid-rows-1">
9 <h1 class="font-bold text-xl mb-2">Metadata removed</h1> 8 <div class="font-light text-center text-4xl mb-2">Cleaned Metadata</div>
10 </div> 9 </div>
10 <p class="text-gray-700 text-center text-sm text-opacity-80">
11 Successfully removed the metadata.
12 </p>
13 {% endif %}
14 {% if meta_after %}
15 <div class="px-6 py-4 grid grid-rows-1">
16 <div class="font-light text-center text-4xl mb-2">Metadata Partially Removed</div>
17 </div>
18 <p class="text-gray-700 text-center text-sm text-opacity-80">
19 Could not remove all the metadata. Consult the table below for the remaining metadata.
20 </p>
21 {% endif %}
22 </div>
23
24 <div class="flex justify-center mt-8">
25 <div class="rounded w-50 overflow-hidden shadow-lg p-4">
26 {% if not meta_after %}
11 <p class="text-gray-700 text-base text-center"> 27 <p class="text-gray-700 text-base text-center">
12 Successfully removed the metadata
13 <svg class="max-h-40 fill-current text-green-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" 28 <svg class="max-h-40 fill-current text-green-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
14 fill="currentColor"> 29 fill="currentColor">
15 <path fill-rule="evenodd" 30 <path fill-rule="evenodd"
@@ -20,11 +35,7 @@
20 {% endif %} 35 {% endif %}
21 36
22 {% if meta_after %} 37 {% if meta_after %}
23 <div class="px-6 py-4 grid grid-rows-1">
24 <h1 class="font-bold text-xl mb-2">Metadata partially removed</h1>
25 </div>
26 <p class="text-gray-700 text-base text-center"> 38 <p class="text-gray-700 text-base text-center">
27 Could not remove all the metadata
28 <svg class="max-h-40 fill-current text-yellow-600" xmlns="http://www.w3.org/2000/svg" 39 <svg class="max-h-40 fill-current text-yellow-600" xmlns="http://www.w3.org/2000/svg"
29 viewBox="0 0 20 20" fill="currentColor"> 40 viewBox="0 0 20 20" fill="currentColor">
30 <path fill-rule="evenodd" 41 <path fill-rule="evenodd"
@@ -37,9 +48,9 @@
37 48
38 <a class="uk-flex-1" href='{{ download_uri }}'> 49 <a class="uk-flex-1" href='{{ download_uri }}'>
39 <button 50 <button
40 class="w-full bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded flex justify-center" 51 class="w-full bg-blue-dark hover:bg-blue-700 text-white py-2 px-4 rounded flex justify-center"
41 > 52 >
42 <svg class="w-4 h-4 mr-2 text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> 53 <svg class="w-4 h-4 mr-2 text-white self-center" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
43 <path style="fill: white" d="M13 8V2H7v6H2l8 8 8-8h-5zM0 18h20v2H0v-2z" /> 54 <path style="fill: white" d="M13 8V2H7v6H2l8 8 8-8h-5zM0 18h20v2H0v-2z" />
44 </svg> 55 </svg>
45 <span>Download Cleaned File</span> 56 <span>Download Cleaned File</span>
@@ -52,7 +63,7 @@
52 <div class="bg-white shadow-md rounded my-6"> 63 <div class="bg-white shadow-md rounded my-6">
53 <table class="text-left w-full border-collapse"> 64 <table class="text-left w-full border-collapse">
54 <div class="px-6 py-4 grid grid-rows-1"> 65 <div class="px-6 py-4 grid grid-rows-1">
55 <h1 class="font-bold text-xl mb-2">Remaining Metadata</h1> 66 <h1 class="font-light text-center text-4xl">Remaining Metadata</h1>
56 </div> 67 </div>
57 <thead> 68 <thead>
58 <tr> 69 <tr>
diff --git a/templates/index.html b/templates/index.html
index f0268f3..addf868 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,24 +1,36 @@
1{% extends "base.html" %} 1{% extends "base.html" %}
2{% block content %} 2{% block content %}
3<div class="flex justify-center"> 3
4<div class="grid grid-rows-1">
5 <div class="font-light text-center text-4xl mb-2">Remove Metadata</div>
6 <p class="text-gray-700 text-center text-sm text-opacity-80">
7 The file you see is just the tip of the iceberg. Remove the hidden metadata.
8 </p>
9</div>
10
11<div class="flex justify-center mt-8">
4 <div class="w-50 rounded overflow-hidden shadow-lg pb-4"> 12 <div class="w-50 rounded overflow-hidden shadow-lg pb-4">
5 <div class="px-6 py-4">
6 <div class="font-bold text-xl mb-2">Remove Metadata</div>
7 <p class="text-gray-700 text-base">
8 The file you see is just the tip of the iceberg. Remove the hidden metadata.
9 </p>
10 </div>
11 <div class="px-6 pt-4 pb-2 grid grid-rows-1"> 13 <div class="px-6 pt-4 pb-2 grid grid-rows-1">
12 <form method="post" enctype="multipart/form-data" class="grid grid-rows-1"> 14 <form method="post" enctype="multipart/form-data" class="grid grid-rows-1">
13 <input type="file" name="file" id="upload_file" accept="{{ mimetypes | join(', ') }}"> 15 <input class="border rounded" type="file" name="file" id="upload_file" accept="{{ mimetypes | join(', ') }}">
14 <button class="mt-4 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded" type="submit" 16 <button
15 value="Upload">Remove Metadata</button> 17 class="w-full mt-4 bg-blue-dark hover:bg-blue-700 text-white py-2 px-4 rounded flex justify-center"
18 type="submit"
19 value="Upload"
20 >
21 <svg class="w-4 h-4 mr-2 text-white self-center" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
22 <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
23 </svg>
24 <span>
25 Remove Metadata
26 </span>
27 </button>
16 </form> 28 </form>
17 </div> 29 </div>
18 </div> 30 </div>
19</div> 31</div>
20<button 32<button
21 class="p-0 w-10 h-10 absolute sm:bottom-8 md:bottom-16 sm:right-8 md:right-16 bg-blue-300 hover:bg-blue-400 rounded-full active:shadow-lg mouse shadow transition ease-in duration-200 focus:outline-none"> 33 class="p-0 w-10 h-10 absolute bottom-8 md:bottom-16 lg:bottom-24 right-8 md:right-16 lg:right-24 bg-blue-300 hover:bg-blue-400 rounded-full active:shadow-lg mouse shadow transition ease-in duration-200 focus:outline-none">
22 <a href="/info" role="link" class="w-6 h-6 text-white inline-block font-bold"> 34 <a href="/info" role="link" class="w-6 h-6 text-white inline-block font-bold">
23 ? 35 ?
24 </a> 36 </a>