Skip to content

Commit

Permalink
Revert "fix(refactor): remove home page repeated template code"
Browse files Browse the repository at this point in the history
This reverts commit 355d382.
  • Loading branch information
pugakn committed Feb 23, 2023
1 parent 355d382 commit d70b27e
Showing 1 changed file with 45 additions and 21 deletions.
66 changes: 45 additions & 21 deletions src/pages/dho/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,28 +220,52 @@ q-page.page-home
unelevated
)

.row
.row.q-col-gutter-md.q-mt-xxs
.col-12.col-md-6.col-lg-2
metric-link(:amount="activeAssignmentsCount" title="Active assignments" icon="fas fa-coins" :link="{ link: 'search', query: { q: '', filter: 'Active', type: '4' } }").full-width
.col-12.col-md-6.col-lg-2
metric-link(:amount="activeProposalsCount" link="proposals" title="New Proposals" ).full-height.full-width
.col-12.col-md-6.col-lg-2
metric-link(:amount="activeBadgesCount" title="Active badges" icon="fas fa-coins" :link="{ link: 'organization/assets', params: { type: 'badge' } }").full-width
.col-12.col-md-6.col-lg-2
metric-link(:amount="activeMembersCount" link="members" title="Active Members").full-height.full-width
.col-12.col-md-6(v-if="!$q.screen.gt.md")
new-members(:members="newMembers").full-width
.flex-break(v-if="$q.screen.gt.md")
.col-12.col-md-6.col-lg-4
support-widget(:documentationURL="daoSettings.documentationURL" :socialChat="daoSettings.socialChat" :documentationButtonText="daoSettings.documentationButtonText").full-height.full-width
.col-12.col-lg-4
how-it-works.full-height
.col-3
.row.absolute.full-width.q-pl-xxxl.q-pt-lg(v-if="$q.screen.gt.md")
.col-lg-4.offset-8
new-members(:members="newMembers").full-width
//- Desktop
.row.full-width.q-mt-md(v-if="$q.screen.gt.md")
.col-9.q-gutter-md
.row.full-width.q-gutter-x-md
metric-link.col(:amount="activeAssignmentsCount" title="Active assignments" :link="{ link: 'search', query: { q: '', filter: 'Active', type: '4' } }")
metric-link.col(:amount="activeBadgesCount" title="Active badges" :link="{ link: 'organization/assets', params: { type: 'badge' } }")
metric-link.col(:amount="activeProposalsCount" title="Active proposals" link="proposals")
metric-link.col(:amount="activeMembersCount" title="Active members" link="members")
.row.full-width.q-gutter-x-md
how-it-works.col
support-widget.col(:documentationURL="daoSettings.documentationURL" :socialChat="daoSettings.socialChat" :documentationButtonText="daoSettings.documentationButtonText")
.col-3.q-ml-md
new-members(:members="newMembers")

//- Tablet
.row.full-width(v-else-if="$q.screen.gt.sm").q-mt-md
.col-6
.row.q-gutter-y-md.q-mr-xs
metric-link.col(:amount="activeAssignmentsCount" title="Active assignments" icon="fas fa-coins" :link="{ link: 'search', query: { q: '', filter: 'Active', type: '4' } }").full-width
metric-link(:amount="activeBadgesCount" title="Active badges" icon="fas fa-coins" :link="{ link: 'organization/assets', params: { type: 'badge' } }").full-width
new-members(:members="newMembers").full-width
.col-6
.row.q-gutter-y-md.q-ml-xs
metric-link(:amount="activeProposalsCount" link="proposals" title="New Proposals" ).full-height.full-width
metric-link(:amount="activeMembersCount" link="members" title="Active Members").full-height.full-width
support-widget(:documentationURL="daoSettings.documentationURL" :socialChat="daoSettings.socialChat" :documentationButtonText="daoSettings.documentationButtonText").full-height.full-width
.col-12.q-mt-md
how-it-works.full-height

//- Mobile
.row.full-width(v-else)
.col-12
.row.q-mt-md
metric-link.full-width(:amount="activeAssignmentsCount" title="Active assignments" icon="fas fa-coins" :link="{ link: 'search', query: { q: 'Assignment', filter: 'Active', type: '6' } }")
.row.q-mt-md
metric-link.full-width(:amount="activeBadgesCount" title="Active badges" icon="fas fa-coins" :link="{ link: 'organization/assets', params: { type: 'badge' } }")
.row.q-mt-md
metric-link.full-width(:amount="activeProposalsCount" link="proposals" title="New Proposals" ).full-height
.row.q-mt-md
metric-link.full-width(:amount="activeMembersCount" link="members" title="Active Members").full-height
.row.q-mt-md
new-members.full-width(:members="newMembers")
.row.q-mt-md
how-it-works.full-width
.row.q-mt-md
support-widget.full-width(:documentationURL="daoSettings.documentationURL" :socialChat="daoSettings.socialChat" :documentationButtonText="daoSettings.documentationButtonText")
</template>

<style lang="stylus" scoped>
Expand Down

0 comments on commit d70b27e

Please sign in to comment.