Skip to content

Commit

Permalink
Merge pull request #15 from killbotXD/officeBearers
Browse files Browse the repository at this point in the history
Office bearers
  • Loading branch information
ajatprabha authored Dec 24, 2019
2 parents febc326 + d0cc6ab commit 0824b7e
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 33 deletions.
46 changes: 16 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/#Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
v-toolbar-title.white--text
p.headline.mb-0 Login

v-card
v-card.tile
v-card-text(pt-4)
div
v-form(v-model="valid" ref="form")
Expand All @@ -18,7 +18,7 @@
required
)

v-text-field(
v-text-field(v-toolbar
outline
prepend-icon="mdi-lock"
:append-icon="showPassword ? 'mdi-eye' : 'mdi-eye-off'"
Expand Down
59 changes: 59 additions & 0 deletions src/components/OfficeBearerCard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<template lang="pug">
v-stepper(v-model="cardPage").pa-0
v-stepper-items
v-stepper-content.pa-0(step="1")
v-card(:height="avatarSize*3")
v-img(src="https://students.iitj.ac.in/static/assets/others/cover2.svg" :height="avatarSize")
v-card-text.pt-0.text-center
v-avatar.elevation-4.ma-2(:size="avatarSize" :style="{'margin-top': `-${avatarSize/2}px !important`}")
v-img(src="https://cdn2.iconfinder.com/data/icons/people-80/96/Picture1-512.png")
h2(class="black--text").font-weight-bold.mt-5 Anugrah Shukla
p.font-weight-regular.mt-2 General Secretary
v-card-actions
v-row(justify="center")
v-btn(@click="cardPage = 2" text) Details
v-icon(right) mdi-arrow-right
v-stepper-content.pa-0(step="2")
v-card(:height="avatarSize*3")
v-row
v-col
v-row
v-card-text.justify-center.text-center
h2.font-weight-medium.mb-5 About Anugrah
v-row
v-divider
v-row.justify-center
div.mt-4
a(href="tel:9610XXXXXX") +91-9610XXXXXX
v-row.justify-center
div
v-row
v-icon mdi-email
v-text.ma-2.pa-2 kumar.14@iitj.ac.in
v-row.justify-center.align-end.pa-0.ma-0.fill-height-card-back
v-divider
v-row.justify-center.mt-2.pa-0
v-btn(@click="cardPage = 1" text)
v-icon(left) mdi-arrow-left
| Back
</template>

<script>
export default {
name: "OfficeBearerCard",
props: {
avatarSize: { Type: Number }
},
data() {
return {
cardPage: 0
};
}
};
</script>

<style scoped>
.fill-height-card-back {
height: 50%;
}
</style>
2 changes: 1 addition & 1 deletion src/components/common/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
v-btn(text) Home
v-btn(text) Societies
v-btn(text) Forum
v-btn(text) People
v-btn(text :to="{name: 'office-bearers'}") People
v-spacer
</template>

Expand Down
6 changes: 6 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Login from "../views/#.vue";
import Konnekt from "../views/Konnekt";
import KonnektHome from "../components/KonnektHome";
import KonnektSearch from "../components/KonnektSearch";
import OfficeBearers from "../views/OfficeBearers";

Vue.use(VueRouter);

Expand Down Expand Up @@ -50,6 +51,11 @@ const routes = [
component: KonnektSearch
}
]
},
{
path: "/office-bearers",
name: "office-bearers",
component: OfficeBearers
}
];

Expand Down
22 changes: 22 additions & 0 deletions src/views/OfficeBearers.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template lang="pug">
v-content.justify-center(justify-center)
v-card.text-center(class="blue text-center mx-auto" max-width="800").mt-4
v-card-text(class="white--text")
h1.font-weight-regular Office Bearer
v-container
v-row
v-col(cols="12" md="4" v-for="x in 3" :key="x")
OfficeBearerCard(:avatarSize="120")
</template>

<script>
import OfficeBearerCard from "../components/OfficeBearerCard";
export default {
name: "OfficeBearers",
components: {
OfficeBearerCard
}
};
</script>

<style scoped />

0 comments on commit 0824b7e

Please # to comment.