From 2391ecded6e7343e98a56480fb6e0bc369520a67 Mon Sep 17 00:00:00 2001 From: Kiro Bondarev Date: Mon, 18 Jul 2022 01:16:04 -0400 Subject: [PATCH 1/2] Add webln-v4v partial to the episode page (WIP) --- themes/jb/layouts/episode/single.html | 3 ++ .../layouts/partials/episode/webln-v4v.html | 34 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 themes/jb/layouts/partials/episode/webln-v4v.html diff --git a/themes/jb/layouts/episode/single.html b/themes/jb/layouts/episode/single.html index d1a0ddaae..6af4f88c4 100644 --- a/themes/jb/layouts/episode/single.html +++ b/themes/jb/layouts/episode/single.html @@ -24,6 +24,9 @@

{{ .Title }} {{ partial "episode/podverseplayer.html" . }} {{ partial "episode/support.html" . }} + + {{ partial "episode/webln-v4v.html" . }} + {{ .Content }} diff --git a/themes/jb/layouts/partials/episode/webln-v4v.html b/themes/jb/layouts/partials/episode/webln-v4v.html new file mode 100644 index 000000000..5c1f2ee47 --- /dev/null +++ b/themes/jb/layouts/partials/episode/webln-v4v.html @@ -0,0 +1,34 @@ +{{/* https://github.com/podverse/webln-v4v/blob/main/docs/quick-start.md#customize-the-webcomponent-attributes-mostly-optional */}} + + +{{/* TODO: Maybe download this into themes/jb/assests/js/libs */}} + + + +
+ +
+ + From 33f92cdf9f61b2669e710c1bb98feebecf5187a1 Mon Sep 17 00:00:00 2001 From: Kiro Bondarev Date: Mon, 18 Jul 2022 01:26:04 -0400 Subject: [PATCH 2/2] Customize the style of the webln-v4v form --- themes/jb/assets/css/main.sass | 1 + themes/jb/assets/css/webln-v4v.sass | 47 +++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 themes/jb/assets/css/webln-v4v.sass diff --git a/themes/jb/assets/css/main.sass b/themes/jb/assets/css/main.sass index 943df07a0..f596f4e90 100644 --- a/themes/jb/assets/css/main.sass +++ b/themes/jb/assets/css/main.sass @@ -2,5 +2,6 @@ @import "libs/bulma/bulma" @import "components" @import "libs" +@import "webln-v4v" #wrapper padding-top: 4rem diff --git a/themes/jb/assets/css/webln-v4v.sass b/themes/jb/assets/css/webln-v4v.sass new file mode 100644 index 000000000..0dd0379c8 --- /dev/null +++ b/themes/jb/assets/css/webln-v4v.sass @@ -0,0 +1,47 @@ +// WebLN-V4V +// For reference: https://github.com/podverse/webln-v4v/blob/main/app/styles/sample-variable-overrides.scss +// These overrides attempt to use as many Bulma variable as possible, to make it +// match the theme nicely. + +.webln-v4v-container + margin: 24px 0; + display: flex; + justify-content: center; + +webln-v4v + --webln-background-color: #{$body-background-color}; + --webln-text: #{$text}; + --webln-font-family: #{$family-sans-serif}; + --webln-max-width: 500px; + + --webln-link-color: rgba(255,255,255,.7); + --webln-link-color-active: rgba(255,255,255,.7); + --webln-link-color-visited: rgba(255,255,255,.7); + --webln-link-color-hover: #fff; + + --webln-text-input-background-color: #363636; + --webln-input-border: #2d2d2d; + --webln-input-placeholder: rgb(194 194 194 / 40%); + + --webln-button-border-radius: #{$radius}; + --webln-button-font-size: #{$size-normal}; + --webln-button-padding-v: #{$button-padding-vertical}; + --webln-button-padding-h: #{$button-padding-horizontal}; + + --webln-button-primary-background-color: #ffc300; + --webln-button-primary-text-color: #{$button-color}; + --webln-button-primary-background-color-hover: #ffd44a; + + --webln-button-secondary-background-color: #{$grey-dark}; + --webln-button-secondary-text-color: #{$button-color}; + --webln-button-secondary-background-color-hover: #{$grey}; + + --webln-button-focus-box-shadow: none; + --webln-button-focus-ouline-color: #fff; + + --webln-button-disabled-background-color: #{$grey-light}; + --webln-button-disabled-color: #{$grey-lighter}; + + --webln-table-border-color: #{$grey-lighter}; + --webln-error-outline-color: #{$danger}; + --webln-error-text-color: #{$danger}; \ No newline at end of file