Skip to content

Commit 1386fd7

Browse files
committed
re-designed solutions page
1 parent 8697d9b commit 1386fd7

File tree

1 file changed

+38
-39
lines changed

1 file changed

+38
-39
lines changed

src/pages/solutions.js

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,52 @@ import Img from "gatsby-image"
66
import Layout from "../templates/layout"
77
import Link from "../components/link"
88
import SEO from "../components/seo"
9-
import { Flex, H1, H2, H4, P } from "bricks"
9+
import Title from "../components/title"
10+
import { Flex, H1, H2, H4, P ,Box} from "bricks"
1011

1112
const SolutionsContainer = ({ title, children }) => (
12-
<React.Fragment>
13-
<H2>{title}</H2>
13+
<Box mb='5'>
14+
<Box
15+
bg='#ddd'
16+
width={[1, 1/2]}
17+
padding={1}
18+
borderRadius={4}
19+
mb="1"
20+
>
21+
<Title mt={0} borderWidth={0} fontSize={3}>{title}</Title>
22+
</Box>
1423
<Flex flexWrap="wrap" justifyContent={["center", "flex-start"]}>
1524
{children}
1625
</Flex>
17-
</React.Fragment>
26+
</Box>
1827
)
1928

2029
const Solution = ({ title, image, link }) => (
2130
<Link to={link}>
22-
<Flex
23-
alignItems="center"
24-
justifyContent="center"
25-
flexDirection="column"
26-
padding={2}
31+
<Box
32+
bg='#fff'
2733
margin={1}
28-
height={250}
29-
width={250}
34+
borderRadius={4}
3035
border="1px solid #ddd"
3136
>
32-
<Img
33-
fixed={image}
34-
objectFit="contain"
35-
objectPosition="50% 50%"
36-
alt={title}
37-
/>
38-
<H4 textAlign="center">{title}</H4>
39-
</Flex>
37+
<Flex
38+
alignItems="center"
39+
justifyContent="center"
40+
flexDirection="column"
41+
padding={2}
42+
height={250}
43+
width={250}
44+
borderRadius={3}
45+
>
46+
<Img
47+
fixed={image}
48+
objectFit="contain"
49+
objectPosition="50% 50%"
50+
alt={title}
51+
/>
52+
<H4 textAlign="center">{title}</H4>
53+
</Flex>
54+
</Box>
4055
</Link>
4156
)
4257

@@ -72,8 +87,10 @@ const SolutionPage = ({ data }) => (
7287
image={data.reactLogo.publicURL}
7388
url="https://codebrahma.com/solutions"
7489
/>
75-
<H1>Our Solutions</H1>
76-
<P>We have great expertise in building web and mobile apps.</P>
90+
<Box mb='4'>
91+
<H1>Our Solutions</H1>
92+
<P>We have great expertise in building web and mobile apps.</P>
93+
</Box>
7794

7895
<SolutionsContainer title="Web">
7996
<Solution
@@ -86,16 +103,6 @@ const SolutionPage = ({ data }) => (
86103
image={data.nodejsLogo.childImageSharp.fixed}
87104
link="/node-js-development-company"
88105
/>
89-
<Solution
90-
title="Rails"
91-
image={data.railsLogo.childImageSharp.fixed}
92-
link="/ruby-on-rails-developers-consulting-bangalore"
93-
/>
94-
<Solution
95-
title="Angular"
96-
image={data.angularLogo.childImageSharp.fixed}
97-
link="/angularjs-development-company"
98-
/>
99106
<Solution
100107
title="Serverless"
101108
image={data.serverlessLogo.childImageSharp.fixed}
@@ -115,14 +122,6 @@ const SolutionPage = ({ data }) => (
115122
link="/serviceprogressive-web-applications"
116123
/>
117124
</SolutionsContainer>
118-
119-
<SolutionsContainer title="Others">
120-
<Solution
121-
title="Financial Software Development"
122-
image={data.financeLogo.childImageSharp.fixed}
123-
link="/financial-software-development-company"
124-
/>
125-
</SolutionsContainer>
126125
</Layout>
127126
)
128127

0 commit comments

Comments
 (0)