diff --git a/aio/content/examples/router/e2e/src/app.e2e-spec.ts b/aio/content/examples/router/e2e/src/app.e2e-spec.ts index ae174e549e..3405699e20 100644 --- a/aio/content/examples/router/e2e/src/app.e2e-spec.ts +++ b/aio/content/examples/router/e2e/src/app.e2e-spec.ts @@ -9,36 +9,36 @@ describe('Router', () => { beforeAll(() => browser.get('')); function getPageStruct() { - const hrefEles = element.all(by.css('app-root > nav a')); - const crisisDetail = element.all(by.css('app-root > div > app-crisis-center > app-crisis-list > app-crisis-detail > div')).first(); - const heroDetail = element(by.css('app-root > div > app-hero-detail')); + const hrefEles = element.all(by.css('nav a')); + const crisisDetail = element.all(by.css('app-crisis-center > app-crisis-list > app-crisis-detail > div')).first(); + const heroDetail = element(by.css('app-hero-detail')); return { hrefs: hrefEles, - activeHref: element(by.css('app-root > nav a.active')), + activeHref: element(by.css('nav a.active')), crisisHref: hrefEles.get(0), - crisisList: element.all(by.css('app-root > div > app-crisis-center > app-crisis-list li')), + crisisList: element.all(by.css('app-crisis-center app-crisis-list li')), crisisDetail, crisisDetailTitle: crisisDetail.element(by.xpath('*[1]')), heroesHref: hrefEles.get(1), - heroesList: element.all(by.css('app-root > div > app-hero-list li')), + heroesList: element.all(by.css('app-hero-list li')), heroDetail, heroDetailTitle: heroDetail.element(by.xpath('*[2]')), adminHref: hrefEles.get(2), - adminPage: element(by.css('app-root > div > app-admin')), - adminPreloadList: element.all(by.css('app-root > div > app-admin > app-admin-dashboard > ul > li')), + adminPage: element(by.css('app-admin')), + adminPreloadList: element.all(by.css('app-admin > app-admin-dashboard > ul > li')), loginHref: hrefEles.get(3), - loginButton: element.all(by.css('app-root > div > app-login > p > button')), + loginButton: element.all(by.css('app-login > p > button')), contactHref: hrefEles.get(4), contactCancelButton: element.all(by.buttonText('Cancel')), - primaryOutlet: element.all(by.css('app-root > div > app-hero-list')), - secondaryOutlet: element.all(by.css('app-root > app-compose-message')) + primaryOutlet: element.all(by.css('app-hero-list')), + secondaryOutlet: element.all(by.css('app-compose-message')) }; } diff --git a/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.1.html b/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.1.html index 754a262154..02a0be66a6 100644 --- a/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.1.html +++ b/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.1.html @@ -1 +1 @@ -

Dashboard

\ No newline at end of file +

Dashboard

diff --git a/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.2.html b/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.2.html index 9fedba9793..70bcaeb1d3 100644 --- a/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.2.html +++ b/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.2.html @@ -1,5 +1,5 @@ -

Dashboard

+

Dashboard

Session ID: {{ sessionId | async }}

-

Token: {{ token | async }}

\ No newline at end of file +

Token: {{ token | async }}

diff --git a/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.html b/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.html index 9c14d5b266..4ba685bc14 100644 --- a/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.html +++ b/aio/content/examples/router/src/app/admin/admin-dashboard/admin-dashboard.component.html @@ -1,4 +1,4 @@ -

Dashboard

+

Dashboard

Session ID: {{ sessionId | async }}

@@ -7,4 +7,4 @@ Preloaded Modules \ No newline at end of file + diff --git a/aio/content/examples/router/src/app/admin/admin/admin.component.css b/aio/content/examples/router/src/app/admin/admin/admin.component.css index e69de29bb2..dadbe07a57 100644 --- a/aio/content/examples/router/src/app/admin/admin/admin.component.css +++ b/aio/content/examples/router/src/app/admin/admin/admin.component.css @@ -0,0 +1,22 @@ +nav a { + padding: 1rem; + font-size: 1rem; + background-color: #e8e8e8; + color: #3d3d3d; +} + +@media (min-width: 400px) { + nav a { + font-size: 1.2rem; + } +} + +nav a:hover { + color: white; + background-color: #42545C; + } + +nav a.active { + background-color: black; + color: white; +} diff --git a/aio/content/examples/router/src/app/admin/admin/admin.component.html b/aio/content/examples/router/src/app/admin/admin/admin.component.html index 6e924c35d6..996513c022 100644 --- a/aio/content/examples/router/src/app/admin/admin/admin.component.html +++ b/aio/content/examples/router/src/app/admin/admin/admin.component.html @@ -1,8 +1,8 @@ -

ADMIN

+

Admin

- \ No newline at end of file + diff --git a/aio/content/examples/router/src/app/app.component.css b/aio/content/examples/router/src/app/app.component.css index e69de29bb2..0befc361b9 100644 --- a/aio/content/examples/router/src/app/app.component.css +++ b/aio/content/examples/router/src/app/app.component.css @@ -0,0 +1,3 @@ +nav a { + padding: 1rem; +} diff --git a/aio/content/examples/router/src/app/app.component.html b/aio/content/examples/router/src/app/app.component.html index 70e0c7aeb2..eff3c6d5d2 100644 --- a/aio/content/examples/router/src/app/app.component.html +++ b/aio/content/examples/router/src/app/app.component.html @@ -1,13 +1,15 @@ -

Angular Router

- -
- +
+

Angular Router

+ +
+ +
+
- \ No newline at end of file diff --git a/aio/content/examples/router/src/app/auth/login/login.component.html b/aio/content/examples/router/src/app/auth/login/login.component.html index adac1fb788..6f0ca52148 100644 --- a/aio/content/examples/router/src/app/auth/login/login.component.html +++ b/aio/content/examples/router/src/app/auth/login/login.component.html @@ -1,6 +1,6 @@ -

LOGIN

+

Login

{{message}}

-

\ No newline at end of file +

diff --git a/aio/content/examples/router/src/app/compose-message/compose-message.component.css b/aio/content/examples/router/src/app/compose-message/compose-message.component.css index c436ef4952..c7db9a077e 100644 --- a/aio/content/examples/router/src/app/compose-message/compose-message.component.css +++ b/aio/content/examples/router/src/app/compose-message/compose-message.component.css @@ -1,3 +1,6 @@ -:host { - position: relative; bottom: 10%; -} \ No newline at end of file +textarea { + width: 100%; + margin-top: 1rem; + font-size: 1.2rem; + box-sizing: border-box; +} diff --git a/aio/content/examples/router/src/app/compose-message/compose-message.component.html b/aio/content/examples/router/src/app/compose-message/compose-message.component.html index f0b964e6ac..f9ce612bdf 100644 --- a/aio/content/examples/router/src/app/compose-message/compose-message.component.html +++ b/aio/content/examples/router/src/app/compose-message/compose-message.component.html @@ -5,10 +5,10 @@
- +
- +

diff --git a/aio/content/examples/router/src/app/crisis-center/crisis-center-home/crisis-center-home.component.html b/aio/content/examples/router/src/app/crisis-center/crisis-center-home/crisis-center-home.component.html index f3c7d4e50c..430dd84942 100644 --- a/aio/content/examples/router/src/app/crisis-center/crisis-center-home/crisis-center-home.component.html +++ b/aio/content/examples/router/src/app/crisis-center/crisis-center-home/crisis-center-home.component.html @@ -1 +1 @@ -

Welcome to the Crisis Center

\ No newline at end of file +

Welcome to the Crisis Center

diff --git a/aio/content/examples/router/src/app/crisis-center/crisis-center/crisis-center.component.html b/aio/content/examples/router/src/app/crisis-center/crisis-center/crisis-center.component.html index f208bcd790..5aace465b5 100644 --- a/aio/content/examples/router/src/app/crisis-center/crisis-center/crisis-center.component.html +++ b/aio/content/examples/router/src/app/crisis-center/crisis-center/crisis-center.component.html @@ -1,2 +1,2 @@ -

CRISIS CENTER

- \ No newline at end of file +

Crisis Center

+ diff --git a/aio/content/examples/router/src/app/crisis-center/crisis-detail/crisis-detail.component.css b/aio/content/examples/router/src/app/crisis-center/crisis-detail/crisis-detail.component.css index 1300202b35..226dbc1223 100644 --- a/aio/content/examples/router/src/app/crisis-center/crisis-detail/crisis-detail.component.css +++ b/aio/content/examples/router/src/app/crisis-center/crisis-detail/crisis-detail.component.css @@ -1,3 +1,8 @@ +h2 { + font-size: 1.5rem; +} + input { - width: 20em -} \ No newline at end of file + font-size: 1rem; + margin-top: 1rem; +} diff --git a/aio/content/examples/router/src/app/crisis-center/crisis-detail/crisis-detail.component.html b/aio/content/examples/router/src/app/crisis-center/crisis-detail/crisis-detail.component.html index 524f839df1..ca67a2b86d 100644 --- a/aio/content/examples/router/src/app/crisis-center/crisis-detail/crisis-detail.component.html +++ b/aio/content/examples/router/src/app/crisis-center/crisis-detail/crisis-detail.component.html @@ -1,13 +1,10 @@
-

"{{ editName }}"

+

{{ editName }}

+

Id: {{ crisis.id }}

+ +
- {{ crisis.id }}
-
- - -
-

-

-
\ No newline at end of file + + diff --git a/aio/content/examples/router/src/app/crisis-center/crisis-list/crisis-list.component.css b/aio/content/examples/router/src/app/crisis-center/crisis-list/crisis-list.component.css index 5a978c35c9..3de0059e3d 100644 --- a/aio/content/examples/router/src/app/crisis-center/crisis-list/crisis-list.component.css +++ b/aio/content/examples/router/src/app/crisis-center/crisis-list/crisis-list.component.css @@ -3,76 +3,54 @@ margin: 0 0 2em 0; list-style-type: none; padding: 0; - width: 24em; } + .crises li { position: relative; cursor: pointer; - background-color: #EEE; - margin: .5em; - padding: .3em 0; - height: 1.6em; - border-radius: 4px; } .crises li:hover { - color: #607D8B; - background-color: #DDD; left: .1em; } .crises a { - color: #888; + color: black; text-decoration: none; display: block; + background-color: #EEE; + margin: .5em 0; + border-radius: 4px; + line-height: 2rem; +} + +@media (min-width: 600px) { + .crises a { + font-size: 1.2rem; + padding: .5em 0; + line-height: 1.4rem; + } } .crises a:hover { - color:#607D8B; + color: #2c3a41; + background-color: #e6e6e6; + left: .1em; +} + +.heroes .selected a { + background-color: #d6e6f7; +} + +.heroes .selected a:hover { + background-color: #bdd7f5; } .crises .badge { - display: inline-block; - font-size: small; + padding: .5em .6em; color: white; - padding: 0.8em 0.7em 0 0.7em; - background-color: #607D8B; - line-height: 1em; - position: relative; - left: -1px; - top: -4px; - height: 1.8em; + background-color: #435B60; min-width: 16px; - text-align: right; margin-right: .8em; border-radius: 4px 0 0 4px; } - -button { - background-color: #eee; - border: none; - padding: 5px 10px; - border-radius: 4px; - cursor: pointer; - font-family: Arial, sans-serif; -} - -button:hover { - background-color: #cfd8dc; -} - -button.delete { - position: relative; - left: 194px; - top: -32px; - background-color: gray !important; - color: white; -} - -.crises li.selected { - background-color: #CFD8DC; - color: white; -} -.crises li.selected:hover { - background-color: #BBD8DC; -} diff --git a/aio/content/examples/router/src/app/crisis-center/crisis-list/crisis-list.component.html b/aio/content/examples/router/src/app/crisis-center/crisis-list/crisis-list.component.html index 31866a018f..4a45de6b2e 100644 --- a/aio/content/examples/router/src/app/crisis-center/crisis-list/crisis-list.component.html +++ b/aio/content/examples/router/src/app/crisis-center/crisis-list/crisis-list.component.html @@ -1,6 +1,5 @@