-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added square images on outside of the office
- Loading branch information
1 parent
fce35db
commit 8b6e27d
Showing
9 changed files
with
121 additions
and
5 deletions.
There are no files selected for viewing
17 changes: 15 additions & 2 deletions
17
src/app/home-page/components/outside-of-work-banner/outside-of-work-banner.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,5 +1,18 @@ | ||
<div class="contents row"> | ||
<div class="flex"> | ||
<h3>Stu outside of the office</h3> | ||
<div class="col"> | ||
<div class="header col"> | ||
<h3>Stu outside of the office</h3> | ||
<p class="subtitle"> | ||
Relating to clients and coworkers is easier with hobbies outside of work. Here are a few of | ||
mine! | ||
</p> | ||
</div> | ||
<div class="tiles"> | ||
<home-page-square-photo-tile | ||
*ngFor="let photo of photos" | ||
[image]="photo.image" | ||
[subtitle]="photo.subtitle" | ||
></home-page-square-photo-tile> | ||
</div> | ||
</div> | ||
</div> |
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
17 changes: 16 additions & 1 deletion
17
src/app/home-page/components/outside-of-work-banner/outside-of-work-banner.component.ts
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,8 +1,23 @@ | ||
import { Component } from '@angular/core'; | ||
import { environment } from 'src/environments/environment'; | ||
|
||
@Component({ | ||
selector: 'home-page-outside-of-work-banner', | ||
templateUrl: './outside-of-work-banner.component.html', | ||
styleUrls: ['./outside-of-work-banner.component.scss'], | ||
}) | ||
export class OutsideOfWorkBannerComponent {} | ||
export class OutsideOfWorkBannerComponent { | ||
photos: { image: string; subtitle: string }[] = [ | ||
{ | ||
image: `${environment.assetPrefix}code-sample.png`, | ||
subtitle: 'Hello World. This is a long caption', | ||
}, | ||
{ image: `${environment.assetPrefix}code-sample.png`, subtitle: 'Hello World' }, | ||
{ image: `${environment.assetPrefix}code-sample.png`, subtitle: 'Hello World' }, | ||
{ image: `${environment.assetPrefix}code-sample.png`, subtitle: 'Hello World' }, | ||
{ image: `${environment.assetPrefix}code-sample.png`, subtitle: 'Hello World' }, | ||
{ image: `${environment.assetPrefix}code-sample.png`, subtitle: 'Hello World' }, | ||
{ image: `${environment.assetPrefix}code-sample.png`, subtitle: 'Hello World' }, | ||
{ image: `${environment.assetPrefix}code-sample.png`, subtitle: 'Hello World' }, | ||
]; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/app/home-page/components/square-photo-tile/square-photo-tile.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="contents" style="background-image: url('{{ image }}');"> | ||
<div [class.overlay]="subtitle"> | ||
<p class="flex">{{ subtitle }}</p> | ||
</div> | ||
</div> |
41 changes: 41 additions & 0 deletions
41
src/app/home-page/components/square-photo-tile/square-photo-tile.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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@use '/src/styles.scss' as styles; | ||
|
||
.contents { | ||
width: 100%; | ||
height: 100%; | ||
transition: all 200ms; | ||
overflow: hidden; | ||
|
||
&:hover { | ||
transform: scale(1.05); | ||
|
||
&::before { | ||
filter: blur(8px); | ||
} | ||
|
||
* { | ||
opacity: 1; | ||
} | ||
|
||
.overlay { | ||
background-color: rgba(0, 0, 0, 0.5); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
|
||
p { | ||
color: map-get(styles.$text-gray, lightest); | ||
} | ||
} | ||
} | ||
|
||
& > div { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
* { | ||
opacity: 0; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/app/home-page/components/square-photo-tile/square-photo-tile.component.ts
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { environment } from 'src/environments/environment'; | ||
|
||
@Component({ | ||
selector: 'home-page-square-photo-tile', | ||
templateUrl: './square-photo-tile.component.html', | ||
styleUrls: ['./square-photo-tile.component.scss'], | ||
}) | ||
export class SquarePhotoTileComponent { | ||
@Input({ required: true }) image: string = `${environment.assetPrefix}code-sample.png`; | ||
@Input() subtitle?: string; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/app/shared/components/contact-me-banner/contact-me-banner.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
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