21
21
class =" cssContainerText"
22
22
>
23
23
CSS Container</p >
24
-
25
-
26
24
<vue-draggable-resizable
27
25
class-name =" component-box"
28
26
v-for =" componentData in activeRouteArray"
53
51
z-layer =" 0"
54
52
name =" edit_note"
55
53
class =" compNoteLogo"
56
- @click =" handleAddNotes" />
54
+ @click =" handleAddNotes"
55
+ />
57
56
58
- <div v-for =" element in this.componentMap[componentData.componentName].htmlList" :key =" element.id+ new Date()" :style =" [{'background-color': componentData.color}, {'border': '5px'}]" >
57
+ <div v-for =" element in this.componentMap[componentData.componentName].htmlList" :key =" element.id+ new Date()" >
58
+ <div v-if =" element.text === 'button'"
59
+ class =" htmlButton"
60
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '70%'},
61
+ element.y !== 0 ? {'left': element.y} : {'left': '60%'},
62
+ element.w !== 0 ? {'width': element.w} : {'width': '25%'},
63
+ element.h !== 0 ? {'height' : element.h} : {'height' : '10%'},
64
+ {'background-color': componentData.color}]" >
65
+ <p class =" innerHtmlText" >{{element.text}}</p >
66
+ </div >
59
67
<div v-if =" element.text === 'div'"
60
- class =" htmlDiv"
61
- :style =" [element.x !== 0 ? {'top': element.x} : {'top': '50%'},
62
- element.y !== 0 ? {'width': element.y} : {'left': '10%'},
63
- element.w !== 0 ? {'width': element.w} : {'width': '80%'},
64
- element.h !== 0 ? {'height' : element.h} : {'height' : '40%'}
65
- ]"
66
- >{{this.activeComponent}}</div >
68
+ class =" htmlDiv"
69
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '50%'},
70
+ element.y !== 0 ? {'left': element.y} : {'left': '10%'},
71
+ element.w !== 0 ? {'width': element.w} : {'width': '80%'},
72
+ element.h !== 0 ? {'height' : element.h} : {'height' : '40%'},
73
+ {'background-color': componentData.color}]"
74
+ >
75
+ <p class =" innerHtmlText" style =" font-size : 3em " >{{element.text}}</p >
76
+ </div >
67
77
<div v-if =" element.text === 'footer'" class =" htmlFooter" ></div >
78
+ <div v-if =" element.text === 'h1'"
79
+ class =" htmlH1"
80
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '10%'},
81
+ element.y !== 0 ? {'left': element.y} : {'left': '10%'},
82
+ element.w !== 0 ? {'width': element.w} : {'width': '80%'},
83
+ element.h !== 0 ? {'height' : element.h} : {'height' : '20%'},
84
+ {'background-color': componentData.color}]"
85
+ >
86
+ <p class =" innerHtmlText" style =" font-size : 3em " >Lorem Ipsum</p >
87
+ </div >
88
+ <div v-if =" element.text === 'h2'"
89
+ class =" htmlH2"
90
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '15%'},
91
+ element.y !== 0 ? {'left': element.y} : {'left': '15%'},
92
+ element.w !== 0 ? {'width': element.w} : {'width': '70%'},
93
+ element.h !== 0 ? {'height' : element.h} : {'height' : '15%'},
94
+ {'background-color': componentData.color}]"
95
+ >
96
+ <p class =" innerHtmlText" style =" font-size : 2.5em " >dolor sit amet</p >
97
+ </div >
98
+ <div v-if =" element.text === 'h3'"
99
+ class =" htmlH3"
100
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '18%'},
101
+ element.y !== 0 ? {'left': element.y} : {'left': '18%'},
102
+ element.w !== 0 ? {'width': element.w} : {'width': '60%'},
103
+ element.h !== 0 ? {'height' : element.h} : {'height' : '12%'},
104
+ {'background-color': componentData.color}]"
105
+ >
106
+ <p class =" innerHtmlText" style =" font-size : 2.2em " >consectetur adipiscing elit</p >
107
+ </div >
108
+ <div v-if =" element.text === 'h4'"
109
+ class =" htmlH4"
110
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '20%'},
111
+ element.y !== 0 ? {'left': element.y} : {'left': '20%'},
112
+ element.w !== 0 ? {'width': element.w} : {'width': '60%'},
113
+ element.h !== 0 ? {'height' : element.h} : {'height' : '10%'},
114
+ {'background-color': componentData.color}]"
115
+ >
116
+ <p class =" innerHtmlText" style =" font-size : 2em " >sed do eiusmod tempor incididunt</p >
117
+ </div >
118
+ <div v-if =" element.text === 'h5'"
119
+ class =" htmlH5"
120
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '20%'},
121
+ element.y !== 0 ? {'left': element.y} : {'left': '20%'},
122
+ element.w !== 0 ? {'width': element.w} : {'width': '60%'},
123
+ element.h !== 0 ? {'height' : element.h} : {'height' : '10%'},
124
+ {'background-color': componentData.color}]"
125
+ >
126
+ <p class =" innerHtmlText" style =" font-size : 2em " >ut labore et dolore magna aliqua</p >
127
+ </div >
128
+ <div v-if =" element.text === 'h6'"
129
+ class =" htmlH6"
130
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '20%'},
131
+ element.y !== 0 ? {'left': element.y} : {'left': '20%'},
132
+ element.w !== 0 ? {'width': element.w} : {'width': '60%'},
133
+ element.h !== 0 ? {'height' : element.h} : {'height' : '10%'},
134
+ {'background-color': componentData.color}]"
135
+ >
136
+ <p class =" innerHtmlText" style =" font-size : 2em " >Ut enim ad minim veniam</p >
137
+ </div >
68
138
<div v-if =" element.text === 'navbar'" class =" htmlNavbar" ></div >
69
- <div v-if =" element.text === 'h1'" class =" htmlH1" >Lorem Ipsum </div >
70
139
<div v-if =" element.text === 'form'" class =" htmlForm" ></div >
71
- <div v-if =" element.text === 'h2'" class =" htmlH2" >dolor sit amet</div >
72
- <div v-if =" element.text === 'h3'" class =" htmlH3" >consectetur adipiscing elit</div >
73
- <div v-if =" element.text === 'h4'" class =" htmlH4" >sed do eiusmod tempor incididunt</div >
74
- <div v-if =" element.text === 'h5'" class =" htmlH5" >ut labore et dolore magna aliqua</div >
75
- <div v-if =" element.text === 'h6'" class =" htmlH6" >Ut enim ad minim veniam</div >
76
140
<div v-if =" element.text === 'header'" class =" htmlHeader" ></div >
77
141
<div v-if =" element.text === 'img'" class =" htmlImg" ></div >
78
142
<input v-if =" element.text === 'input'" class =" htmlInput" />
79
143
<div v-if =" element.text === 'list'" class =" htmlList" ></div >
80
144
<div v-if =" element.text === 'list-ol'" class =" htmlList-Ol" ></div >
81
145
<div v-if =" element.text === 'list-ul'" class =" htmlList-Ul" ></div >
82
146
<p v-if =" element.text === 'paragraph'" class =" htmlP" >Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p >
83
- <!-- {{this.routes[activeRoute][0].htmlList}} -->
84
147
</div >
85
-
86
148
<q-icon v-if =" componentData.componentName === this.activeComponent"
87
149
size =" 25px"
88
150
z-layer =" 0"
@@ -928,33 +990,26 @@ color:black;
928
990
929
991
.htmlButton {
930
992
position: absolute;
931
- top: 50 % ;
932
- left: 30 % ;
933
- height: 30px ;
934
- width: 10 % ;
935
993
margin: .5em ;
936
- background- color: $secondary;
994
+ border- style: solid;
995
+ border: 2em ;
937
996
}
938
997
939
998
.htmlDiv {
940
999
position: absolute;
941
- top: 30 % ;
942
- left: 6 % ;
943
- height: 30 % ;
944
- width: 80 % ;
945
1000
margin: .5em ;
946
- background- color: $secondary;
947
1001
border- radius: 1.5 % ;
1002
+ border- style: solid;
948
1003
}
949
1004
950
1005
.htmlFooter {
951
1006
position: absolute;
952
1007
width: 100 % ;
953
- background- color: $primary;
954
1008
height: 10 % ;
955
1009
top: 90 % ;
956
1010
z- index: - 1 ;
957
1011
border- radius: 1.5 % ;
1012
+ background- color: $primary;
958
1013
}
959
1014
960
1015
.htmlForm {
@@ -963,34 +1018,38 @@ color:black;
963
1018
964
1019
.htmlH1 {
965
1020
position: absolute;
966
- background- color: $primary;
967
1021
color: $menutext;
968
1022
font- weight: bolder ! important;
969
- font- size: 2 .5em ;
970
- width: 30 % ;
971
- height: 10 % ;
972
- top: 45 % ;
973
- margin- left: 10 % ;
974
1023
}
975
1024
976
1025
.htmlH2 {
977
- background- color: rgba ($secondary, .42 );
1026
+ position: absolute;
1027
+ color: $menutext;
1028
+ font- weight: bolder ! important;
978
1029
}
979
1030
980
1031
.htmlH3 {
981
- background- color: rgba ($secondary, .42 );
1032
+ position: absolute;
1033
+ color: $menutext;
1034
+ font- weight: bolder ! important;
982
1035
}
983
1036
984
1037
.htmlH4 {
985
- background- color: rgba ($secondary, .42 );
1038
+ position: absolute;
1039
+ color: $menutext;
1040
+ font- weight: bolder ! important;
986
1041
}
987
1042
988
1043
.htmlH5 {
989
- background- color: rgba ($secondary, .42 );
1044
+ position: absolute;
1045
+ color: $menutext;
1046
+ font- weight: bolder ! important;
990
1047
}
991
1048
992
1049
.htmlH6 {
993
- background- color: rgba ($secondary, .42 );
1050
+ position: absolute;
1051
+ color: $menutext;
1052
+ font- weight: bolder ! important;
994
1053
}
995
1054
996
1055
// .htmlHeader{
@@ -1025,6 +1084,12 @@ color:black;
1025
1084
background- color: rgba ($secondary, .42 );
1026
1085
}
1027
1086
1087
+ .innerHtmlText {
1088
+ position: absolute;
1089
+ text- align: center;
1090
+ opacity: 0.5 ;
1091
+ }
1092
+
1028
1093
.htmlNavbar {
1029
1094
position: absolute;
1030
1095
width: 100 % ;
@@ -1045,7 +1110,6 @@ color:black;
1045
1110
white- space: nowrap;
1046
1111
}
1047
1112
1048
-
1049
1113
.colorPicker {
1050
1114
color: black;
1051
1115
background: rgba (177 , 171 , 171 , 0.562 );
0 commit comments