Skip to content

Commit 3070acc

Browse files
Merge pull request #17 from oslabs-beta/megan/tutorial
Tutorial styling
2 parents d90045a + 0e55308 commit 3070acc

File tree

17 files changed

+162
-124
lines changed

17 files changed

+162
-124
lines changed

src/components/ComponentDisplay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export default {
470470
}
471471
.active {
472472
background-color: $accent;
473-
border: 1px dashed rgb(227, 203, 71);
473+
border: 1px dashed $accent;
474474
}
475475
.btn {
476476
font-size: 25px;

src/components/dashboard_items/Dashboard.vue

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Description:
77

88
<template>
99
<span v-if="showTutorial === false">
10-
<q-card id="dashboard-cards" class="bord" >
10+
<q-card id="dashboard-cards" >
1111
<q-tabs
1212
v-model="tab"
1313
class="bg-subaccent text-white"
@@ -24,7 +24,7 @@ Description:
2424
<q-tab name="routes" label="Routes" id="label-text"
2525
></q-tab>
2626
</q-tabs>
27-
<q-tab-panels v-model="tab" animated class="html-bg text-white">
27+
<q-tab-panels v-model="tab" animated>
2828
<q-tab-panel name="detail">
2929
<ComponentDetails />
3030
</q-tab-panel>
@@ -120,9 +120,6 @@ export default {
120120
</script>
121121

122122
<style lang="scss" scoped>
123-
i {
124-
font-size: 11px;
125-
}
126123
127124
.home-sidebar {
128125
padding: 1rem;
@@ -149,14 +146,14 @@ i {
149146
}
150147
151148
.q-tab-panel {
152-
/* // matchs the code editor bg */
149+
/* // matches the code editor bg */
153150
background: $subprimary;
154151
}
155152
156153
// changes the length of the tab panels
157154
.q-tab-panels {
158155
padding: 0px !important;
159-
// border-top: 3px solid black;
156+
background: $subprimary;
160157
}
161158
162159
.q-tabs {
@@ -174,17 +171,9 @@ i {
174171
border-radius: 0px;
175172
background: $subprimary;
176173
}
177-
.html-bg {
178-
/* // give html background color of grey */
179-
background-color: #202122;
180-
}
181174
182175
.inner-div {
183176
height: 100%;
184177
}
185178
186-
// .bord {
187-
// border-left: 3px solid black;
188-
// border-right: 3px solid black;
189-
// }
190179
</style>

src/components/dashboard_items/GetStarted.vue

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<q-card id="dashboard-cards" class="board" >
2+
<q-card id="dashboard-cards" class="sidebar-border" >
33
<q-tabs
44
v-model="tutorialPage"
55
class="bg-subaccent text-white"
@@ -13,25 +13,22 @@
1313
name="landing"
1414
label="Welcome to Overvue"
1515
id="label-text"
16-
style="border-right: 3px solid black"
1716
>
1817
</q-tab>
1918
<q-tab
2019
name="basics"
2120
label="Basic Functions"
2221
id="label-text"
23-
style="border-right: 3px solid black"
2422
>
2523
</q-tab>
2624
<q-tab
2725
name="advanced"
2826
label="Advanced Functions"
2927
id="label-text"
30-
style="border-right: 3px solid black"
3128
>
3229
</q-tab>
3330
</q-tabs>
34-
<q-tab-panels v-model="tutorialPage" animated class="html-bg text-white">
31+
<q-tab-panels v-model="tutorialPage" animated>
3532
<q-tab-panel name="landing">
3633
<Landing @nextTab="tutorialPage = 'basics'"/>
3734
</q-tab-panel>
@@ -66,17 +63,6 @@ export default {
6663
</script>
6764

6865
<style lang="scss" scoped>
69-
i {
70-
font-size: 11px;
71-
}
72-
73-
.home-sidebar {
74-
margin: 1rem;
75-
justify-content: center;
76-
border-radius: 5px;
77-
padding: 0px;
78-
background: $subsecondary;
79-
}
8066
8167
.q-btn {
8268
font-size: 8px;
@@ -110,35 +96,18 @@ i {
11096
11197
.q-tab-panels {
11298
padding: 0px !important;
113-
border-top: 3px solid black;
99+
background: $subprimary;
114100
}
115101
116102
.q-tabs {
117-
background: #11120f;
118-
}
119-
120-
.toolbar-background {
121-
background: black;
122-
}
123-
124-
#dashboard-cards {
125-
display: flex;
126-
flex-direction: column;
127-
height: 100%;
128-
border-radius: 0px;
129-
background: #737578;
130-
}
131-
.html-bg {
132-
/* // give html background color of grey */
133-
background-color: #202122;
103+
background: $subprimary;
134104
}
135105
136106
.inner-div {
137107
height: 100%;
138108
}
139109
140-
.board {
110+
.sidebar-border {
141111
border-left: 3px solid black;
142-
border-right: 3px solid black;
143112
}
144113
</style>

src/components/dashboard_items/RouteDisplay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Includes functionality to:
88
<div class="route-display">
99
<q-input
1010
@keyup.enter="handleEnterKeyPress"
11-
color="menutext"
11+
color="white"
1212
dark
1313
outlined
1414
bottom-slots
Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<template>
22
<!--Typescript option, mock image?, nested HTML elements, import component/limitations -->
3-
<p>Advanced Functions Here!</p>
4-
<q-btn
5-
id="tut-btn"
6-
color="secondary"
7-
label="Get Started with OverVue"
8-
@click="toggleTutorial"
9-
/>
3+
<section id="advancedFunctions">
4+
<h6 class="tutorialHeading">Advanced Functions Here!</h6>
5+
<p class="tutorialContent">Some fancier functionality here</p>
6+
<q-btn
7+
class="tut-btn"
8+
color="secondary"
9+
label="Get Started with OverVue"
10+
@click="toggleTutorial"
11+
/>
12+
</section>
1013
</template>
1114

1215
<script>
@@ -20,9 +23,25 @@ export default {
2023
</script>
2124

2225
<style scoped>
23-
#tut-btn {
24-
height: 15px;
25-
margin: 0 0.75rem;
26+
#advancedFunctions{
27+
display: flex;
28+
flex-direction: column;
29+
justify-content: center;
30+
align-items: center;
31+
}
32+
33+
.tutorialHeading {
34+
margin: .75rem;
35+
}
36+
37+
.tutorialContent {
38+
margin: .75rem;
39+
}
40+
41+
.tut-btn {
42+
margin: 0.75rem;
2643
width: 50%;
44+
min-height: 42px;
45+
height: auto;
2746
}
2847
</style>

src/components/dashboard_items/tutorial/BasicFunctions.vue

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<template>
22
<!--Basic functionality here, add component, copy/paste, undo/redo, add html, saving, loading, exporting-->
3-
Basic Functions Here!
3+
<section id="basicFunctions">
4+
<h6 class="tutorialHeading">Basic Functions Here!</h6>
5+
<p class="tutorialContent">Explain some basic functionality here</p>
46
<q-btn
5-
id="tut-btn"
7+
class="tut-btn"
68
color="secondary"
79
label="Advanced Functionality"
810
@click="nextTab"
911
/>
12+
</section>
1013
</template>
1114

1215
<script>
@@ -24,9 +27,25 @@ export default {
2427
</script>
2528

2629
<style scoped>
27-
#tut-btn {
28-
height: 15px;
29-
margin: 0 0.75rem;
30+
#basicFunctions{
31+
display: flex;
32+
flex-direction: column;
33+
justify-content: center;
34+
align-items: center;
35+
}
36+
37+
.tutorialHeading {
38+
margin: .75rem;
39+
}
40+
41+
.tutorialContent {
42+
margin: .75rem;
43+
}
44+
45+
.tut-btn {
46+
margin: 0.75rem;
3047
width: 50%;
48+
min-height: 42px;
49+
height: auto;
3150
}
3251
</style>
Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<template>
22
<!--Landing page-->
3-
Welcome to OverVue!
3+
<section id="welcomeTab">
4+
<h6 class="tutorialHeading">Welcome to OverVue!</h6>
45
<q-btn
5-
id="tut-btn"
6+
class="tut-btn"
67
color="secondary"
78
label="Learn More"
89
@click="nextTab"
910
/>
1011
<q-btn
11-
id="tut-btn"
12-
color="secondary"
12+
class="tut-btn"
13+
id="closeTutorialButton"
1314
label="Close Tutorial"
1415
@click="toggleTutorial"
1516
/>
17+
</section>
1618
</template>
1719

1820
<script>
@@ -28,12 +30,32 @@ export default {
2830
}
2931
</script>
3032

31-
<style scoped>
33+
<style lang="scss" scoped>
34+
#welcomeTab{
35+
display: flex;
36+
flex-direction: column;
37+
justify-content: center;
38+
align-items: center;
39+
}
40+
.tutorialHeading {
41+
margin: .75rem;
42+
}
3243
33-
#tut-btn {
34-
height: 15px;
35-
margin: 0 0.75rem;
44+
.tutorialContent {
45+
margin: .75rem;
46+
}
47+
48+
.tut-btn {
49+
margin: 0.75rem;
3650
width: 50%;
51+
min-height: 42px;
52+
height: auto;
53+
}
54+
55+
#closeTutorialButton {
56+
background-color: $subprimary;
57+
color: $menutext;
58+
border: 1px solid $menutext;
3759
}
3860
3961
</style>

src/components/home_sidebar_items/ComponentTab/AddProps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<q-input
44
@keyup.enter="createNewProp(textProps)"
5-
color="menutext"
5+
color="white"
66
dark
77
outlined
88
bottom-slots

src/components/home_sidebar_items/ComponentTab/ComponentActions.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,12 @@ export default {
116116
<style lang="scss" scoped>
117117
.selection-container {
118118
padding: 30px 0;
119-
}
119+
}
120+
121+
.component-container{
122+
display: flex;
123+
flex-direction: row;
124+
justify-content: space-between;
125+
align-items: center;
126+
}
120127
</style>

src/components/home_sidebar_items/ComponentTab/ComponentState.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,11 @@ export default {
116116
.selection-container {
117117
padding: 30px 0;
118118
}
119+
120+
.component-container{
121+
display: flex;
122+
flex-direction: row;
123+
justify-content: space-between;
124+
align-items: center;
125+
}
119126
</style>

0 commit comments

Comments
 (0)