Skip to content

Commit

Permalink
profile area, some transitions there
Browse files Browse the repository at this point in the history
  • Loading branch information
joesaraceno committed Jan 8, 2019
1 parent 03604ad commit 28a509f
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 7 deletions.
32 changes: 26 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
<template>
<div id="app">
<app-nav></app-nav>
<div class="main"></div>
<div class="main">
<div class="profile-wrapper">
<transition name="slide-fade" appear>
<app-profile-pic></app-profile-pic>
</transition>
<app-profile-text></app-profile-text>
</div>
</div>
<app-footer></app-footer>
</div>
</template>

<script>
import AppNav from './components/AppNav.vue';
import AppFooter from './components/AppFooter.vue';
import AppProfilePic from './components/AppProfilePic.vue';
import AppProfileText from './components/AppProfileText.vue';
export default {
name: 'app',
data () {
return {
}
},
components: {
'app-nav': AppNav,
'app-footer': AppFooter,
'app-profile-pic': AppProfilePic,
'app-profile-text': AppProfileText,
}
Expand Down Expand Up @@ -46,10 +53,23 @@ ul {
}
.main {
flex: 1 0 auto;
padding: 56px 200px 0;
padding: 58px 200px 0;
.filler {
font-size: 20px;
padding: 50px 0;
}
.slide-fade-enter-active {
transition: all 1s ease-out;
}
.slide-fade-enter {
transform: translateX(-100%);
opacity: 0;
}
.profile-wrapper {
padding-top: 140px;
width: 100%;
display: flex;
justify-content: space-between;
}
}
</style>
Binary file added src/assets/joe-saraceno.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/AppNavItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ export default {
<style lang="scss" scoped>
.nav-item-wrapper {
width: 100px;
padding: 0 32px;
a {
color: #1b1d1f;
font-weight: bold;
&:after {
transition: visibility 0.4s, opacity 0.4s ease-in;
transition: visibility 0.3s, opacity 0.3s ease-in-out;
visibility: visible;
opacity: 0;
content: "";
Expand Down
15 changes: 15 additions & 0 deletions src/components/AppProfilePic.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<img class="profile-pic" src="../assets/joe-saraceno.jpg" alt="">
</template>
<script>
export default {
name: 'AppProfilePic',
}
</script>
<style lang="scss" scoped>
.profile-pic {
width: 256px;
height: 256px;
border-radius: 50%;
}
</style>
49 changes: 49 additions & 0 deletions src/components/AppProfileText.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<template>
<ul class="profile-text-list">
<li class="profile-text-item" v-for="item in list" :key="item.id">
<h3 class="heading">{{ item.heading }}</h3>
<p class="content">{{ item.content }}</p>
</li>
</ul>
</template>
<script>
export default {
name: 'AppProfileText',
data() {
return {
list: [
{
id: 0,
heading: 'Joe Saraceno',
content: 'Web developer'
},
{
id: 1,
heading: 'Skills include',
content: 'New frameworks, full stack'
},
{
id: 2,
heading: 'Reach out',
content: 'I\'m available for hire'
},
]
}
}
}
</script>
<style lang="scss" scoped>
.profile-text-list {
margin-top: 0;
.profile-text-item {
.heading {
margin-top: 0;
padding-bottom: 8px;
border-bottom: 1px solid grey;
}
.content {
font-style: italic;
}
}
}
</style>

0 comments on commit 28a509f

Please sign in to comment.