From 153c9af38c8d8675520a55a1a683f7665294acd6 Mon Sep 17 00:00:00 2001 From: Joachim Nielandt Date: Sat, 24 Mar 2018 12:06:08 +0100 Subject: [PATCH] added fancy top-animation of name and menu text --- src/app/app.component.html | 17 +++++++++-------- src/app/app.component.scss | 26 ++++++++++++++++++++++++++ src/app/app.component.ts | 10 ++++++++++ src/app/services/state.service.ts | 8 ++++---- 4 files changed, 49 insertions(+), 12 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 3829308..88fe98a 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,11 +1,14 @@
-
+
-
+
Joachim.Nielandt
+
@@ -14,12 +17,10 @@
- - - - - - + + + +
diff --git a/src/app/app.component.scss b/src/app/app.component.scss index 8da7161..f4c7c02 100644 --- a/src/app/app.component.scss +++ b/src/app/app.component.scss @@ -1,5 +1,9 @@ @import "../globals"; +#namerow { + height: 66pt; +} + .centercontents { text-align: center; margin-left: auto; @@ -10,6 +14,11 @@ //font-family: $mainFont; margin-top: 25px; padding-bottom: 9px; + font-size: 80%; + transition: font-size 0.15s ease-out; +} +#topname.active { + font-size: 100%; } #topname #first { @@ -51,3 +60,20 @@ color: darkorange; } } + +#highlightedlink { + transition: opacity 0.15s ease-out; + color: gray; + opacity: 0; + //background-color: aqua; + position: absolute; + width: 100%; + bottom: -3px; + left: 0px; + font-size: 89%; + text-align: center; +} + +#highlightedlink.active { + opacity: 1; +} diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 03980a0..1da1c41 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -9,6 +9,7 @@ declare var $: any; }) export class AppComponent implements OnInit { title = 'Joachim Homepage'; + mousingOver: string = null; constructor(private router:Router) {} @@ -23,4 +24,13 @@ export class AppComponent implements OnInit { default: return 'Unknown path'; } } + + mouseOver(s: string) { + console.log('mouseover!'+s); + this.mousingOver = s; + } + + mouseOut(s: string) { + this.mousingOver = null; + } } diff --git a/src/app/services/state.service.ts b/src/app/services/state.service.ts index 7f172a5..6d12c0c 100644 --- a/src/app/services/state.service.ts +++ b/src/app/services/state.service.ts @@ -41,14 +41,14 @@ export class StateService { } isActiveTag(tag:string):boolean { - console.log('isActive'); - console.log(this.tagFilter); + // console.log('isActive'); + // console.log(this.tagFilter); return this.tagFilter[tag]===true; } toggleTag(tag: string) { - console.log('toggle'); - console.log(this.tagFilter); + // console.log('toggle'); + // console.log(this.tagFilter); if(this.tagFilter[tag]==null) this.tagFilter[tag] = true; else