Skip to content

Commit ec2eb2a

Browse files
committed
Fix few layouts to new grid system
1 parent a2441d8 commit ec2eb2a

File tree

8 files changed

+17
-38
lines changed

8 files changed

+17
-38
lines changed
6.79 KB
Loading

src/pages/login/login-background-video/login-background-video.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ion-navbar transparent>
33
</ion-navbar>
44
</ion-header>
5-
<ion-content fullscreen padding>
5+
<ion-content fullscreen padding text-center>
66
<img class="logo" src="assets/img/logo/logo-canon.png" />
77
<div class="buttons">
88
<button ion-button class="login-button facebook" (click)="goToLogin()">Continue with Facebook</button>

src/pages/login/login-slider/login-slider.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ <h3> Share what you love </h3>
2222
</ion-slide>
2323
</ion-slides>
2424
<ion-row>
25-
<ion-col width-50>
25+
<ion-col col-6>
2626
<button ion-button round color="light" class="login-button" (click)="goToLogin()">SIGN IN</button>
2727
</ion-col>
28-
<ion-col width-50>
28+
<ion-col col-6>
2929
<button ion-button round color="light" class="login-button" (click)="goToSignup()">SIGN UP</button>
3030
</ion-col>
3131
</ion-row>

src/pages/popup-modal/signup-modal/signup-modal.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
</ion-col>
1515
</ion-row>
1616
<ion-row class="align-center">
17-
<ion-col width-50>
17+
<ion-col col-6>
1818
<button ion-button full color="secondary" (click)="login()">
1919
Log in
2020
</button>
2121
</ion-col>
22-
<ion-col width-50>
22+
<ion-col col-6>
2323
<button ion-button full color="danger" (click)="dismiss()">
2424
Sign up Later
2525
</button>

src/pages/profile/profile-four/profile-four.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ <h3 id="profile-name">{{user.name}}</h3>
1515
</div>
1616
<hr/>
1717
<ion-row class="profile-numbers">
18-
<ion-col width-33>
18+
<ion-col col-4>
1919
<p>Followers</p>
2020
<span>{{user.followers}}</span>
2121
</ion-col>
22-
<ion-col width-33>
22+
<ion-col col-4>
2323
<p>Following</p>
2424
<span>{{user.following}}</span>
2525
</ion-col>
26-
<ion-col width-33>
26+
<ion-col col-4>
2727
<p>Posts</p>
2828
<span>{{user.posts}}</span>
2929
</ion-col>
@@ -42,19 +42,19 @@ <h2 class="sticky">{{user.name}}</h2>
4242
<p>{{post.text}}</p>
4343
</ion-card-content>
4444
<ion-row>
45-
<ion-col>
45+
<ion-col col-4>
4646
<button ion-button color="purple" clear small icon-left (click)="like(post)">
4747
<ion-icon name='thumbs-up'></ion-icon>
4848
{{post.likes}} Likes
4949
</button>
5050
</ion-col>
51-
<ion-col>
52-
<button ion-button color="purple" clear small icon-left (click)="comment(post)">
51+
<ion-col col-5>
52+
<button ion-button no-padding color="purple" clear small icon-left (click)="comment(post)">
5353
<ion-icon name='text'></ion-icon>
5454
{{post.comments}} Comments
5555
</button>
5656
</ion-col>
57-
<ion-col center text-center>
57+
<ion-col col-3 align-self-center text-center>
5858
<p>
5959
{{post.timestamp}}
6060
</p>

src/pages/profile/profile-three/profile-three.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2 class="sticky">{{user.name}}</h2>
5252
{{post.comments}} Comments
5353
</button>
5454
</ion-col>
55-
<ion-col center text-center>
55+
<ion-col align-self-center text-center>
5656
<p>
5757
{{post.timestamp}}
5858
</p>

src/pages/profile/profile-three/profile-three.scss

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,35 +44,16 @@ page-profile-three {
4444
.card-profile {
4545
float: left;
4646
position: absolute;
47-
// top: 50%;
48-
// left: 50%;
49-
// transform: translate(-50%, -50%);
5047
width: 100%;
5148
height: 80vh;
52-
// height: 530px;
5349
background: #fff;
54-
// border-radius: $radius;
5550
z-index: 1;
5651
box-shadow: 0 0 5px rgba(black, 0.1);
57-
&:after {
58-
// content: '';
59-
// display: block;
60-
// position: absolute;
61-
// width: 100%;
62-
// height: 100px;
63-
// bottom: 0;
64-
// box-shadow: 0 36px 64px -34px rgba(black, 1), 0 16px 14px -14px rgba(black, 0.6), 0 22px 18px -18px rgba(black, 0.4), 0 22px 38px -18px rgba(black, 1);
65-
// transform: scaleX(0.7) scaleY(1.3) translateY(-15%);
66-
// z-index: -1;
67-
// opacity: 0.25;
68-
}
6952
&_visual {
7053
height: $visual-height;
7154
overflow: hidden;
7255
position: relative;
7356
background: linear-gradient(to bottom, darken(#545559, 10%), saturate(darken(#3A4A7B, 2%), 20%), saturate(darken(#3A4A7B, 15%), 20%));
74-
border-top-left-radius: $radius;
75-
border-top-right-radius: $radius;
7657
&:before,
7758
&:after {
7859
display: block;
@@ -81,7 +62,7 @@ page-profile-three {
8162
height: 100%;
8263
position: absolute;
8364
z-index: 0;
84-
background: url(https://s-media-cache-ak0.pinimg.com/236x/c5/86/e6/c586e6afd87ee357bbab52df241480ac.jpg)no-repeat center center/cover;
65+
background: url(../assets/img/avatar/cosima-avatar.jpg)no-repeat center center/cover;
8566
opacity: 0.5;
8667
mix-blend-mode: lighten;
8768
}
@@ -110,7 +91,6 @@ page-profile-three {
11091
position: absolute;
11192
left: 0;
11293
right: 0;
113-
// margin: auto;
11494
background: {
11595
color: #F96B4C;
11696
image: linear-gradient($gradient);
@@ -182,7 +162,6 @@ page-profile-three {
182162
position: relative;
183163
margin-top: 2.8em;
184164
width: 100%;
185-
// top: calc( 70% + 4em);
186165
display: flex;
187166
}
188167
.user-stats {

src/pages/profile/profile-three/profile-three.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ export class ProfileThreePage {
3636
];
3737

3838
user = {
39-
name: 'Emma Watson',
40-
twitter: '@EmWatson',
41-
profileImage: 'https://s-media-cache-ak0.pinimg.com/236x/c5/86/e6/c586e6afd87ee357bbab52df241480ac.jpg',
39+
name: 'Cosima Niehaus',
40+
twitter: '@CheekyEvoDevo',
41+
profileImage: '../assets/img/avatar/cosima-avatar.jpg',
4242
followers: 456,
4343
following: 1052,
4444
tweets: 35

0 commit comments

Comments
 (0)