diff --git a/projects/ngx-cream-lib/src/lib/card/card.component.css b/projects/ngx-cream-lib/src/lib/card/card.component.css index 53ddfd3..3928e72 100644 --- a/projects/ngx-cream-lib/src/lib/card/card.component.css +++ b/projects/ngx-cream-lib/src/lib/card/card.component.css @@ -1,10 +1,43 @@ .card { box-shadow: 0px 3px 6px #00000029; border-radius: 8px; - padding: 1rem; background-color: white; + max-width: 300px; +} + +.card-content { + padding: 1rem; } h2 { - margin-bottom: 0.5rem; -} \ No newline at end of file + margin-bottom: 1rem; +} + +a.link-button { + position: relative; + display: inline-flex; + align-items: center; + gap: 1em; + width: fit-content; + text-decoration: none; + color: white; + background-color: rgb(92, 92, 173); + padding: 0.75rem 1.5rem; + border-radius: 2em; + margin-top: 1rem; + } + + a.link-button:hover { + background-color: rgb(7, 7, 158); + } + + .picture { + display: flex; + justify-content: center; + width: 100%; + } + + .picture img { + border-top-left-radius: 8px; + border-top-right-radius: 8px; + } \ No newline at end of file diff --git a/projects/ngx-cream-lib/src/lib/card/card.component.html b/projects/ngx-cream-lib/src/lib/card/card.component.html index f0d463b..4c8136d 100644 --- a/projects/ngx-cream-lib/src/lib/card/card.component.html +++ b/projects/ngx-cream-lib/src/lib/card/card.component.html @@ -1,4 +1,15 @@
diff --git a/projects/ngx-cream-lib/src/lib/card/card.component.ts b/projects/ngx-cream-lib/src/lib/card/card.component.ts index e20d516..64f9604 100644 --- a/projects/ngx-cream-lib/src/lib/card/card.component.ts +++ b/projects/ngx-cream-lib/src/lib/card/card.component.ts @@ -7,4 +7,8 @@ import { Component, Input } from '@angular/core'; }) export class CardComponent { @Input() title: string = ''; + @Input() titleLevel = '3'; + @Input() imageName = ''; + @Input() linkUrl = ""; + @Input() labelButton = ""; } diff --git a/src/app/pages/card-page/card-page.component.html b/src/app/pages/card-page/card-page.component.html index 7aee36a..e4b8988 100644 --- a/src/app/pages/card-page/card-page.component.html +++ b/src/app/pages/card-page/card-page.component.html @@ -3,7 +3,7 @@