53
53
class =" compNoteLogo"
54
54
@click =" handleAddNotes"
55
55
/>
56
-
56
+ <!-- Rendering HTML Elements for each Component -->
57
57
<div v-for =" element in this.componentMap[componentData.componentName].htmlList" :key =" element.id+ new Date()" >
58
58
<div v-if =" element.text === 'button'"
59
59
class =" htmlButton"
76
76
</div >
77
77
<div v-if =" element.text === 'footer'" class =" htmlFooter" ></div >
78
78
<div v-if =" element.text === 'h1'"
79
- class =" htmlH1 "
79
+ class =" htmlHead "
80
80
:style =" [element.x !== 0 ? {'top': element.x} : {'top': '10%'},
81
81
element.y !== 0 ? {'left': element.y} : {'left': '10%'},
82
82
element.w !== 0 ? {'width': element.w} : {'width': '80%'},
86
86
<p class =" innerHtmlText" style =" font-size : 3em " >Lorem Ipsum</p >
87
87
</div >
88
88
<div v-if =" element.text === 'h2'"
89
- class =" htmlH2 "
89
+ class =" htmlHead "
90
90
:style =" [element.x !== 0 ? {'top': element.x} : {'top': '15%'},
91
91
element.y !== 0 ? {'left': element.y} : {'left': '15%'},
92
92
element.w !== 0 ? {'width': element.w} : {'width': '70%'},
96
96
<p class =" innerHtmlText" style =" font-size : 2.5em " >dolor sit amet</p >
97
97
</div >
98
98
<div v-if =" element.text === 'h3'"
99
- class =" htmlH3 "
99
+ class =" htmlHead "
100
100
:style =" [element.x !== 0 ? {'top': element.x} : {'top': '18%'},
101
101
element.y !== 0 ? {'left': element.y} : {'left': '18%'},
102
102
element.w !== 0 ? {'width': element.w} : {'width': '60%'},
106
106
<p class =" innerHtmlText" style =" font-size : 2.2em " >consectetur adipiscing elit</p >
107
107
</div >
108
108
<div v-if =" element.text === 'h4'"
109
- class =" htmlH4 "
109
+ class =" htmlHead "
110
110
:style =" [element.x !== 0 ? {'top': element.x} : {'top': '20%'},
111
111
element.y !== 0 ? {'left': element.y} : {'left': '20%'},
112
112
element.w !== 0 ? {'width': element.w} : {'width': '60%'},
116
116
<p class =" innerHtmlText" style =" font-size : 2em " >sed do eiusmod tempor incididunt</p >
117
117
</div >
118
118
<div v-if =" element.text === 'h5'"
119
- class =" htmlH5 "
119
+ class =" htmlHead "
120
120
:style =" [element.x !== 0 ? {'top': element.x} : {'top': '20%'},
121
121
element.y !== 0 ? {'left': element.y} : {'left': '20%'},
122
122
element.w !== 0 ? {'width': element.w} : {'width': '60%'},
126
126
<p class =" innerHtmlText" style =" font-size : 2em " >ut labore et dolore magna aliqua</p >
127
127
</div >
128
128
<div v-if =" element.text === 'h6'"
129
- class =" htmlH6 "
129
+ class =" htmlHead "
130
130
:style =" [element.x !== 0 ? {'top': element.x} : {'top': '20%'},
131
131
element.y !== 0 ? {'left': element.y} : {'left': '20%'},
132
132
element.w !== 0 ? {'width': element.w} : {'width': '60%'},
136
136
<p class =" innerHtmlText" style =" font-size : 2em " >Ut enim ad minim veniam</p >
137
137
</div >
138
138
<div v-if =" element.text === 'navbar'" class =" htmlNavbar" ></div >
139
- <div v-if =" element.text === 'form'" class =" htmlForm" ></div >
139
+ <div v-if =" element.text === 'form'"
140
+ class =" htmlForm"
141
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '50%'},
142
+ element.y !== 0 ? {'left': element.y} : {'left': '10%'},
143
+ element.w !== 0 ? {'width': element.w} : {'width': '80%'},
144
+ element.h !== 0 ? {'height' : element.h} : {'height' : '40%'},
145
+ {'background-color': componentData.color}]"
146
+ >
147
+ <p class =" innerHtmlText" style =" font-size : 3em " >{{element.text}}</p >
148
+ </div >
140
149
<div v-if =" element.text === 'header'" class =" htmlHeader" ></div >
141
- <div v-if =" element.text === 'img'" class =" htmlImg" ></div >
150
+ <div v-if =" element.text === 'img'"
151
+ class =" htmlImg"
152
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '50%'},
153
+ element.y !== 0 ? {'left': element.y} : {'left': '10%'},
154
+ element.w !== 0 ? {'width': element.w} : {'width': '80%'},
155
+ element.h !== 0 ? {'height' : element.h} : {'height' : '40%'},
156
+ {'background-color': componentData.color}]"
157
+ >
158
+ <p class =" innerHtmlText" style =" font-size : 3em " >{{element.text}}</p >
159
+ </div >
142
160
<input v-if =" element.text === 'input'" class =" htmlInput" />
143
161
<div v-if =" element.text === 'list'" class =" htmlList" ></div >
144
- <div v-if =" element.text === 'list-ol'" class =" htmlList-Ol" ></div >
145
- <div v-if =" element.text === 'list-ul'" class =" htmlList-Ul" ></div >
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 >
162
+ <div v-if =" element.text === 'list-ol'"
163
+ class =" htmlList-Ol"
164
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '50%'},
165
+ element.y !== 0 ? {'left': element.y} : {'left': '10%'},
166
+ element.w !== 0 ? {'width': element.w} : {'width': '80%'},
167
+ element.h !== 0 ? {'height' : element.h} : {'height' : '40%'},
168
+ {'background-color': componentData.color}]"
169
+ >
170
+ </div >
171
+ <div v-if =" element.text === 'list-ul'"
172
+ class =" htmlList-Ul"
173
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '50%'},
174
+ element.y !== 0 ? {'left': element.y} : {'left': '10%'},
175
+ element.w !== 0 ? {'width': element.w} : {'width': '80%'},
176
+ element.h !== 0 ? {'height' : element.h} : {'height' : '40%'},
177
+ {'background-color': componentData.color}]"
178
+ >
179
+ </div >
180
+ <div v-if =" element.text === 'paragraph'"
181
+ class =" htmlParagraph"
182
+ :style =" [element.x !== 0 ? {'top': element.x} : {'top': '50%'},
183
+ element.y !== 0 ? {'left': element.y} : {'left': '10%'},
184
+ element.w !== 0 ? {'width': element.w} : {'width': '80%'},
185
+ element.h !== 0 ? {'height' : element.h} : {'height' : '40%'},
186
+ {'background-color': componentData.color}]"
187
+ >
188
+ <p >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 >
189
+ </div >
147
190
</div >
148
191
<q-icon v-if =" componentData.componentName === this.activeComponent"
149
192
size =" 25px"
@@ -1016,31 +1059,7 @@ color:black;
1016
1059
background- color: rgba ($secondary, .42 );
1017
1060
}
1018
1061
1019
- .htmlH1 {
1020
- position: absolute;
1021
- color: $menutext;
1022
- font- weight: bolder ! important;
1023
- }
1024
-
1025
- .htmlH2 {
1026
- position: absolute;
1027
- color: $menutext;
1028
- font- weight: bolder ! important;
1029
- }
1030
-
1031
- .htmlH3 {
1032
- position: absolute;
1033
- color: $menutext;
1034
- font- weight: bolder ! important;
1035
- }
1036
-
1037
- .htmlH4 {
1038
- position: absolute;
1039
- color: $menutext;
1040
- font- weight: bolder ! important;
1041
- }
1042
-
1043
- .htmlH5 {
1062
+ .htmlHead {
1044
1063
position: absolute;
1045
1064
color: $menutext;
1046
1065
font- weight: bolder ! important;
@@ -1052,36 +1071,38 @@ color:black;
1052
1071
font- weight: bolder ! important;
1053
1072
}
1054
1073
1055
- // .htmlHeader{
1056
- // background-color: rgba($secondary, .42);
1057
- // }
1058
-
1059
1074
.htmlImg {
1060
- background- color: rgba ($secondary, .42 );
1075
+ position: absolute;
1076
+ color: $menutext;
1061
1077
}
1062
1078
1063
1079
.htmlInput {
1064
1080
background- color: rgba ($secondary, .42 );
1065
1081
}
1066
1082
1067
1083
.htmlLink {
1068
- background- color: rgba ($secondary, .42 );
1084
+ position: absolute;
1085
+ color: blue;
1069
1086
}
1070
1087
1071
1088
.htmlList {
1072
- background- color: rgba ($secondary, .42 );
1089
+ position: absolute;
1090
+ color: $menutext;
1073
1091
}
1074
1092
1075
1093
.htmlList - ol {
1076
- background- color: rgba ($secondary, .42 );
1094
+ position: absolute;
1095
+ color: $menutext;
1077
1096
}
1078
1097
1079
1098
.htmlList - ul{
1080
- background- color: rgba ($secondary, .42 );
1099
+ position: absolute;
1100
+ color: $menutext;
1081
1101
}
1082
1102
1083
1103
.htmlParagraph {
1084
- background- color: rgba ($secondary, .42 );
1104
+ position: absolute;
1105
+ color: $menutext;
1085
1106
}
1086
1107
1087
1108
.innerHtmlText {
0 commit comments