From f70ffe5cb065283e0d098642483a1d11218411c2 Mon Sep 17 00:00:00 2001 From: Hendrik Eeckhaut Date: Thu, 12 Oct 2023 14:10:42 +0200 Subject: [PATCH] Added tailwindcss + use yew-icons instead of (online) font-awesome --- Cargo.toml | 6 ++++++ index.html | 5 ++--- src/main.rs | 8 +++++--- styles.css | 6 +++++- tailwind.config.js | 12 ++++++++++++ 5 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 tailwind.config.js diff --git a/Cargo.toml b/Cargo.toml index b73b888..5577847 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,12 @@ elliptic-curve = { version = "0.13.5", features = ["pkcs8"] } webpki-roots = "0.25.2" wasm-logger = "0.2.0" web-time = "0.2" +yew_icons = { version = "0.7.3", features = [ + # https://finnbear.github.io/yew_icons/ + "FontAwesomeSolidUpload", + "BootstrapCloudUploadFill", +] } + # tlsn-core = { git = "https://github.com/tlsnotary/tlsn", branch = "dev" } [dependencies.tlsn-core] diff --git a/index.html b/index.html index 6bed493..ac8f35a 100644 --- a/index.html +++ b/index.html @@ -3,11 +3,10 @@ - Yew • File Upload + TLSNotary • Proof visualizer - - + diff --git a/src/main.rs b/src/main.rs index 27ab612..1d37b65 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,6 +9,7 @@ use web_time::Duration; use web_sys::{DragEvent, Event, FileList, HtmlInputElement}; use yew::html::TargetCast; use yew::{html, Callback, Component, Context, Html}; +use yew_icons::{Icon, IconId}; use tlsn_core::proof::{SessionProof, TlsProof}; use tlsn_core::NotarizedSession; @@ -80,7 +81,7 @@ impl Component for App { fn view(&self, ctx: &Context) -> Html { html! {
-

{ "Upload Your TLSNotary Proof" }

+

{ "Upload Your TLSNotary Proof" }