1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-26 06:19:36 +02:00

Apps grid

This commit is contained in:
unknown 2021-05-09 18:36:55 +02:00
parent 7199e296b8
commit 0502a653ac
12 changed files with 171 additions and 13 deletions

View file

@ -1,7 +1,10 @@
.HeadlineTitle {
color: var(--color-primary);
font-weight: 700;
}
.HeadlineSubtitle {
color: var(--color-primary);
margin-bottom: 20px;
font-weight: 400;
}

View file

@ -3,13 +3,13 @@ import classes from './Headline.module.css';
interface ComponentProps {
title: string;
subtitle?: string;
subtitle?: string | JSX.Element;
}
const Headline = (props: ComponentProps): JSX.Element => {
return (
<Fragment>
<h2 className={classes.HeadlineTitle}>{props.title}</h2>
<h1 className={classes.HeadlineTitle}>{props.title}</h1>
{props.subtitle && <p className={classes.HeadlineSubtitle}>{props.subtitle}</p>}
</Fragment>
)

View file

@ -0,0 +1,7 @@
.SectionHeadline {
text-transform: uppercase;
color: var(--color-primary);
font-weight: 900;
font-size: 20px;
margin-bottom: 16px;
}

View file

@ -0,0 +1,13 @@
import classes from './SectionHeadline.module.css';
interface ComponentProps {
title: string;
}
const SectionHeadline = (props: ComponentProps): JSX.Element => {
return (
<h2 className={classes.SectionHeadline}>{props.title}</h2>
)
}
export default SectionHeadline;

View file

@ -1,4 +1,22 @@
.Container {
width: 100%;
padding: var(--space-p-x);
padding: 20px;
}
/* 320px 480px: Mobile devices.
481px 768px: iPads, Tablets.
769px 1024px: Small screens, laptops.
1025px 1200px: Desktops, large screens.
1201px and more Extra large screens, TV. */
@media (min-width: 769px) {
.Container {
padding: 25px 40px;
}
}
@media (min-width: 1201px) {
.Container {
padding: 50px 250px;
}
}