Skip to content

Commit

Permalink
Minor style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ianvexler committed Feb 9, 2024
1 parent 4e5045a commit 209c217
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 24 deletions.
4 changes: 2 additions & 2 deletions dist/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,8 @@ h1, .h1 {
font-size: 3rem;
}
.main-nav .nav-link.active {
background-color: var(--texmo-bg-secondary);
color: var(--texmo-text-color);
background-color: var(--texmo-bg-secondary) !important;
color: var(--texmo-text-color) !important;
}

.logo {
Expand Down
4 changes: 2 additions & 2 deletions dist/index.es.css
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,8 @@ h1, .h1 {
font-size: 3rem;
}
.main-nav .nav-link.active {
background-color: var(--texmo-bg-secondary);
color: var(--texmo-text-color);
background-color: var(--texmo-bg-secondary) !important;
color: var(--texmo-text-color) !important;
}

.logo {
Expand Down
4 changes: 2 additions & 2 deletions dist/index.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.es.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22850,7 +22850,7 @@ Form$1.DateTime = FormDateTime;

var Title = function (_a) {
var text = _a.text, rest = __rest(_a, ["text"]);
return (React.createElement("h1", __assign$1({ className: "title" }, rest), text));
return (React.createElement("h1", __assign$1({ className: "fw-bold" }, rest), text));
};

var Card = function (_a) {
Expand Down Expand Up @@ -24290,7 +24290,7 @@ var InfoTileItem = function (_a) {
return (React.createElement(CardText$1, null,
React.createElement("span", { className: "d-flex mb-3 justify-content-between" },
text,
React.createElement("span", { className: "badge text-bg-".concat(theme, " p-2") }, value))));
React.createElement("span", { className: "badge bg-".concat(theme, " p-2") }, value))));
};

var InfoTile = function (_a) {
Expand All @@ -24300,7 +24300,7 @@ var InfoTile = function (_a) {
React.createElement(Col$1, { xs: "auto", className: "p-4 d-none d-md-block" },
React.createElement("div", { className: "segment p-4 h-100" },
React.createElement("i", { className: "bi bi-".concat(icon), style: { fontSize: '4rem' } }))),
React.createElement(Col$1, { className: "py-4" },
React.createElement(Col$1, { className: "py-4 me-4" },
React.createElement(Card$2.Body, null, children)))));
};
InfoTile.Item = InfoTileItem;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,8 @@ h1, .h1 {
font-size: 3rem;
}
.main-nav .nav-link.active {
background-color: var(--texmo-bg-secondary);
color: var(--texmo-text-color);
background-color: var(--texmo-bg-secondary) !important;
color: var(--texmo-text-color) !important;
}

.logo {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.js.map

Large diffs are not rendered by default.

49 changes: 45 additions & 4 deletions example/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,51 @@
import { Title } from '@the-curve-consulting/texmo-react-components';
import { InfoTile, Title } from '@the-curve-consulting/texmo-react-components';
import { Row, Col } from 'react-bootstrap';

const HomePage = () => {
return (
<div className='mt-5'>
<Title text='Home Page'/>
</div>
<>
<Row className="my-5">
<Title text='Dashboard'/>
</Row>

<Row className="g-4">
<Col xl={6}>
<InfoTile icon='calendar-check'>
<InfoTile.Title title='My Work Requests'/>

<InfoTile.Item text='Due in the next 24 hours' value={0} />
<InfoTile.Item text='Overdue' theme='danger' value={1} />
<InfoTile.Item text='Open Requests' value={1} />
</InfoTile>
</Col>
<Col xl={6}>
<InfoTile icon='clipboard-check'>
<InfoTile.Title title='My Work Requests'/>

<InfoTile.Item text='Due in the next 24 hours' value={0} />
<InfoTile.Item text='Overdue' theme='danger' value={1} />
<InfoTile.Item text='Open Requests' value={1} />
</InfoTile>
</Col>

<Col xl={6}>
<InfoTile icon='person-vcard'>
<InfoTile.Title title={'My Approvals'}/>

<InfoTile.Item text='Active' value={0} />
</InfoTile>
</Col>

<Col xl={6}>
<InfoTile icon='diagram-2'>
<InfoTile.Title title={'My Work Requests'}/>

<InfoTile.Item text='Active' value={0} />
<InfoTile.Item text='Drafts' theme='info' value={0} />
</InfoTile>
</Col>
</Row>
</>
)
}

Expand Down
4 changes: 2 additions & 2 deletions scss/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ h1 {
}

.nav-link.active {
background-color: var(--texmo-bg-secondary);
color: var(--texmo-text-color);
background-color: var(--texmo-bg-secondary) !important;
color: var(--texmo-text-color) !important;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/infoTile/InfoTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const InfoTile = ({ icon, children }: InfoTileProps) => {
<i className={`bi bi-${icon}`} style={{ fontSize: '4rem' }}></i>
</div>
</Col>
<Col className="py-4">
<Col className="py-4 me-4">
<Card.Body>{children}</Card.Body>
</Col>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion src/components/infoTile/components/InfoTileItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const InfoTileItem = ({
<CardText>
<span className="d-flex mb-3 justify-content-between">
{text}
<span className={`badge text-bg-${theme} p-2`}>{value}</span>
<span className={`badge bg-${theme} p-2`}>{value}</span>
</span>
</CardText>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/title/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface TitleProps extends React.HTMLProps<HTMLHeadingElement> {

const Title = ({ text, ...rest }: TitleProps) => {
return (
<h1 className="title" {...rest}>
<h1 className="fw-bold" {...rest}>
{text}
</h1>
);
Expand Down

0 comments on commit 209c217

Please sign in to comment.