Skip to content

Commit

Permalink
quoteblock
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne committed Oct 30, 2024
1 parent 3ed62a3 commit 855fbed
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 10 deletions.
12 changes: 10 additions & 2 deletions src/components/customerCases/customerCase/CustomerCase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,16 @@ function CustomerCaseSection({
return (
section.quote && (
<div className={styles.quoteBlock}>
<Text>{section.quote}</Text>
{section.author && <Text>- {section.author}</Text>}
<div className={styles.quoteBlockInner}>
<Text type="quoteNormal">
{"“"}
{section.quote}
{"”"}
</Text>
{section.author && (
<Text type="labelRegular">- {section.author}</Text>
)}
</div>
</div>
)
);
Expand Down
24 changes: 17 additions & 7 deletions src/components/customerCases/customerCase/customerCase.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,21 @@
}

.quoteBlock {
border: 2px solid #f1c40f; /* Yellow border */
border-radius: 8px; /* Rounded corners */
padding: 16px; /* Inner padding */
background-color: #f9f9f9; /* Light background */
color: #333; /* Text color */
max-width: 400px; /* Set max-width if desired */
font-family: Arial, sans-serif; /* Basic font */
align-self: center;
max-width: 960px;
width: 100%;
border: 2px solid var(--primary-yellow-warning);
border-radius: 0.5rem;
background-color: var(--primary-yellow-warning);
}

.quoteBlockInner {
display: flex;
flex-direction: column;
background-color: var(--primary-bg);
border-radius: 1.5rem;
padding: 1rem;
gap: 1.25rem;
width: 100%;
align-items: center;
}
8 changes: 7 additions & 1 deletion src/components/text/text.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,10 @@
/* .labelSemibold, */
/* .labelBold, */
/* .quoteItalic, */
/* .quoteNormal, */

.quoteNormal {
font-size: 1.5rem;
font-style: normal;
font-weight: 400;
line-height: 130%;
}
1 change: 1 addition & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ html {
--secondary-off-white2: #ece1d3;

--primary-red-error: #b30b0b;
--primary-yellow-warning: #ffd02f;

--focus-color: #8b0f40;

Expand Down

0 comments on commit 855fbed

Please sign in to comment.