Skip to content

Commit

Permalink
card component and card page
Browse files Browse the repository at this point in the history
  • Loading branch information
Bammez committed Feb 22, 2024
1 parent 82315ff commit 8657100
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
4 changes: 0 additions & 4 deletions projects/ngx-cream-lib/src/lib/card/card.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
padding: 1rem;
}

h2 {
margin-bottom: 1rem;
}

a.link-button {
position: relative;
display: inline-flex;
Expand Down
7 changes: 2 additions & 5 deletions projects/ngx-cream-lib/src/lib/card/card.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
<img [src]="'../../../../../assets/img/' + imageName" alt="">
</p>
<div class="card-content">
<!-- <c3m-h [titleLevel]="titleLevel">
<c3m-h titleLevel="3">
{{ title }}
</c3m-h> -->
<h2>
{{ title }}
</h2>
</c3m-h>
<p><ng-content></ng-content></p>
<p><a class="link-button" [attr.href]="linkUrl">{{labelButton}}</a></p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-cream-lib/src/lib/card/card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Component, Input } from '@angular/core';
})
export class CardComponent {
@Input() title: string = '';
@Input() titleLevel = '3';
// @Input() cardtitleLevel = '';
@Input() imageName = '';
@Input() linkUrl = "";
@Input() labelButton = "";
Expand Down
4 changes: 3 additions & 1 deletion src/app/pages/card-page/card-page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h3>Card component</h3>

<c3m-tabs class="block-style" label="Demo and Code">

Check failure on line 4 in src/app/pages/card-page/card-page.component.html

View workflow job for this annotation

GitHub Actions / Run linters

Delete `··`
<c3m-tab-panel class="block-style" tabTitle="Demo" [isActive]="true">

Check failure on line 5 in src/app/pages/card-page/card-page.component.html

View workflow job for this annotation

GitHub Actions / Run linters

Delete `····`
<c3m-card title="Card Title" titleLevel="2" imageName="illu.jpg" linkUrl="portal/card" labelButton="Découvrir">
<c3m-card title="Card Title" titleLevel="2" imageName="illu.jpg" linkUrl="portal/card" labelButton="Découvrir" cardtitleLevel="5">

Check failure on line 6 in src/app/pages/card-page/card-page.component.html

View workflow job for this annotation

GitHub Actions / Run linters

Replace `······<c3m-card·title="Card·Title"·titleLevel="2"·imageName="illu.jpg"·linkUrl="portal/card"·labelButton="Découvrir"` with `<c3m-card⏎········title="Card·Title"⏎········titleLevel="2"⏎········imageName="illu.jpg"⏎········linkUrl="portal/card"⏎········labelButton="Découvrir"⏎·······`
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus natus quam maxime.

Check failure on line 7 in src/app/pages/card-page/card-page.component.html

View workflow job for this annotation

GitHub Actions / Run linters

Replace `··············Lorem·ipsum·dolor·sit·amet,·consectetur·adipisicing·elit.·Repellendus·natus·quam·maxime.·` with `········Lorem·ipsum·dolor·sit·amet,·consectetur·adipisicing·elit.·Repellendus·natus·quam·maxime.`
Repellat atque animi consequatur fugiat perferendis dicta cumque maiores minus rem facilis,

Check failure on line 8 in src/app/pages/card-page/card-page.component.html

View workflow job for this annotation

GitHub Actions / Run linters

Replace `··············Repellat·atque·animi·consequatur·fugiat·perferendis·dicta·cumque·maiores·minus·rem·facilis,·` with `········Repellat·atque·animi·consequatur·fugiat·perferendis·dicta·cumque·maiores·minus·rem·facilis,`
ex unde quo laborum sunt cupiditate.

Check failure on line 9 in src/app/pages/card-page/card-page.component.html

View workflow job for this annotation

GitHub Actions / Run linters

Delete `······`
Expand All @@ -12,7 +12,9 @@ <h3>Card component</h3>
<c3m-tab-panel class="block-style" tabTitle="Application">

Check failure on line 12 in src/app/pages/card-page/card-page.component.html

View workflow job for this annotation

GitHub Actions / Run linters

Delete `····`
<pre>
&lt;c3m-card title=&#34;Card Title&#34;&gt;
&lt;c3m-h titleLevel=&#34;titleLevel&#34;&gt; Title &lt;/c3m-h&gt;
&lt;NG-CONTENT&gt;
&lt;a href=&#34;linkUrl&#34;&gt; labelButton &lt;/a&gt;
&lt;/c3m-card&gt;
</pre>

Expand Down

0 comments on commit 8657100

Please sign in to comment.