Skip to content

Commit

Permalink
feat: instagram
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmlzhou committed Nov 10, 2019
1 parent 1e90c98 commit 07a7bb9
Show file tree
Hide file tree
Showing 27 changed files with 1,171 additions and 0 deletions.
58 changes: 58 additions & 0 deletions instagram/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<template>
<div id="app" :class="{ 'camera-mode': isCameraOpen }">
<router-view />
</div>
</template>

<script>
import { mapState } from 'vuex'
export default {
computed: {
...mapState(['isCameraOpen'])
}
}
</script>

<style>
@import url('https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css');
* {
margin: 0;
padding: 0;
}
a {
text-decoration: inherit;
}
ul,
ol {
list-style: none;
}
h1,
h2,
h3,
h4 {
font: inherit;
}
input,
select,
button {
font: inherit;
}
html,
body {
height: 100%;
-webkit-user-select: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#app {
}
#app.camera-mode {
height: 100%;
overflow: hidden;
}
</style>
17 changes: 17 additions & 0 deletions instagram/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# instagram

### Compiles and hot-reloads for development

```
npm run serve
```

### Compiles and minifies for production

```
npm run build
```

### Customize configuration

See [Configuration Reference](https://cli.vuejs.org/config/).
Binary file added instagram/assets/face.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added instagram/assets/face1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added instagram/assets/face2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added instagram/assets/face3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added instagram/assets/face4.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added instagram/assets/feed1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added instagram/assets/feed2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added instagram/assets/feed3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added instagram/assets/instagram-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added instagram/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions instagram/components/AppBar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<template>
<div class="app-bar">
<span class="app-bar_l" @click="$emit('left')">
<i :class="['fa', `fa-${left}`]"></i>
</span>
<h1>{{ title }}</h1>
<span class="app-bar_r" @click="$emit('right')">
<i :class="['fa', `fa-${right}`]"></i>
</span>
</div>
</template>

<script>
export default {
props: {
title: {
type: String,
default: ''
},
left: {
type: String,
default: 'chevron-left'
},
right: {
type: String,
default: 'ellipsis-v'
}
}
}
</script>

<style lang="scss">
.app-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
padding-top: 20px;
height: 68px;
background-color: white;
font-size: 15px;
z-index: 10;
h1 {
display: flex;
justify-content: center;
flex: 1;
height: 26px;
font-size: 0;
background-image: url(../assets/instagram-logo.jpg);
background-size: 40%;
background-position: bottom;
background-repeat: no-repeat;
}
span {
padding: 0 20px;
}
}
</style>
30 changes: 30 additions & 0 deletions instagram/components/BottomTabs.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<template>
<div class="bottom-tabs">
<span><i class="fa fa-home"/></span>
<span><i class="fa fa-search"/></span>
<span><i class="fa fa-instagram"/></span>
<span><i class="fa fa-heart-o"/></span>
<span><i class="fa fa-user-o"/></span>
</div>
</template>

<style lang="scss">
.bottom-tabs {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
display: flex;
border-top: 1px solid #eee;
height: 64px;
background-color: white;
font-size: 20px;
}
.bottom-tabs span {
display: flex;
flex: 1;
justify-content: center;
align-items: center;
}
</style>
Loading

0 comments on commit 07a7bb9

Please sign in to comment.