Skip to content

Commit 520fbe4

Browse files
authored
Merge pull request #42 from TryShape/Add-a-Landing-Page-#10
Add a landing page #10
2 parents dfcacd7 + 0fa6176 commit 520fbe4

6 files changed

Lines changed: 57 additions & 10 deletions

File tree

components/core/ExportShape.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ const ExportShape = ({ show, setShow, shape }) => {
208208
<Form.Group>
209209
<Form.Label>Export As</Form.Label>
210210
<div>
211-
<ToggleButtonGroup type="radio" name="options" defaultValue={1} variant="outline-dark" size="sm" defaultValue={exportData.type}>
212-
<ToggleButton id="tbg-radio-1" value={'png'} variant="outline-dark" onClick={() => setExportType('png')}>
211+
<ToggleButtonGroup type="radio" name="options" defaultValue={1} variant="outline-info" size="sm" defaultValue={exportData.type}>
212+
<ToggleButton id="tbg-radio-1" value={'png'} variant="outline-info" onClick={() => setExportType('png')}>
213213
PNG
214214
</ToggleButton>
215-
<ToggleButton id="tbg-radio-2" value={'jpeg'} variant="outline-dark" onClick={() => setExportType('jpeg')}>
215+
<ToggleButton id="tbg-radio-2" value={'jpeg'} variant="outline-info" onClick={() => setExportType('jpeg')}>
216216
JPEG
217217
</ToggleButton>
218-
<ToggleButton id="tbg-radio-3" value={'svg'} variant="outline-dark" onClick={() => setExportType('svg')}>
218+
<ToggleButton id="tbg-radio-3" value={'svg'} variant="outline-info" onClick={() => setExportType('svg')}>
219219
SVG
220220
</ToggleButton>
221221
</ToggleButtonGroup>

components/utils/NoShapeFound.js

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,55 @@
11
import React from 'react';
22

3+
// Bootstrap
4+
import Button from "react-bootstrap/Button";
5+
import ImgFeelingSad from '../../public/sorry-feeling.svg';
6+
7+
// Styled Component
8+
import styled from "styled-components";
9+
10+
// icons
11+
import { FiPlus } from 'react-icons/fi';
12+
13+
const PageWrapper = styled.div`
14+
display: flex;
15+
flex-direction: column;
16+
justify-content: center;
17+
position: absolute;
18+
align-items: center;
19+
width: 40%;
20+
top: 50%;
21+
left: 50%;
22+
transform: translate(-50%, -50%);
23+
text-align: center;
24+
25+
.title {
26+
margin-top: 1rem;
27+
font-size: var(--fs-lg);
28+
font-weight: var(--fw-bold);
29+
}
30+
31+
.desc {
32+
margin: 1rem 0 2rem 0;
33+
}
34+
35+
img {
36+
max-width: 300px;
37+
}
38+
39+
`;
40+
341
const NoShapeFound = () => {
442

543
return(
6-
<h1>No Shape Found!</h1>
44+
<PageWrapper>
45+
<img src={ImgFeelingSad} width="360"/>
46+
<h2 className="title">Whooops!</h2>
47+
<p className="desc">We couldn't find the shape you are looking for. Why dont you start creating a shape of your own choice? or try to refine your search. </p>
48+
<Button variant='secondary'>
49+
<FiPlus />
50+
Create Shape
51+
</Button>
52+
</PageWrapper>
753
)
854
};
955

components/utils/ShapeForm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ const ShapeForm = (props) => {
4646
value={props.shapeInformation.clipPathType}
4747
size="sm"
4848
>
49-
<ToggleButton value="polygon" variant="outline-dark" onChange={props.handleChange}>
49+
<ToggleButton value="polygon" variant="outline-info" onChange={props.handleChange}>
5050
Polygon
5151
</ToggleButton>
52-
<ToggleButton value="circle" variant="outline-dark" onChange={props.handleChange}>
52+
<ToggleButton value="circle" variant="outline-info" onChange={props.handleChange}>
5353
Circle
5454
</ToggleButton>
55-
<ToggleButton value="ellipse" variant="outline-dark" onChange={props.handleChange}>
55+
<ToggleButton value="ellipse" variant="outline-info" onChange={props.handleChange}>
5656
Ellipse
5757
</ToggleButton>
5858
</ToggleButtonGroup>

components/utils/ShapeList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const ShapeCreditsThumb = styled.img`
138138
border-radius: 50%;
139139
height: 32px;
140140
width: 32px;
141-
margin-right: 0.4rem;
141+
margin-right: 0.7rem;
142142
`;
143143

144144
const Playground = styled.div`

public/sorry-feeling.svg

Lines changed: 1 addition & 0 deletions
Loading

styles/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ code {
317317
padding: 0.6rem;
318318
width: 3.6rem;
319319
height: 3.6rem;
320-
border-width: 0.3rem;
320+
border-width: 0.13rem;
321321
}
322322

323323
/* Dropdown Menu */

0 commit comments

Comments
 (0)