-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBanner.tsx
More file actions
30 lines (25 loc) · 765 Bytes
/
Banner.tsx
File metadata and controls
30 lines (25 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React from "react";
import classnames from "classnames";
import styles from "./Banner.module.scss";
const Row: React.FC = ({ children }) => (
<div className="row justify-content-centerrr">{children}</div>
);
const Column: React.FC = ({ children }) => (
<div className="col">{children}</div>
);
export interface PageBannerProps {
title: string;
text: string;
}
export const PageBanner: React.FC<PageBannerProps> = ({ title, text }) => (
<div className={classnames("container-fluid py-4", styles.container)}>
<div className="container-md">
<Row>
<Column>
<h1 className="text-white display-3">{title}</h1>
<p className="text-white mt-4 fs-3">{text}</p>
</Column>
</Row>
</div>
</div>
);