Skip to content

Commit cac2cc6

Browse files
moved simplified contents to app component
1 parent c248d99 commit cac2cc6

File tree

4 files changed

+30
-17
lines changed

4 files changed

+30
-17
lines changed

src/app/app.component.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
<a href="https://simplified.courses" target="_blank" class="logo">
2+
<img src="assets/simplified-logo.png" alt="">
3+
</a>
14
<sc-purchase-form></sc-purchase-form>
5+
<a class="course" href="https://www.simplified.courses/complex-angular-template-driven-forms">
6+
<img src="assets/course.jpeg" alt="Advanced Template-driven forms course">
7+
</a>

src/app/app.component.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
:host {
2+
width: 100%;
3+
display: flex;
4+
flex-direction: column;
5+
padding-top: 20px;
6+
align-items: center;
7+
}
8+
9+
.logo {
10+
img {
11+
width: 100px;
12+
}
13+
14+
margin-bottom: 20px;
15+
}
16+
17+
.course {
18+
img {
19+
width: 500px;
20+
}
21+
}

src/app/components/purchase-form/purchase-form.component.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<a href="https://simplified.courses" target="_blank" class="logo">
2-
<img src="assets/simplified-logo.png" alt="">
3-
</a>
1+
42
<br>
53
<h3>Test it out</h3>
64
<ul>
@@ -157,9 +155,7 @@ <h3>Shipping Address</h3>
157155

158156
</form>
159157
<br>
160-
<a class="course" href="https://www.simplified.courses/complex-angular-template-driven-forms">
161-
<img src="assets/course.jpeg" alt="Advanced Template-driven forms course">
162-
</a>
158+
163159
<h3>The value of the form</h3>
164160
<pre id="json-data">
165161
{{vm.formValue|json}}

src/app/components/purchase-form/purchase-form.component.scss

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,5 @@
44
flex-direction: column;
55
padding-top: 20px;
66
align-items:center;
7-
.logo {
8-
img {
9-
width: 100px;
10-
}
11-
margin-bottom: 20px;
12-
}
13-
.course {
14-
img {
15-
width: 500px;
16-
}
17-
}
7+
188
}

0 commit comments

Comments
 (0)