diff --git a/content/.vuepress/components/Ecosystem.vue b/content/.vuepress/components/Ecosystem.vue index 9d42192..537221d 100644 --- a/content/.vuepress/components/Ecosystem.vue +++ b/content/.vuepress/components/Ecosystem.vue @@ -1,5 +1,4 @@ diff --git a/content/.vuepress/components/EmailSubscribe.vue b/content/.vuepress/components/EmailSubscribe.vue index ca23876..59250e3 100644 --- a/content/.vuepress/components/EmailSubscribe.vue +++ b/content/.vuepress/components/EmailSubscribe.vue @@ -1,51 +1,56 @@ diff --git a/content/.vuepress/components/FeatureLinks.vue b/content/.vuepress/components/FeatureLinks.vue index 8fa078d..fc62fbe 100644 --- a/content/.vuepress/components/FeatureLinks.vue +++ b/content/.vuepress/components/FeatureLinks.vue @@ -1,5 +1,4 @@ - - diff --git a/content/.vuepress/components/MissionStatement.vue b/content/.vuepress/components/MissionStatement.vue index 09edbb7..6d32f26 100644 --- a/content/.vuepress/components/MissionStatement.vue +++ b/content/.vuepress/components/MissionStatement.vue @@ -1,15 +1,11 @@ - - + methods: { + fetchMetadata () { + let component = this; + component.jsonData = ""; + component.isLoading = true; + component.exampleCode = ` +# Example code using the daemon +curl "http://localhost:5279" --data "{ "method": "resolve", "params": { "uri": "${this.address}" } }" + `; + + this.$http.post("https://lbry.tech/forward", { + method: "resolve", + uri: this.address + }).then(response => { + component.isLoading = false; + component.jsonData = JSON.stringify(response.body, null, " "); + }).catch(error => { + component.isLoading = false; + component.jsonData = JSON.stringify(error, null, " "); + console.log("Error retrieving metadata for a claim:\n", error); + }); + }, + + chooseClaim (address) { + const component = this; + component.address = address; + component.fetchMetadata(); + }, + + goTo (page) { + EventBus.$emit("HookStepUpdate", page); + }, + + highlight (language, text) { + return hljs.highlight(language, text).value; + } + }, + + name: "Step1" + }; + diff --git a/content/.vuepress/components/Step2.vue b/content/.vuepress/components/Step2.vue index afed2f3..89204d8 100644 --- a/content/.vuepress/components/Step2.vue +++ b/content/.vuepress/components/Step2.vue @@ -1,258 +1,258 @@ diff --git a/content/.vuepress/components/Step3.vue b/content/.vuepress/components/Step3.vue index 3090dd4..ee7cfbd 100644 --- a/content/.vuepress/components/Step3.vue +++ b/content/.vuepress/components/Step3.vue @@ -1,6 +1,5 @@ - - diff --git a/content/.vuepress/config.js b/content/.vuepress/config.js index 2aec224..b6821e6 100644 --- a/content/.vuepress/config.js +++ b/content/.vuepress/config.js @@ -8,7 +8,7 @@ module.exports = { ], themeConfig: { repo: 'lbryio/lbry.tech', - docsBranch: 'master', + docsBranch: 'master/content', editLinkText: 'Edit this page on Github' }, ga: 'UA-60403362-1', diff --git a/content/.vuepress/media/svg/down.svg b/content/.vuepress/media/svg/down.svg new file mode 100644 index 0000000..0196217 --- /dev/null +++ b/content/.vuepress/media/svg/down.svg @@ -0,0 +1,3 @@ + + + diff --git a/content/.vuepress/scss/pages/_hook.scss b/content/.vuepress/scss/pages/_hook.scss deleted file mode 100644 index fb02a59..0000000 --- a/content/.vuepress/scss/pages/_hook.scss +++ /dev/null @@ -1,362 +0,0 @@ -.hook { - .loader { - animation: spin 2s linear infinite; - border-radius: 50%; - border-style: solid; - border-top-color: $teal; - - &:not(.small) { - width: 4rem; height: 4rem; - - border-width: 6px; - margin-right: auto; - margin-left: auto; - } - - &.small { - width: 2rem; height: 2rem; - border-width: 3px; - } - } -} - - - -.hook__navigation { - background-color: $black; - color: $white; - font-size: 1rem; - padding-top: 1rem; - padding-bottom: 1rem; - text-align: center; -} - -.hook__navigation__step { - @media (min-width: 501px) { - display: inline-block; - - &:not(:last-of-type) { - margin-right: 1rem; - } - - span { - width: 3rem; height: 3rem; - - display: block; - font-size: 1.25rem; - line-height: 3rem; - } - } - - @media (max-width: 500px) { - display: block; - - span { - width: 1rem; height: 1rem; - - display: inline-block; - font-size: 0.7rem; - line-height: 0.9rem; - position: relative; - top: 2px; - vertical-align: top; - } - } - - &:not(.active) { - span { - border-color: rgba($white, 0.1); - } - } - - &.active { - color: $teal; - - span { - border-color: rgba($teal, 0.3); - } - } - - span { - border: 1px solid; - border-radius: 50%; - margin: 0 auto 0.5rem; - } -} - - - -.hook__page { - @extend .page__content; -} - -.hook__page__hero { - margin-bottom: 2rem; - border-bottom: 1px solid rgba($black, 0.05); - - h1, p { - text-align: center; - } -} - -.hook__page__hero__claim, -.hook__page__hero__support { - margin-bottom: 3rem; padding-left: 1rem; - - background-color: $white; - border: 1px solid rgba($gray, 0.7); - font-size: 1rem; - - @media (min-width: 501px) { - margin-right: auto; - margin-left: auto; - width: 80%; - } - - &::after { - @include clearfix; - } - - input, a { - line-height: 3rem; - } - - span { - color: rgba($black, 0.3); - } - - a { - border-left: 1px solid rgba($gray, 0.7); - color: $white; - float: right; - position: relative; - text-align: center; - transition: all 0.2s; - width: 6rem; - - &::after { - width: calc(100% + 2px); height: calc(100% + 2px); - top: -1px; left: -1px; - - border: 1px solid; - content: ""; - position: absolute; - transition: inherit; - } - - &:not(:hover) { - background-color: $black; - - &::after { - border-color: $black; - } - } - - &:hover { - background-color: $teal; - - &::after { - border-color: $teal; - } - } - } -} - -.hook__page__hero__claim input { - width: calc(100% - 10rem); -} - -.hook__page__hero__support { - input[type=number] { - width: 3rem; - } - - input[type=text] { - width: calc(100% - 11.5rem); - } - - span { - line-height: 3rem; - } - - a { - margin-left: 0.5rem; - } -} - - - -.hook__page__content::after { - @include clearfix; -} - -.hook__page__content__card { - margin-bottom: 1rem; padding: 1rem; - - img { - margin-bottom: 0.5rem; - } - - @media (min-width: 501px) { - float: left; - vertical-align: top; - width: 50%; - } - - @media (max-width: 500px) { - width: 100%; - } -} - -.hook__page__content__meme { - padding-right: 1rem; - padding-left: 1rem; - - @media (min-width: 701px) { - width: 50%; - } - - @media (max-width: 700px) { - width: 100%; - } - - &.left { - margin-bottom: 2rem; - - #base-image { - height: 0; - visibility: hidden; - } - - .thumbnail { - width: 5rem; - height: 5rem; - object-fit: cover; - margin: 0 1rem 1rem 0; - border: 4px solid white; - border-radius: 1px; - &.selected { - border-color: black; - } - } - - canvas { - width: 100%; height: 100%; - background-color: rgba($teal, 0.3); - } - } - - h2 { - text-transform: uppercase; - &.metadata { - margin-top: 3rem; - } - } - - fieldset { - border: none; - - &:not(:last-of-type) { - margin-bottom: 1rem; - } - } - - label { - color: rgba($black, 0.3); - display: block; - font-size: 0.8rem; - font-weight: 600; - letter-spacing: 0.05rem; - margin-bottom: 0.025rem; - text-transform: uppercase; - width: 100%; - } - - input, - textarea, - select { - @media (min-width: 901px) { - &:not([type="checkbox"]):not([type="submit"]) { - font-size: 1.25rem; - } - } - - @media (max-width: 900px) { - &:not([type="checkbox"]):not([type="submit"]) { - font-size: 1.05rem; - } - } - - &:not([type="checkbox"]):not([type="file"]):not([type="submit"]) { - border-bottom: 2px solid; - padding-bottom: 0.15rem; - transition: all 0.2s; - width: 100%; - } - - &:not([type="file"]):not([type="submit"]) { - &:not(:hover):not(:active) { - border-color: $black; - } - - &:hover, - &:active { - border-color: $teal; - } - } - - &[type="checkbox"] { - width: 1.25rem; height: 1.25rem; - - border: 2px solid; - margin-right: 0.5rem; - position: relative; - top: 0.35rem; - - &::after { - width: 100%; height: 100%; - - content: "✓"; - font-size: 1.5rem; - line-height: 1rem; - position: absolute; - } - - &:not(:checked)::after { - color: transparent; - } - - &:checked::after { - color: $teal; - } - } - } - #meme-top-line, - #meme-bottom-line { - text-transform: uppercase; - } -} - -.hook__page__content__meme__uploader { - @extend .__button-black; - text-align: center; - width: 11rem; - - > div:first-of-type { - width: 100%; height: 100%; - top: 0; left: 0; - - position: absolute; - } - - input { - top: 0; left: 0; - bottom: 0; right: 0; - - cursor: pointer; - opacity: 0; - position: absolute; - width: 100%; - z-index: 10; - } -} diff --git a/content/.vuepress/scss/pages/_page.scss b/content/.vuepress/scss/pages/_page.scss index 68ef270..bd4ce8b 100644 --- a/content/.vuepress/scss/pages/_page.scss +++ b/content/.vuepress/scss/pages/_page.scss @@ -222,7 +222,7 @@ } } - a:not(.button):not(.feature-link__title) { + a:not(.button):not(.__button-black):not(.feature-link__title):not(.newsletter-standalone__submit) { color: $teal; position: relative; diff --git a/content/.vuepress/scss/partials/_modal.scss b/content/.vuepress/scss/partials/_modal.scss new file mode 100644 index 0000000..0c05b1b --- /dev/null +++ b/content/.vuepress/scss/partials/_modal.scss @@ -0,0 +1,51 @@ +.modal { + @include center; + top: 0; left: 0; + bottom: 0; right: 0; + + background-color: rgba($black, 0.5); + position: fixed; + z-index: 10; + + h3 { + @media (min-width: 901px) { + font-size: 1.5rem; + margin-bottom: 0.25rem; + } + + @media (max-width: 900px) { + font-size: 1.25rem; + } + } + + p { + margin-bottom: 1rem; + + @media (min-width: 901px) { + font-size: 1.15rem; + line-height: 1.33; + } + + @media (max-width: 900px) { + font-size: 1.05rem; + line-height: 1.55; + } + + a { + color: $teal; + } + } +} + +.modal-wrap { + background-color: $white; + padding: 2rem 1.5rem; + + @media (min-width: 501px) { + width: 500px; + } + + @media (max-width: 500px) { + width: 100%; + } +}