-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201 from Infineon/165-rework-card-component-resol…
…ve-overflow-icon-and-image-boolean-issues-implement-new-structure 165 rework card component resolve overflow icon and image boolean issues implement new structure
- Loading branch information
Showing
37 changed files
with
16,538 additions
and
2,942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
examples/wrapper-components/react-javascript/src/components/Card/Card.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import { IfxCard, IfxCardHeadline, IfxButton, IfxCardOverline, IfxCardText, IfxCardImage, IfxCardLinks } from '@infineon/infineon-design-system-react'; | ||
|
||
function Card() { | ||
return ( | ||
<IfxCard href="http://google.com" target="_blank" direction="vertical"> | ||
<IfxCardImage position="right" src="https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg" alt="" slot="img"></IfxCardImage> | ||
<IfxCardOverline>Overline</IfxCardOverline> | ||
<IfxCardHeadline>Headline</IfxCardHeadline> | ||
<IfxCardText> | ||
Some quick example text to build on the card title and make up the bulk of the card's content | ||
</IfxCardText> | ||
<IfxCardLinks slot="buttons"> | ||
<IfxButton color='primary'>Button</IfxButton> | ||
<IfxButton color='primary'>Button</IfxButton> | ||
</IfxCardLinks> | ||
</IfxCard> | ||
); | ||
} | ||
|
||
export default Card; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
examples/wrapper-components/react-typescript/src/components/Card/Card.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
import { IfxCard, IfxCardHeadline, IfxButton, IfxCardOverline, IfxCardText, IfxCardImage, IfxCardLinks } from '@infineon/infineon-design-system-react'; | ||
|
||
function Card() { | ||
return ( | ||
<IfxCard href="http://google.com" target="_blank" direction="vertical"> | ||
<IfxCardImage position="right" src="https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg" alt="" slot="img"></IfxCardImage> | ||
<IfxCardOverline>Overline</IfxCardOverline> | ||
<IfxCardHeadline>Headline</IfxCardHeadline> | ||
<IfxCardText> | ||
Some quick example text to build on the card title and make up the bulk of the card's content | ||
</IfxCardText> | ||
<IfxCardLinks slot="buttons"> | ||
<IfxButton color='primary'>Button</IfxButton> | ||
<IfxButton color='primary'>Button</IfxButton> | ||
</IfxCardLinks> | ||
</IfxCard> | ||
); | ||
} | ||
|
||
export default Card; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
examples/wrapper-components/vue-javascript/src/components/Card.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
|
||
<template> | ||
<div> | ||
<h2>Card</h2> | ||
<ifx-card href="http://google.com" target="_blank" direction="vertical"> | ||
<ifx-card-image position="right" src="https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg" alt="" slot="img"></ifx-card-image> | ||
|
||
<ifx-card-overline>Overline</ifx-card-overline> | ||
<ifx-card-headline>Headline</ifx-card-headline> | ||
<ifx-card-text>This is a long description in order to test if the text will overflow its container or not. So I am typing even more text. And more and more. This is a long description in order to test if the text will overflow its container or not. So I am typing even more text. And more and more. This is a long description in order to test if the text will overflow its container or not. So I am typing even more text. And more and more. This is a long description in order to test if the text will overflow its container or not. So I am typing even more text. And more and more.This is a long description in order to test if the text will overflow its container or not. So I am typing even more text. And more and more. This is a long description in order to test if the text will overflow its container or not. So I am typing even more text. And more and more.This is a long description in order to test if the text will overflow its container or not. So I am typing even more text. And more and more. This is a long description in order to test if the text will overflow its container or not. So I am typing even more text. And more and more.</ifx-card-text> | ||
|
||
<ifx-card-links slot="buttons"> | ||
<ifx-button color="primary">Button</ifx-button> | ||
<ifx-button color="secondary">Button</ifx-button> | ||
</ifx-card-links> | ||
</ifx-card> | ||
<br /> | ||
<br /> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
</script> | ||
|
||
|
||
|
Oops, something went wrong.