-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathApp.jsx
54 lines (46 loc) · 1.11 KB
/
App.jsx
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import GlobalStyles, { breakpoints } from "./styles/GlobalStyles";
import Footer from "./ui/Footer";
import Form from "./ui/Form";
import Sidebar from "./ui/Sidebar";
import styled from "styled-components";
const StyledApp = styled.main`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
`;
const Container = styled.div`
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 12rem 1fr;
min-height: 100dvh;
max-width: ${breakpoints.md};
width: 100%;
@media screen and (min-width: ${breakpoints.md}) {
grid-template-columns: 18rem 1fr;
grid-template-rows: minmax(35rem, auto);
margin-top: auto;
padding: 1rem;
background-color: var(--white);
border-radius: 16px;
min-height: unset;
gap: 3rem;
}
`;
function App() {
return (
<>
<GlobalStyles />
<StyledApp>
<h1 className="sr-only">Multi Step Form Solution - Frontend Mentor</h1>
<Container>
<Sidebar />
<Form />
</Container>
<Footer />
</StyledApp>
</>
);
}
export default App;