Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
single-page-application
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
Christopher Cottier
single-page-application
Commits
8f95d9e1
Commit
8f95d9e1
authored
Apr 21, 2021
by
ccottier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
navigate to contact-us page working
parent
137e86fe
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
63 additions
and
4 deletions
+63
-4
app-routing.module.ts
src/app/app-routing.module.ts
+5
-1
app.component.css
src/app/app.component.css
+4
-0
app.module.ts
src/app/app.module.ts
+3
-1
contact-us.component.css
src/app/contact-us/contact-us.component.css
+0
-0
contact-us.component.html
src/app/contact-us/contact-us.component.html
+1
-0
contact-us.component.spec.ts
src/app/contact-us/contact-us.component.spec.ts
+25
-0
contact-us.component.ts
src/app/contact-us/contact-us.component.ts
+15
-0
footer.component.css
src/app/footer/footer.component.css
+4
-0
footer.component.html
src/app/footer/footer.component.html
+1
-1
header.component.css
src/app/header/header.component.css
+4
-0
header.component.html
src/app/header/header.component.html
+1
-1
No files found.
src/app/app-routing.module.ts
View file @
8f95d9e1
...
...
@@ -3,15 +3,19 @@ import { GreeceComponent } from './greece/greece.component';
import
{
AccountComponent
}
from
'./account/account.component'
;
import
{
FranceComponent
}
from
'./france/france.component'
;
import
{
EnglandComponent
}
from
'./england/england.component'
;
import
{
ContactUsComponent
}
from
'./contact-us/contact-us.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
RouterModule
,
Routes
}
from
'@angular/router'
;
const
routes
:
Routes
=
[
{
path
:
'england'
,
component
:
EnglandComponent
},
{
path
:
'france'
,
component
:
FranceComponent
},
{
path
:
'account'
,
component
:
AccountComponent
},
{
path
:
'greece'
,
component
:
GreeceComponent
},
{
path
:
'spain'
,
component
:
SpainComponent
}
{
path
:
'spain'
,
component
:
SpainComponent
},
{
path
:
'contact-us'
,
component
:
ContactUsComponent
}
];
@
NgModule
({
...
...
src/app/app.component.css
View file @
8f95d9e1
...
...
@@ -16,4 +16,8 @@
display
:
flex
;
justify-content
:
space-evenly
;
width
:
100%
;
}
.link
{
cursor
:
pointer
;
}
\ No newline at end of file
src/app/app.module.ts
View file @
8f95d9e1
...
...
@@ -13,6 +13,7 @@ import { SpainComponent } from './spain/spain.component';
import
{
AccountComponent
}
from
'./account/account.component'
;
import
{
FormsModule
}
from
'@angular/forms'
;
import
{
ReactiveFormsModule
}
from
'@angular/forms'
;
import
{
ContactUsComponent
}
from
'./contact-us/contact-us.component'
;
@
NgModule
({
declarations
:
[
...
...
@@ -23,7 +24,8 @@ import {ReactiveFormsModule} from '@angular/forms';
FranceComponent
,
GreeceComponent
,
SpainComponent
,
AccountComponent
AccountComponent
,
ContactUsComponent
],
imports
:
[
BrowserModule
,
...
...
src/app/contact-us/contact-us.component.css
0 → 100644
View file @
8f95d9e1
src/app/contact-us/contact-us.component.html
0 → 100644
View file @
8f95d9e1
<p>
contact-us works!
</p>
src/app/contact-us/contact-us.component.spec.ts
0 → 100644
View file @
8f95d9e1
import
{
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
ContactUsComponent
}
from
'./contact-us.component'
;
describe
(
'ContactUsComponent'
,
()
=>
{
let
component
:
ContactUsComponent
;
let
fixture
:
ComponentFixture
<
ContactUsComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
declarations
:
[
ContactUsComponent
]
})
.
compileComponents
();
});
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
ContactUsComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/contact-us/contact-us.component.ts
0 → 100644
View file @
8f95d9e1
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-contact-us'
,
templateUrl
:
'./contact-us.component.html'
,
styleUrls
:
[
'./contact-us.component.css'
]
})
export
class
ContactUsComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
():
void
{
}
}
src/app/footer/footer.component.css
View file @
8f95d9e1
...
...
@@ -21,4 +21,8 @@ ul {
position
:
relative
;
float
:
left
;
padding-left
:
20px
;
;
}
.link
{
cursor
:
pointer
;
}
\ No newline at end of file
src/app/footer/footer.component.html
View file @
8f95d9e1
...
...
@@ -2,6 +2,6 @@
<ul>
<li>
About Us
</li>
<li>
Careers
</li>
<li>
Contact Us
</li>
<li
class=
"link"
[
routerLink
]="['/
contact-us
']"
>
Contact Us
</li>
</ul>
</div>
\ No newline at end of file
src/app/header/header.component.css
View file @
8f95d9e1
...
...
@@ -20,4 +20,8 @@
position
:
absolute
;
right
:
10px
;
margin-top
:
30px
;
}
.link
{
cursor
:
pointer
;
}
\ No newline at end of file
src/app/header/header.component.html
View file @
8f95d9e1
...
...
@@ -6,6 +6,6 @@
<button
[
routerLink
]=
"['/
spain
']"
>
Spain
</button>
</div>
<span
class=
'account'
>
<i
class=
"fa fa-user"
[
routerLink
]="['/
account
']"
></i>
<i
class=
"fa fa-user
link
"
[
routerLink
]="['/
account
']"
></i>
</span>
</div>
\ No newline at end of file
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