Skip to content

Commit cdc2ad9

Browse files
committed
add some component symbols
update ui active page
1 parent 2d98154 commit cdc2ad9

File tree

3 files changed

+45
-29
lines changed

3 files changed

+45
-29
lines changed

src/components/elements/Component.vue renamed to src/components/elements/ComponentElement.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<script>
1010
export default {
11-
name: "Component",
11+
name: "ComponentElement",
1212
props:[
1313
'icon',
1414
'title'
@@ -27,9 +27,13 @@ export default {
2727
height: 70px;
2828
vertical-align: top;
2929
}
30+
.component:hover{
31+
background: rgba(0, 0, 0, 0.2);
32+
cursor: pointer;
33+
}
3034
.ico{
31-
font-size: 35px;
32-
width: 35px;
35+
font-size: 30px;
36+
width: 30px;
3337
display: block;
3438
margin:7px auto;
3539
}
Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,47 @@
11
<template>
2-
<div id="page">
2+
<div id="page" :class="active?'active':''">
33
<div id="page-content">
44
<slot></slot>
55
</div>
66
<h3 id="page-title">
7-
{{title}}
7+
{{ title }}
88
</h3>
99
</div>
1010
</template>
1111

1212
<script>
1313
export default {
1414
name: "PageElement",
15-
props:[
16-
'title'
15+
props: [
16+
'title',
17+
'active'
1718
]
1819
}
1920
</script>
2021

2122
<style scoped>
22-
#page{
23-
display: inline-block;
24-
text-align: center;
25-
padding: 10px;
26-
}
27-
#page-content{
28-
width: 50px;
29-
height: 80px;
30-
background: #ffffff;
31-
color: #000000;
32-
border: 1px solid rgba(0,0,0,0.15);
33-
margin: auto;
34-
margin-bottom: 5px;
35-
cursor: pointer;
36-
}
37-
#page-title{
38-
font-size: 15px;
39-
}
23+
#page {
24+
display: inline-block;
25+
text-align: center;
26+
padding: 10px;
27+
}
28+
29+
#page-content {
30+
width: 50px;
31+
height: 80px;
32+
background: #ffffff;
33+
color: #000000;
34+
border: 1px solid rgba(0, 0, 0, 0.15);
35+
margin: auto;
36+
margin-bottom: 5px;
37+
cursor: pointer;
38+
}
39+
40+
#page-title {
41+
font-size: 15px;
42+
}
43+
44+
.active {
45+
background: rgba(0, 0, 0, 0.2);
46+
}
4047
</style>

src/components/pages/MainAppPage.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,29 @@
1313
<i class="fa fa-cubes"></i>
1414
</h2>
1515
<compo title="Container" icon="far fa-square"></compo>
16+
<compo title="AppBar" icon="far fa-window-maximize"></compo>
1617
<compo title="Image" icon="far fa-image"></compo>
1718
<compo title="Icon" icon="far fa-smile"></compo>
1819
<compo title="Text" icon="fas fa-font"></compo>
1920
<compo title="Column" icon="fas fa-bars"></compo>
2021
<compo title="Row" icon="fas fa-bars fa-rotate-90"></compo>
21-
<compo title="AppBar" icon="far fa-window-maximize"></compo>
2222
<compo title="Scaffold" icon="fa fa-vector-square"></compo>
23+
<compo title="Nav" icon="far fa-window-maximize fa-rotate-180"></compo>
2324
<compo title="List" icon="fa fa-list"></compo>
2425
<compo title="Dropdown" icon="fa fa-prescription-bottle"></compo>
2526
<compo title="Text" icon="fab fa-yoast"></compo>
2627
<compo title="Button" icon="far fa-plus-square"></compo>
28+
<compo title="Toggle" icon="fa fa-toggle-on"></compo>
2729
<compo title="Menu" icon="fa fa-list-alt"></compo>
2830
<compo title="Grid" icon="fa fa-th"></compo>
2931
<compo title="Preloader" icon="fa fa-spinner"></compo>
3032
<compo title="Calendar" icon="fa fa-calendar-alt"></compo>
3133
<compo title="DatePicker" icon="fa fa-calendar-check"></compo>
3234
<compo title="Map" icon="fa fa-map"></compo>
3335
<compo title="Location" icon="fa fa-map-marker-alt"></compo>
36+
<compo title="Rate" icon="fa fa-star"></compo>
37+
<compo title="Slider" icon="fa fa-ellipsis-h"></compo>
38+
<compo title="Timer" icon="fa fa-stopwatch"></compo>
3439
<compo title="Image Picker" icon="fa fa-file-image"></compo>
3540
<compo title="File Picker" icon="fa fa-folder-open"></compo>
3641
</div>
@@ -44,10 +49,10 @@
4449
</div>
4550
<div id="pages">
4651
<div class="container">
47-
<page title="page title here">
52+
<page title="page title here" :active="true">
4853
hello 1
4954
</page>
50-
<page title="page title 2 here">
55+
<page title="page title 2 here" >
5156
hello 2
5257
</page>
5358
<i class="fa fa-plus-circle" id="page-add"></i>
@@ -59,7 +64,7 @@
5964
<script>
6065
import page from '../elements/PageElement';
6166
import property from '../elements/PropertyElement';
62-
import compo from '../elements/Component';
67+
import compo from '../elements/ComponentElement';
6368
import jQuery from 'jquery';
6469
6570
require('jquery.nicescroll/dist/jquery.nicescroll.min');

0 commit comments

Comments
 (0)