From 5b1002d1710face2c0971e065630518cfb804d95 Mon Sep 17 00:00:00 2001 From: kunlinl Date: Fri, 22 Dec 2023 16:03:26 +0800 Subject: [PATCH] chore: move link to a mat-card at the bottom of the list --- src/app/app.component.html | 5 +---- src/di/mock.ts | 9 ++++---- .../gallery-home/gallery-home.component.html | 21 ++++++++++++++++--- .../gallery-home/gallery-home.component.scss | 20 ++++++++++++++++++ 4 files changed, 44 insertions(+), 11 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index ed36af4..f8f009f 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,10 +1,7 @@
P5 Lab - A collection of creative coding with p5.js which is learned, inspired by - {{ '@TheCodingTrain' }} - and - {{ '@Frankslaboratory' }} + A collection of creative coding with p5.js github-icon diff --git a/src/di/mock.ts b/src/di/mock.ts index f9978e4..94a86cc 100644 --- a/src/di/mock.ts +++ b/src/di/mock.ts @@ -1,10 +1,10 @@ import {InjectionToken} from "@angular/core"; export interface Artifact { - type: 'harmonic' | 'gravity' | 'pixel' | 'raining' - title: string; + type: 'harmonic' | 'gravity' | 'pixel' | 'raining' | 'possibility'; + title?: string; description?: string; - preview: string; + preview?: string; } export const ArtifactToken = new InjectionToken('gallery-list'); @@ -13,5 +13,6 @@ export const MOCK_ARTIFACTS: Artifact[] = [ {type: 'harmonic', title: 'Harmonic Motion', preview: 'assets/images/harmonic-preview.png'}, {type: 'gravity', title: 'Gravity', preview: 'assets/images/gravity-preview.png'}, {type: 'pixel', title: 'Pixels', preview: 'assets/images/image-preview.png'}, - {type: 'raining', title: 'Raining', preview: 'assets/images/raining-preview.png'} + {type: 'raining', title: 'Raining', preview: 'assets/images/raining-preview.png'}, + {type: 'possibility', title: 'Keep Exploring...' }, ] diff --git a/src/gallery/gallery-home/gallery-home.component.html b/src/gallery/gallery-home/gallery-home.component.html index cd354f3..307f51b 100644 --- a/src/gallery/gallery-home/gallery-home.component.html +++ b/src/gallery/gallery-home/gallery-home.component.html @@ -7,12 +7,27 @@ @if (artifact.preview) { } @else { - Developing + + + } - - + + } + + +

These ideas were learned or inspired by +

+ {{ '@TheCodingTrain' }} +

+

and

+

+ {{ '@Frankslaboratory' }} +

+

Thanks to them and keep enjoying creative coding.

+ + diff --git a/src/gallery/gallery-home/gallery-home.component.scss b/src/gallery/gallery-home/gallery-home.component.scss index 30fb20f..ee67272 100644 --- a/src/gallery/gallery-home/gallery-home.component.scss +++ b/src/gallery/gallery-home/gallery-home.component.scss @@ -26,3 +26,23 @@ } } +.matter-text { + text-transform: uppercase; + display: inline-block; + font-weight: bold; + + color: transparent; + background: linear-gradient(8deg, #da49e7 15%, #9154de, #2ac6d5, #1fea8e 85%); + background-size: 200% 200%; + -webkit-background-clip: text; + + animation: bg-effect 2s alternate infinite; + @keyframes bg-effect { + from { + background-position: left; + } + to { + background-position: right; + } + } +}