Skip to content

Commit

Permalink
fix(testimonial): fix storybook arg names
Browse files Browse the repository at this point in the history
  • Loading branch information
Odisseas Simou committed Mar 9, 2022
1 parent 87975ba commit b9df52f
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 60 deletions.
13 changes: 11 additions & 2 deletions src/ui/Testimonial/Testimonial.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ export default {
type: { summary: 'string' },
},
},
image: {
avatarTitle: {
description: 'avatar title',
type: { summary: 'string' },
},
avatarInfo: {
description: 'avatar metadata',
type: { summary: 'string' },
},
avatarImage: {
description: 'testimonial image',
table: {
defaultValue: { summary: '""' },
Expand All @@ -30,7 +38,7 @@ export default {
const InlineTemplate = (args) => (
<Testimonial {...args}>
<Testimonial.Avatar
image_url={imgUrl}
image_url={args.avatarImage}
title={args.avatarTitle}
metadata={args.avatarInfo}
></Testimonial.Avatar>
Expand All @@ -45,6 +53,7 @@ export const Inline = InlineTemplate.bind({});
Inline.args = {
avatarTitle: 'Jane Doe',
avatarInfo: 'EEA Analyst',
avatarImage: imgUrl,
title: 'Amet - Lorem ipsum dolor sit amet',
quote:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
Expand Down
6 changes: 3 additions & 3 deletions theme/themes/eea/elements/loader.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
justify-content: center;
padding-bottom: 1em;
background: rgba(255, 255, 255, 0.95);
background-image: url('../assets/images/loaderImage.png');
background-position: center;
background-repeat: no-repeat;
border-radius: 72px 30px 0px 32px;
font-size: @bigFontSize;
font-weight: @loaderTextFontWeight;
background-image: url('../assets/images/loaderImage.png');
background-repeat:no-repeat;
background-position:center;
}
110 changes: 55 additions & 55 deletions theme/themes/eea/extras/publicationCard.less
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
@type: 'extra';
@element: 'publicationCard';

@import (multiple) '../../theme.config';

/*-------------------
Publication Card
--------------------*/

.eea.publication.card {
color: @publicationCardtextColor;
//position: relative;
height: @publicationCardHeight;
background-color: @publicationCardBackgroundColor;
display: flex;
flex-direction: column;
justify-content: space-between;

.header{
background-repeat: no-repeat;
background-position: center;
background-size: contain;
height: calc(100% - @cardDescripitonMaxHeight);
}

.descripiton {
background-color: @publicationCardDescripitonColor;
height: @cardDescripitonHeight;
padding: @cardDescripitonPadding;
//position: absolute;
//bottom: 0;
width: @cardDescripitonWidth;
max-height: @cardDescripitonMaxHeight;

.tag {
font-size: @cardDescripitonTagFontSize;
font-weight: @cardDescripitonTagFontWeight;
}

.text {
font-size: @cardDescripitonTextFontSize;
font-weight: @cardDescripitonTextFontWeight;
}
}
}

@media only screen and (min-width: @computerBreakpoint) {
.eea.publication.card {
margin: @publicationCardMargin;

.descripiton {
height: @computerCardDescripitonHeight;
}
}
}
@type: 'extra';
@element: 'publicationCard';

@import (multiple) '../../theme.config';

/*-------------------
Publication Card
--------------------*/

.eea.publication.card {
color: @publicationCardtextColor;
//position: relative;
height: @publicationCardHeight;
background-color: @publicationCardBackgroundColor;
display: flex;
flex-direction: column;
justify-content: space-between;

.header {
background-repeat: no-repeat;
background-position: center;
background-size: contain;
height: calc(100% - @cardDescripitonMaxHeight);
}

.descripiton {
background-color: @publicationCardDescripitonColor;
height: @cardDescripitonHeight;
padding: @cardDescripitonPadding;
//position: absolute;
//bottom: 0;
width: @cardDescripitonWidth;
max-height: @cardDescripitonMaxHeight;

.tag {
font-size: @cardDescripitonTagFontSize;
font-weight: @cardDescripitonTagFontWeight;
}

.text {
font-size: @cardDescripitonTextFontSize;
font-weight: @cardDescripitonTextFontWeight;
}
}
}

@media only screen and (min-width: @computerBreakpoint) {
.eea.publication.card {
margin: @publicationCardMargin;

.descripiton {
height: @computerCardDescripitonHeight;
}
}
}

0 comments on commit b9df52f

Please sign in to comment.