Skip to content

Commit

Permalink
Merge pull request #220 from omerskywalker/pastSupporters-inline-tabs
Browse files Browse the repository at this point in the history
moved past supporters tab to be inline with others #212
  • Loading branch information
pavlenex committed May 7, 2024
2 parents f22e652 + 7cfaea0 commit 2dd6219
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
12 changes: 12 additions & 0 deletions src/.vuepress/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,15 @@ li a[href="/specification/00-Abstract/"] {
.ytEmbed iframe[src] {
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;
}
}
23 changes: 16 additions & 7 deletions src/.vuepress/theme/layouts/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
</h2>

<Tabs
class="configTabs"
:tabs="data.configurationTabs"
:selected="selectedConfigurationTab"
@tab-selected="selectedConfigurationTab = $event"
Expand Down Expand Up @@ -173,13 +174,8 @@

<!-- Supporters category selection -->
<Tabs
:tabs="data.supportersTabs"
:selected="selectedSupportersTab"
@tab-selected="selectedSupportersTab = $event"
/>

<Tabs
:tabs="data.pastSupportersTabs"
class="supportersTabs"
:tabs="combinedSupportersTabs"
:selected="selectedSupportersTab"
@tab-selected="selectedSupportersTab = $event"
/>
Expand Down Expand Up @@ -292,6 +288,7 @@ export default {
computed: {
data() {
console.log(this.$page.frontmatter)
return this.$page.frontmatter;
},
displayedSupporters() {
Expand All @@ -301,6 +298,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: {
Expand Down
2 changes: 1 addition & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2dd6219

Please sign in to comment.