From 93b27177753d02d3ff17ef4fb8dc86b178ef0254 Mon Sep 17 00:00:00 2001 From: Sven Brodny Date: Mon, 19 Feb 2024 23:58:41 +0100 Subject: [PATCH] refactor: simple animations challenge template --- .../src/app/app.component.ts | 72 +++++++++++-------- 1 file changed, 41 insertions(+), 31 deletions(-) diff --git a/apps/angular/simple-animations/src/app/app.component.ts b/apps/angular/simple-animations/src/app/app.component.ts index c194f4a..f3d710e 100644 --- a/apps/angular/simple-animations/src/app/app.component.ts +++ b/apps/angular/simple-animations/src/app/app.component.ts @@ -4,11 +4,24 @@ import { Component } from '@angular/core'; standalone: true, imports: [], selector: 'app-root', + styles: ` + .column { + @apply flex flex-1 flex-col gap-5; + } + + .list-item { + @apply flex flex-row border-b px-5 pb-2; + + span { + @apply flex-1; + } + } + `, template: `
-
+
-

2008

+

2008

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae mollitia sequi accusantium, distinctio similique laudantium eveniet @@ -18,7 +31,7 @@ import { Component } from '@angular/core';

-

2010

+

2010

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae mollitia sequi accusantium, distinctio similique laudantium eveniet @@ -28,7 +41,7 @@ import { Component } from '@angular/core';

-

2012

+

2012

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae mollitia sequi accusantium, distinctio similique laudantium eveniet @@ -38,41 +51,38 @@ import { Component } from '@angular/core';

-
-
-
-
Name:
-
Samuel
-
+
+
+ Name: + Samuel +
-
-
Age:
-
28
-
+
+ Age: + 28 +
-
-
Birthdate:
-
02.11.1995
-
+
+ Birthdate: + 02.11.1995 +
-
-
City:
-
Berlin
-
+
+ City: + Berlin +
-
-
Language:
-
English
-
+
+ Language: + English +
-
-
Like Pizza:
-
Hell yeah
-
+
+ Like Pizza: + Hell yeah
`, - styles: [''], }) export class AppComponent {}