-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from gugcz/speakers-redesign
Speakers redesign
- Loading branch information
Showing
9 changed files
with
150 additions
and
105 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/app/schedule/components/speaker-card/speaker-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 15 additions & 5 deletions
20
src/app/schedule/components/speaker-card/speaker-card.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
.speaker-holder { | ||
width: 100%; | ||
text-align: center; | ||
height: 230px; | ||
height: 280px; | ||
margin-bottom: 16px; | ||
|
||
.header { | ||
width: 100%; | ||
*{ | ||
margin-top: 0px; | ||
margin-bottom: 5px; | ||
|
||
.speaker-name { | ||
font-size: 24px; | ||
margin-top: 0; | ||
margin-bottom: 4px; | ||
} | ||
|
||
.speaker-company { | ||
margin-top: 0; | ||
margin-bottom: 16px; | ||
font-size: 14px; | ||
} | ||
} | ||
.image { | ||
margin: auto; | ||
width: 150px; | ||
width: 175px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 28 additions & 36 deletions
64
src/app/schedule/components/speaker-detail/speaker-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,33 @@ | ||
<div class="speaker-holder" *ngIf="speaker | async as speak" [@fadeInOut]> | ||
<mat-dialog-content> | ||
<h1>{{speak.name}}</h1> | ||
<div class="holder"> | ||
<div class="wrapper"> | ||
<div class="left-info"> | ||
<div class="avatar-holder"> | ||
<app-tag-avatar [firestorageImagePath]="speak.photoPath" [name]="speak.name" [tagColor]="speak.tagColor"> | ||
</app-tag-avatar> | ||
</div> | ||
<h4> | ||
{{speak.company}} | ||
</h4> | ||
<h4> | ||
{{speak.companyPosition}} | ||
</h4> | ||
<div *ngIf="speak.socials" class="socials"> | ||
<a tabindex="-1" *ngFor="let social of speak.socials | socials" [disableRipple]="true" [href]="social.url" | ||
mat-icon-button target="_blank"> | ||
<mat-icon [svgIcon]="social.key"></mat-icon> | ||
</a> | ||
</div> | ||
<div class="speaker-dialog" *ngIf="speaker | async as speak" [@fadeInOut] mat-dialog-content> | ||
<div class="card-column"> | ||
<div class="header-container"> | ||
<button mat-icon-button aria-label="Close speaker button." class="close-button" [mat-dialog-close]="true"> | ||
<mat-icon>clear</mat-icon> | ||
</button> | ||
</div> | ||
<div class="card-row"> | ||
<div class="left-panel"> | ||
<div class="avatar-holder"> | ||
<app-tag-avatar [firestorageImagePath]="speak.photoPath" [name]="speak.name" [tagColor]="speak.tagColor" class="speaker-photo"> | ||
</app-tag-avatar> | ||
</div> | ||
<div class="right-info"> | ||
<div class="bio"> | ||
<p> | ||
{{speak.bio}} | ||
</p> | ||
</div> | ||
<div class="talk"> | ||
<h3>{{speak.talkName}}</h3> | ||
<p> | ||
{{speak.talkDescription}} | ||
</p> | ||
</div> | ||
</div> | ||
<div class="right-panel"> | ||
<h1 class="speaker-name">{{speak.name}}</h1> | ||
<h4 class="speaker-company">{{speak.company}}</h4> | ||
<h4 class="company-position">{{speak.companyPosition}}</h4> | ||
<p class="bio">{{speak.bio}}</p> | ||
<div *ngIf="speak.socials" class="socials"> | ||
<a tabindex="-1" *ngFor="let social of speak.socials | socials" [disableRipple]="true" [href]="social.url" | ||
mat-icon-button target="_blank"> | ||
<mat-icon [svgIcon]="social.key"></mat-icon> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<button mat-button [mat-dialog-close]="true">CLOSE</button> | ||
</mat-dialog-content> | ||
<div class="talk"> | ||
<h3 class="talk-name">{{speak.talkName}}</h3> | ||
<p class="talk-description">{{speak.talkDescription}}</p> | ||
</div> | ||
</div> | ||
</div> |
106 changes: 70 additions & 36 deletions
106
src/app/schedule/components/speaker-detail/speaker-detail.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,82 @@ | ||
.holder { | ||
width: 100%; | ||
margin-top: 10px; | ||
.speaker-dialog { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.wrapper { | ||
max-height: 100% !important; | ||
height: 100%; | ||
width: 100%; | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-evenly; | ||
} | ||
padding: 12px 24px 24px 24px; | ||
|
||
.left-info { | ||
margin: 5px; | ||
flex-basis: 150px; | ||
} | ||
.card-column { | ||
display: flex; | ||
flex-direction: column; | ||
margin-bottom: 32px; | ||
|
||
mat-dialog-content { | ||
max-height: 100% !important; | ||
} | ||
.header-container { | ||
display: flex; | ||
justify-content: flex-end; | ||
|
||
p { | ||
text-align: justify; | ||
} | ||
.close-button { | ||
position: relative; | ||
right: -18px; | ||
} | ||
} | ||
|
||
.right-info { | ||
margin: 5px; | ||
flex-basis: 550px; | ||
} | ||
.card-row .right-panel { | ||
.speaker-name { | ||
margin: 8px 0 4px; | ||
} | ||
|
||
.speaker-company { | ||
margin: 4px 0; | ||
} | ||
|
||
.avatar-holder { | ||
height: 160px; | ||
} | ||
.company-position { | ||
margin: 4px 0; | ||
} | ||
} | ||
} | ||
|
||
.socials { | ||
.mat-icon-button-focus-overlay { background-color: transparent!important; } | ||
.talk { | ||
&-name { | ||
font-size: 26px; | ||
margin-bottom: 12px; | ||
} | ||
} | ||
|
||
.socials { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: flex-start; | ||
min-height: 40px; | ||
|
||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
min-height: 40px; | ||
.mat-icon-button-focus-overlay { | ||
background-color: transparent !important; | ||
} | ||
} | ||
} | ||
|
||
.speaker-holder { | ||
height: 100%; | ||
} | ||
@media only screen and (min-width: 768px) { | ||
.speaker-dialog .card-column { | ||
.card-row { | ||
display: flex; | ||
flex-direction: row; | ||
|
||
.left-panel, .right-panel { | ||
width: calc(50% - 16px); | ||
} | ||
|
||
.left-panel { | ||
display: flex; | ||
margin-right: 16px; | ||
justify-content: center; | ||
|
||
.avatar-holder { | ||
width: 256px; | ||
} | ||
} | ||
|
||
.right-panel { | ||
margin-left: 16px; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
.container { | ||
min-height: 100vh; | ||
width: 100%; | ||
} | ||
|
||
.wrapper { | ||
padding-top: 80px; | ||
} | ||
.wrapper { | ||
padding-top: 80px; | ||
|
||
.speakers-cont { | ||
width: 100%; | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
} | ||
.speakers-cont { | ||
width: 100%; | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
|
||
.member { | ||
flex-basis: 320px; | ||
.member { | ||
flex-basis: 320px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.info-holder{ | ||
text-align: center; | ||
|
||
.info-text { | ||
font-size: 28px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters