Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 55 additions & 1 deletion content-scripts/pages/components_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ import { Table } from "../components/Table";
import Icon from "../components/Icon";
import Card from "../components/Card";
import { Accordion } from "../components/Accordion";
const components = ["Icon", "Button", "Table", "Cards", "Accordion"];

const components = [
"Icon",
"Button",
"Table",
"Cards",
"Accordion",
"Text components",
];

export function createComponentsPage() {
// TODO: remove this check
if (!document.location.href.toLowerCase().includes("components")) {
Expand Down Expand Up @@ -318,6 +327,51 @@ button ={<Button title="Button" variant="solid" size="sm" color="primary"/>}
/>
</Accordion>
</Component>

{/* Text Components */}
<Component
name="Text Components"
description="Text Components used to standardize headers, text and other text elements"
code={`
<div style="display: flex; flex-direction: column; align-items: center; margin: 0 auto;">

<h1 id="se-header-large" style="color:black;">Large Header</h1>
<h2 id="se-header-medium" style="color:black;">Medium Header</h2>
<h3 id="se-header-small" style="color:black;">Small Header</h3>

<h4 id="se-page-title">Page Title</h4>
<h4 id="se-subtitle">Subtitle</h4>

<p id="se-body-text">This is some text</p>
<p id="se-small-text">This is a small text</p>

<p id="se-description">This is as description text</p>
</div>
</Component>
</div>
</div>
`}
>
<div style="display: flex; flex-direction: column; align-items: center; margin: 0 auto;">
<h1 id="se-header-large" style="color:black;">
Large Header
</h1>
<h2 id="se-header-medium" style="color:black;">
Medium Header
</h2>
<h3 id="se-header-small" style="color:black;">
Small Header
</h3>

<h4 id="se-page-title">Page Title</h4>
<h4 id="se-subtitle">Subtitle</h4>

<p id="se-body-text">This is some text</p>
<p id="se-small-text">This is a small text</p>

<p id="se-description">This is as description text</p>
</div>
</Component>
</div>
</div>
);
Expand Down
108 changes: 108 additions & 0 deletions css/components.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/* variables */
:root {
/* color */
--primary-color: black;
--header-text-color: white;
--text-color: #333;
--descriptions-color: #676767;
--hover-color: rgb(140, 45, 25);

/* Fonts */
--font-primary: "Roboto", sans-serif;

/* Font sizes */
--header-large: 30px;
--header-medium: 28px;
--header-small: 22px;
--subtitle-size: 20px;
--body-text: 17px;
--small-text: 14px;
--description-size: 12px;

/* utilities */
--bold-weight: 550;
--semibold-weight: 525;
--regular-weight: 400;
--italic-style: italic;
}

/* Button */
.se-button {
/* Reset Sigarra Styles */
Expand Down Expand Up @@ -223,3 +251,83 @@
}
}
}

/* text components */
/*headers */
#se-header-large {
font-family: var(--font-primary);
font-size: var(--header-large);
color: var(--header-text-color);
font-weight: var(--bold-weight);
line-height: 1.3;
text-transform: capitalize;
margin-bottom: 10px;
}

#se-header-medium {
font-family: var(--font-primary);
font-size: var(--header-medium);
font-weight: var(--semibold-weight);
color: var(--header-text-color);
line-height: 1.3;
text-transform: capitalize;
margin-bottom: 10px;
}

#se-header-small {
font-family: var(--font-primary);
font-size: var(--header-small);
font-weight: var(--semibold-weight);
color: var(--header-text-color);
line-height: 1.4;
text-transform: capitalize;
margin-bottom: 10px;
}

#se-page-title {
font-family: var(--font-primary);
font-size: var(--header-large);
color: var(--primary-color);
font-weight: var(--bold-weight);
line-height: 1.3;
text-transform: capitalize;
margin-top: 20px;
margin-bottom: 25px;
}
#se-subtitle {
font-family: var(--font-primary);
font-size: var(--subtitle-size);
font-weight: var(--bold-weight);
color: var(--primary-color);
line-height: 1.3;
margin-bottom: 15px;
}

/* body text */
#se-body-text {
font-family: var(--font-primary);
font-size: var(--body-text);
font-weight: var(--regular-weight);
color: var(--text-color);
line-height: 1.5;
margin-bottom: 10px;
line-height: 1.8;
}

#se-small-text {
font-family: var(--font-primary);
font-size: var(--small-text);
font-weight: var(--regular-weight);
color: var(--text-color);
line-height: 1.5;
margin-bottom: 8px;
}

#se-description {
/* code for notes or table collumns names */
font-family: var(--font-primary);
font-size: var(--description-size);
font-weight: var(--regular-weight);
color: var(--descriptions-color);
border-radius: 5px;
}