Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about team #58

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 122 additions & 0 deletions src/components/AboutTeam.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<template>
<div class="team-area">
<div class="main-title">
Founder & Representatives
</div>
<div class="sub-title">
コミュニティーの立ち上げと統括を行っています
</div>

<div class="container">
<div v-for="member in team" :key="member.id" style="display: inline-block;">
<figure class="avatar">
<img class="avatar-img" :src="member.icon" alt="">
</figure>
<div class="member-name">
{{ member.name }}
</div>
<div class="work-for" v-html=" member.workFor " />
<div class="desc" v-html="member.desc" />

<a class="social-github" :href="member.github" target="_blank"><img class="social-icon" src="https://user-images.githubusercontent.com/12625278/94401123-10526900-01a5-11eb-9701-9d68b4e698ce.png" alt="github"></a>
<a class="social-twitter" :href="member.twitter" target="_blank"><img class="social-icon" src="https://user-images.githubusercontent.com/12625278/94402630-41339d80-01a7-11eb-9540-65cd5700eb02.png" alt="twitter"></a>
</div>
</div>
</div>
</template>

<script lang="ts">
import Vue from 'vue'
import AboutTeam from '@/data/about_team_list'

export default Vue.extend({
data () {
return {
team: AboutTeam
}
}
})
</script>

<style lang="postcss" scoped>
@import '@/assets/styles/variables';

.avatar {
flex-shrink: 0;
width: 48px;
height: 48px;
transform: translateY(-16px);

@media (min-width: 560px) {
width: 64px;
height: 64px;
transform: translateY(-24px);
}
}

.team-area{
margin-bottom: 150px;
margin-left: 21%;
}

.main-title{
font-size: 20px;
font-weight: bold;
color: black;
}

.sub-title{
margin-top: 10px;
margin-bottom: 50px;
font-size: 12px;
color: grey;
}

.container{
position: relative;
width: 300px;
height: 450px;
padding: 40px;
background: white;
box-shadow: 1px 1px 1px 1px lightgrey;
}

.avatar-img {
width: 100%;
border-radius: 50%;
box-shadow: var(--shadow-depth-3);
}

.social-github{
position: absolute;
bottom: 40px;
left: 30px;
}

.social-twitter{
position: absolute;
bottom: 40px;
left: 80px;
}

.social-icon{
width: 24px;
height: 24px;
margin: 0 15px;

}

.member-name{
margin: 10px 0;
font-size: 25px;
font-weight: bold;
}

.work-for{
}

.desc {
margin: 30px 0;
}

</style>
11 changes: 11 additions & 0 deletions src/data/about_team_list.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default [
{
id: 1,
icon: 'https://avatars0.githubusercontent.com/u/72989?s=400&u=d333c3048e3d6f8ed2a476a3564dba1fa5288b86&v=4',
name: 'Kazuya Kawauchi',
workFor: 'Engineer at <a href="https://plaid.co.jp/" style="color: #60af89" target="_blank">PLAID,INC.</a>',
desc: '<div>Vue.js日本ユーザーグループ代表。</div><div><a style="color: #60af89" href="https://github.com/kazupon/vue-i18n" target="_blank">vue-i18n</a>の開発者。</div>',
houko marked this conversation as resolved.
Show resolved Hide resolved
twitter: 'https://twitter.com/kazu_pon',
github: 'https://github.com/kazupon'
}
]
5 changes: 4 additions & 1 deletion src/pages/about/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<AppPage class="About">
<AboutHero />
<AboutDescription />
<AboutTeam />
</AppPage>
</template>

Expand All @@ -10,12 +11,14 @@ import Vue from 'vue'
import AppPage from '@/components/AppPage.vue'
import AboutHero from '@/components/AboutHero.vue'
import AboutDescription from '@/components/AboutDescription.vue'
import AboutTeam from '@/components/AboutTeam.vue'

export default Vue.extend({
components: {
AppPage,
AboutHero,
AboutDescription
AboutDescription,
AboutTeam
},

head (): object {
Expand Down