Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
angular-component-paths-exercise
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shaphen Pangburn
angular-component-paths-exercise
Commits
670c7b28
Commit
670c7b28
authored
Apr 20, 2021
by
Shaphen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add header, footer, and conponents to view picture of england, france, greece, and spain
parent
fd83c7e3
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
234 additions
and
9 deletions
+234
-9
app-routing.module.ts
src/app/app-routing.module.ts
+11
-1
app.component.css
src/app/app.component.css
+7
-0
app.module.ts
src/app/app.module.ts
+10
-4
england.component.css
src/app/england/england.component.css
+5
-0
england.component.html
src/app/england/england.component.html
+7
-1
footer.component.css
src/app/footer/footer.component.css
+25
-0
footer.component.html
src/app/footer/footer.component.html
+7
-1
france.component.css
src/app/france/france.component.css
+5
-0
france.component.html
src/app/france/france.component.html
+7
-1
greece.component.css
src/app/greece/greece.component.css
+5
-0
greece.component.html
src/app/greece/greece.component.html
+7
-0
greece.component.spec.ts
src/app/greece/greece.component.spec.ts
+28
-0
greece.component.ts
src/app/greece/greece.component.ts
+15
-0
header.component.css
src/app/header/header.component.css
+29
-0
header.component.html
src/app/header/header.component.html
+11
-1
spain.component.css
src/app/spain/spain.component.css
+5
-0
spain.component.html
src/app/spain/spain.component.html
+7
-0
spain.component.spec.ts
src/app/spain/spain.component.spec.ts
+28
-0
spain.component.ts
src/app/spain/spain.component.ts
+15
-0
No files found.
src/app/app-routing.module.ts
View file @
670c7b28
import
{
NgModule
}
from
'@angular/core'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
RouterModule
,
Routes
}
from
'@angular/router'
;
import
{
RouterModule
,
Routes
}
from
'@angular/router'
;
import
{
EnglandComponent
}
from
'./england/england.component'
;
import
{
FranceComponent
}
from
'./france/france.component'
;
import
{
GreeceComponent
}
from
'./greece/greece.component'
;
import
{
SpainComponent
}
from
'./spain/spain.component'
;
const
routes
:
Routes
=
[];
const
routes
:
Routes
=
[
{
path
:
'england'
,
component
:
EnglandComponent
},
{
path
:
'france'
,
component
:
FranceComponent
},
{
path
:
'greece'
,
component
:
GreeceComponent
},
{
path
:
'spain'
,
component
:
SpainComponent
},
// {path:'account', component: AccountComponent}
];
@
NgModule
({
@
NgModule
({
imports
:
[
RouterModule
.
forRoot
(
routes
)],
imports
:
[
RouterModule
.
forRoot
(
routes
)],
...
...
src/app/app.component.css
View file @
670c7b28
.dynamic-container
{
margin-top
:
35px
;
height
:
calc
(
100vh-70px
);
overflow-y
:
auto
;
overflow-x
:
hidden
;
padding
:
50px
20px
20px
50px
;
}
src/app/app.module.ts
View file @
670c7b28
...
@@ -7,18 +7,24 @@ import { HeaderComponent } from './header/header.component';
...
@@ -7,18 +7,24 @@ import { HeaderComponent } from './header/header.component';
import
{
FooterComponent
}
from
'./footer/footer.component'
;
import
{
FooterComponent
}
from
'./footer/footer.component'
;
import
{
EnglandComponent
}
from
'./england/england.component'
;
import
{
EnglandComponent
}
from
'./england/england.component'
;
import
{
FranceComponent
}
from
'./france/france.component'
;
import
{
FranceComponent
}
from
'./france/france.component'
;
import
{
GreeceComponent
}
from
'./greece/greece.component'
;
import
{
SpainComponent
}
from
'./spain/spain.component'
;
import
{
NgbModule
}
from
'@ng-bootstrap/ng-bootstrap'
;
@
NgModule
({
@
NgModule
({
declarations
:
[
declarations
:
[
AppComponent
,
AppComponent
,
HeaderComponent
,
HeaderComponent
,
FooterComponent
,
FooterComponent
,
EnglandComponent
,
EnglandComponent
,
FranceComponent
FranceComponent
,
],
GreeceComponent
,
SpainComponent
],
imports
:
[
imports
:
[
BrowserModule
,
BrowserModule
,
AppRoutingModule
AppRoutingModule
,
NgbModule
],
],
providers
:
[],
providers
:
[],
bootstrap
:
[
AppComponent
]
bootstrap
:
[
AppComponent
]
...
...
src/app/england/england.component.css
View file @
670c7b28
.img
{
height
:
300px
;
width
:
300px
;
padding
:
5px
;
}
\ No newline at end of file
src/app/england/england.component.html
View file @
670c7b28
<p>
england works!
</p>
<h2>
England
</h2>
<div
class=
'imgContainer'
>
<img
class=
'img'
src=
'assets/images/england/england-bridge.jpg'
/>
<img
class=
'img'
src=
'assets/images/england/england-parliament.jpg'
/>
<img
class=
'img'
src=
'assets/images/england/england-stonehedge.jpg'
/>
</div>
src/app/footer/footer.component.css
View file @
670c7b28
.footer
{
height
:
5rem
;
background
:
#6fb7f1
;
bottom
:
0
;
right
:
0
;
left
:
0
;
position
:
fixed
;
}
ul
{
font-family
:
Arial
,
Verdana
;
font-size
:
14px
;
margin
:
0
auto
;
padding
:
0
;
margin-top
:
33px
;
/* width:600px; */
list-style
:
none
;
}
ul
li
{
display
:
block
;
position
:
relative
;
float
:
left
;
padding-left
:
20px
;
;
}
\ No newline at end of file
src/app/footer/footer.component.html
View file @
670c7b28
<p>
footer works!
</p>
<div
class=
'footer'
>
<ul>
<li>
About Us
</li>
<li>
Careers
</li>
<li>
Contact Us
</li>
</ul>
</div>
\ No newline at end of file
src/app/france/france.component.css
View file @
670c7b28
.img
{
height
:
300px
;
width
:
300px
;
padding
:
5px
;
}
\ No newline at end of file
src/app/france/france.component.html
View file @
670c7b28
<p>
france works!
</p>
<h2>
France
</h2>
<div
class=
'imgContainer'
>
<img
class=
'img'
src=
'assets/images/france/france-cafe.jpg'
/>
<img
class=
'img'
src=
'assets/images/france/france-tower.jpg'
/>
<img
class=
'img'
src=
'assets/images/france/france-town.jpg'
/>
</div>
\ No newline at end of file
src/app/greece/greece.component.css
0 → 100644
View file @
670c7b28
.img
{
height
:
300px
;
width
:
300px
;
padding
:
5px
;
}
\ No newline at end of file
src/app/greece/greece.component.html
0 → 100644
View file @
670c7b28
<h2>
Greece
</h2>
<div
class=
'imgContainer'
>
<img
class=
'img'
src=
'assets/images/greece/greece- beach.jpg'
/>
<img
class=
'img'
src=
'assets/images/greece/greece-steps.jpg'
/>
<img
class=
'img'
src=
'assets/images/greece/greese-santorini.jpg'
/>
</div>
src/app/greece/greece.component.spec.ts
0 → 100644
View file @
670c7b28
/* tslint:disable:no-unused-variable */
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
By
}
from
'@angular/platform-browser'
;
import
{
DebugElement
}
from
'@angular/core'
;
import
{
GreeceComponent
}
from
'./greece.component'
;
describe
(
'GreeceComponent'
,
()
=>
{
let
component
:
GreeceComponent
;
let
fixture
:
ComponentFixture
<
GreeceComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
GreeceComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
GreeceComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/greece/greece.component.ts
0 → 100644
View file @
670c7b28
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-greece'
,
templateUrl
:
'./greece.component.html'
,
styleUrls
:
[
'./greece.component.css'
]
})
export
class
GreeceComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
src/app/header/header.component.css
View file @
670c7b28
.header
{
background
:
#6fb7f1
;
height
:
4em
;
position
:
fixed
;
top
:
0
;
right
:
0
;
left
:
0
;
}
h3
{
text-align
:
center
;
}
.btn
{
margin-top
:
30px
;
margin-left
:
10px
}
.btnMenu
{
margin-top
:
17px
;
margin-left
:
20px
;
display
:
inline-block
;
}
.account
{
position
:
absolute
;
right
:
10px
;
margin-top
:
20px
;
}
\ No newline at end of file
src/app/header/header.component.html
View file @
670c7b28
<p>
header works!
</p>
<div
class=
'header'
>
<div
class=
'btnMenu'
>
<button
[
routerLink
]="['/
england
']"
>
England
</button>
<button
[
routerLink
]="['/
france
']"
>
France
</button>
<button
[
routerLink
]="['/
greece
']"
>
Greece
</button>
<button
[
routerLink
]="['/
spain
']"
>
Spain
</button>
</div>
<span
class=
'account'
>
<i
class=
"fa fa-user"
[
routerLink
]="['/
account
']"
></i>
</span>
</div>
\ No newline at end of file
src/app/spain/spain.component.css
0 → 100644
View file @
670c7b28
.img
{
height
:
300px
;
width
:
300px
;
padding
:
5px
;
}
\ No newline at end of file
src/app/spain/spain.component.html
0 → 100644
View file @
670c7b28
<h2>
Spain
</h2>
<div
class=
'imgContainer'
>
<img
class=
'img'
src=
'assets/images/spain/spain-barcelona.jpg'
/>
<img
class=
'img'
src=
'assets/images/spain/spain-cathedral.jpg'
/>
<img
class=
'img'
src=
'assets/images/spain/spain-dance.jpg'
/>
</div>
src/app/spain/spain.component.spec.ts
0 → 100644
View file @
670c7b28
/* tslint:disable:no-unused-variable */
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
By
}
from
'@angular/platform-browser'
;
import
{
DebugElement
}
from
'@angular/core'
;
import
{
SpainComponent
}
from
'./spain.component'
;
describe
(
'SpainComponent'
,
()
=>
{
let
component
:
SpainComponent
;
let
fixture
:
ComponentFixture
<
SpainComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
SpainComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
SpainComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/spain/spain.component.ts
0 → 100644
View file @
670c7b28
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-spain'
,
templateUrl
:
'./spain.component.html'
,
styleUrls
:
[
'./spain.component.css'
]
})
export
class
SpainComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment