Skip to content

Commit daa0fea

Browse files
committed
updated timeline mobile view
1 parent 420db10 commit daa0fea

File tree

7 files changed

+37
-21
lines changed

7 files changed

+37
-21
lines changed

src/app/app.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
<router-outlet></router-outlet>
2-
<app-footer></app-footer>

src/app/app.module.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ import { NgModule } from '@angular/core';
33

44
import { AppRoutingModule } from './app-routing.module';
55
import { AppComponent } from './app.component';
6-
import { FooterComponent } from './components/footer/footer.component';
7-
86

97
@NgModule({
108
declarations: [
11-
AppComponent, FooterComponent
9+
AppComponent
1210
],
1311
imports: [
1412
BrowserModule,

src/app/components/footer/footer.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.footer {
22
padding: 1em;
3-
background: #2e2e2e;
3+
background: #021017;
44

55
.get-template {
66
font-size: 12px;

src/app/pages/home/home.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,6 @@
6868
<home-timeline></home-timeline>
6969
</div>
7070

71-
7271
</div>
72+
73+
<app-footer></app-footer>

src/app/pages/home/home.component.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@
159159
}
160160

161161
.content-wrapper {
162-
width: 800px;
162+
max-width: 800px;
163163
margin: 0 auto;
164+
padding: 0 2em;
164165

165166
.intro {
166167
text-align: center;

src/app/pages/home/home.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Routes, RouterModule } from '@angular/router';
44

55
import { HomeComponent } from './home.component';
66
import { TimelineComponent } from './timeline/timeline.component';
7+
import { FooterComponent } from 'src/app/components/footer/footer.component';
78

89
const routes: Routes = [
910
{
@@ -14,7 +15,7 @@ const routes: Routes = [
1415

1516

1617
@NgModule({
17-
declarations: [HomeComponent, TimelineComponent],
18+
declarations: [HomeComponent, TimelineComponent, FooterComponent],
1819
imports: [
1920
RouterModule.forChild(routes),
2021
CommonModule

src/app/pages/home/timeline/timeline.component.scss

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$primary-breakpoint: 800px;
2+
13
.timeline {
24
margin: 4em auto;
35
position: relative;
@@ -10,8 +12,14 @@
1012
width: 1px;
1113
height: calc(100% - 2em);
1214
background: var(--app-grey);
15+
16+
@media only screen and (max-width: $primary-breakpoint) {
17+
left: calc(90% + 2em);
18+
}
1319
}
1420

21+
22+
1523
.timeline-item-wrapper {
1624
margin-bottom: 1em;
1725

@@ -135,23 +143,31 @@
135143

136144
}
137145

138-
&:nth-child(even) {
139-
margin-left: auto;
146+
@media only screen and (max-width: $primary-breakpoint) {
147+
max-width: calc(90%);
148+
margin-bottom: 4em;
149+
}
140150

141-
.side-el {
142-
right: auto;
143-
left: -50px;
151+
@media only screen and (min-width: $primary-breakpoint) {
144152

145-
.arrow {
146-
order: 1;
153+
&:nth-child(even) {
154+
margin-left: auto;
155+
156+
.side-el {
147157
right: auto;
148-
left: -10px;
149-
clip-path: polygon(0 50%, 100% 0, 100% 100%);
150-
}
158+
left: -50px;
151159

152-
.circle {
153-
margin-left: 0;
154-
margin-right: 0.5em;
160+
.arrow {
161+
order: 1;
162+
right: auto;
163+
left: -10px;
164+
clip-path: polygon(0 50%, 100% 0, 100% 100%);
165+
}
166+
167+
.circle {
168+
margin-left: 0;
169+
margin-right: 0.5em;
170+
}
155171
}
156172
}
157173
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy