Skip to content

Commit

Permalink
Update styles given feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
maxatdetroit committed Jun 17, 2024
1 parent 2f74215 commit 49e72e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions src/components/organisms/ArticleCard/ArticleCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
.text-container {
position: absolute;
box-sizing: border-box;
padding: 0.5em;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: 1em;
padding-right: 1em;
width: 100%;
height: 20%;
height: 40%;
bottom: 0;
left: 0;
transition:
Expand All @@ -25,7 +28,7 @@
.card-container:hover .text-container {
box-sizing: border-box;
height: 100%;
padding-top: 40%;
padding-top: 30%;
}

.subtitle-container {
Expand Down
8 changes: 4 additions & 4 deletions src/stories/articlecard.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export default {
args: {
src: 'https://placehold.co/300x400',
title:
'<h3 class="text-center text-light" style="text-transform: uppercase; font-weight: 900;">The Great Money Transfer</h3>',
'<h2 class="text-center text-light" style="text-transform: uppercase; font-weight: 900; font-size: 42px;">The Great Money Transfer</h2>',
subTitle:
'<h5 class="text-center text-success" style="text-transform: uppercase; font-weight: 900;">The Power of Generational Wealth</h4>',
'<h3 class="text-center text-success" style="text-transform: uppercase; font-weight: 700; font-size: 26px; line-height: 116%;">The Power of Generational Wealth</h3>',
color: 'primary',
href: 'https://www.example.com',
target: '_blank',
Expand Down Expand Up @@ -62,7 +62,7 @@ function _createArticleCard(args) {
title.slot = 'title';
articleCardElt1.appendChild(title);
} else {
const title = document.createElement('h3');
const title = document.createElement('h2');
title.innerText = args.title;
title.classList.add('text-center');
title.slot = 'title';
Expand All @@ -74,7 +74,7 @@ function _createArticleCard(args) {
subTitle.slot = 'subtitle';
articleCardElt1.appendChild(subTitle);
} else {
const subTitle = document.createElement('h4');
const subTitle = document.createElement('h3');
subTitle.innerText = args.subTitle;
subTitle.classList.add('text-center');
subTitle.slot = 'subtitle';
Expand Down

0 comments on commit 49e72e7

Please sign in to comment.