From 12913c152b3188652e04dcd65b5aed389840f8a0 Mon Sep 17 00:00:00 2001 From: Omer Siddiqui Date: Sun, 5 May 2024 14:30:02 -0500 Subject: [PATCH 1/4] moved past supporters tab to be inline with others --- src/.vuepress/theme/layouts/Home.vue | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/.vuepress/theme/layouts/Home.vue b/src/.vuepress/theme/layouts/Home.vue index 30d5ff7..a128e87 100644 --- a/src/.vuepress/theme/layouts/Home.vue +++ b/src/.vuepress/theme/layouts/Home.vue @@ -173,13 +173,7 @@ - - @@ -292,6 +286,7 @@ export default { computed: { data() { + console.log(this.$page.frontmatter) return this.$page.frontmatter; }, displayedSupporters() { @@ -301,6 +296,18 @@ export default { this.selectedSupportersTab.supporters.includes(value) ); }, + combinedSupportersTabs() { + const combinedTabs = [ + ...this.data.supportersTabs, + ...this.data.pastSupportersTabs.map(tab => { + return { + ...tab, + name: tab.name + }; + }) + ]; + return combinedTabs; + }, }, methods: { From 43903523e0eaa82c74da94b26730d355e3d3c1c0 Mon Sep 17 00:00:00 2001 From: Omer Siddiqui Date: Mon, 6 May 2024 22:50:10 -0500 Subject: [PATCH 2/4] reduced font-size for inline supportTabs to fit in mobile layout --- src/.vuepress/styles/index.styl | 6 ++++++ src/.vuepress/theme/layouts/Home.vue | 1 + 2 files changed, 7 insertions(+) diff --git a/src/.vuepress/styles/index.styl b/src/.vuepress/styles/index.styl index 0bd5112..44bc5d1 100755 --- a/src/.vuepress/styles/index.styl +++ b/src/.vuepress/styles/index.styl @@ -231,3 +231,9 @@ li a[href="/specification/00-Abstract/"] { .ytEmbed iframe[src] { display: block; } + +@media (max-width: 520px) { + .supportersTabs > div > div > nav > a.text-sm { + font-size: 0.83rem !important; + } +} \ No newline at end of file diff --git a/src/.vuepress/theme/layouts/Home.vue b/src/.vuepress/theme/layouts/Home.vue index a128e87..4bbad8b 100644 --- a/src/.vuepress/theme/layouts/Home.vue +++ b/src/.vuepress/theme/layouts/Home.vue @@ -173,6 +173,7 @@ Date: Mon, 6 May 2024 22:51:08 -0500 Subject: [PATCH 3/4] formatted tabs to standardize the capitalization for consistency --- src/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.md b/src/index.md index 527be51..712d910 100644 --- a/src/index.md +++ b/src/index.md @@ -64,7 +64,7 @@ specificationAuthorsImages: supportersTitle: Support for Stratum V2 supportersText1: Let’s make Stratum V2 the new standard. Show material support or indicate your approval of the protocol direction. supportersTabs: - - name: All contributors + - name: All Contributors value: all-contributors supporters: - braiins From 7cfaea0efc3d2f0a2bac8d6c05d69aa9a271020c Mon Sep 17 00:00:00 2001 From: Omer Siddiqui Date: Mon, 6 May 2024 22:55:44 -0500 Subject: [PATCH 4/4] added padding to config tabs to optimize usability in mobile layout --- src/.vuepress/styles/index.styl | 6 ++++++ src/.vuepress/theme/layouts/Home.vue | 1 + 2 files changed, 7 insertions(+) diff --git a/src/.vuepress/styles/index.styl b/src/.vuepress/styles/index.styl index 44bc5d1..40e563f 100755 --- a/src/.vuepress/styles/index.styl +++ b/src/.vuepress/styles/index.styl @@ -232,8 +232,14 @@ li a[href="/specification/00-Abstract/"] { display: block; } +// mobile styles @media (max-width: 520px) { + .supportersTabs > div > div > nav > a.text-sm { font-size: 0.83rem !important; } + + .configTabs > div > div > nav > a.text-sm { + padding: 10px 14px; + } } \ No newline at end of file diff --git a/src/.vuepress/theme/layouts/Home.vue b/src/.vuepress/theme/layouts/Home.vue index 4bbad8b..8d9c13e 100644 --- a/src/.vuepress/theme/layouts/Home.vue +++ b/src/.vuepress/theme/layouts/Home.vue @@ -54,6 +54,7 @@