Various design improvements

This commit is contained in:
Moris Zen
2018-08-27 15:24:23 +02:00
parent bd3d3724da
commit 7f0b27dac4
6 changed files with 43 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ class AboutPage extends Component {
<div> <div>
<PageIntro <PageIntro
headline="Founded by developers" headline="Founded by developers"
text="...We know the challenges and pitfalls when creating modern software. ...Focused on creating solutions that make valuable impact" text="Saburly was founded in 2017 by experienced software developers that understand what it takes to create modern digital solutions. Our focus is on gathering and guiding the best talents in the industry in order to create digital experiences that make valuable impact."
image={IntroImage} image={IntroImage}
imgClasses="border-white border-8 rounded postImgContainer -mb-12" imgClasses="border-white border-8 rounded postImgContainer -mb-12"
/> />

View File

@@ -11,7 +11,7 @@ import FormImage from '../images/contact-web-consultancy.svg'
const ContactPage = () => ( const ContactPage = () => (
<div> <div>
<PageIntro <PageIntro
headline="Let's discover possibilities" headline="Let's connect & discover possibilities"
text="We are always on a lookout for exciting challenges. Feel free to contact us if you want to start something great or just find out more about what we do." text="We are always on a lookout for exciting challenges. Feel free to contact us if you want to start something great or just find out more about what we do."
sectionClasses="lg:mb-8" sectionClasses="lg:mb-8"
image={ContactImage} image={ContactImage}
@@ -106,14 +106,19 @@ const ContactPage = () => (
</section> </section>
<section className="bg-contact-form"> <section className="bg-contact-form">
<form className="mx-auto pt-16 p-6 max-w-md"> <form
<SectionIntro headline="Let's Connect" light /> action="https://formspree.io/info@saburly.com"
className="mx-auto pt-16 p-6 max-w-md"
method="POST"
>
<SectionIntro headline="Send us a message" light />
<div className="flex flex-wrap"> <div className="flex flex-wrap">
<input <input
className="appearance-none bg-transparent border-contact block w-full text-white py-2 border-grey-light" className="appearance-none bg-transparent border-contact block w-full text-white py-2 border-grey-light"
id="grid-first-name" id="grid-first-name"
type="text" type="text"
placeholder="Name" placeholder="Name"
name="name"
required required
/> />
@@ -122,6 +127,7 @@ const ContactPage = () => (
id="grid-first-name" id="grid-first-name"
type="text" type="text"
placeholder="Email" placeholder="Email"
name="_replyto"
required required
/> />
@@ -129,13 +135,15 @@ const ContactPage = () => (
className="appearance-none bg-transparent border-contact block w-full text-white py-2 border-grey-light" className="appearance-none bg-transparent border-contact block w-full text-white py-2 border-grey-light"
id="grid-last-name" id="grid-last-name"
type="text" type="text"
placeholder="Message..." name="message"
placeholder="Project description or message"
required required
/> />
</div> </div>
<button <button
className="mt-4 shadow bg-teal hover:bg-teal-light text-white py-2 px-4 rounded" className="mt-4 shadow bg-teal hover:bg-teal-light text-white py-2 px-4 rounded"
value="Send"
type="submit" type="submit"
> >
Send Send

View File

@@ -30,7 +30,7 @@ const IndexPage = ({ ...props }) => (
<h2 className="text-black pt-1 pb-2"> <h2 className="text-black pt-1 pb-2">
We{' '} We{' '}
<Typed <Typed
strings={['discover', 'code', 'design', 'maintain']} strings={['imagine', 'develop', 'design', 'maintain']}
typeSpeed={100} typeSpeed={100}
backSpeed={50} backSpeed={50}
backDelay={3000} backDelay={3000}
@@ -112,7 +112,7 @@ const IndexPage = ({ ...props }) => (
</section> </section>
<section className="text-center p-8 relative bg-saburly-lighter"> <section className="text-center p-8 relative bg-saburly-lighter">
<SectionIntro headline="Occasionally we find the time to publish" /> <SectionIntro headline="Occasionally we have fun & publish" />
<div className="container mx-auto w-full md:flex md:flex-wrap items-stretch w-full"> <div className="container mx-auto w-full md:flex md:flex-wrap items-stretch w-full">
{props.data.allWordpressPost.edges.map(({ node }) => ( {props.data.allWordpressPost.edges.map(({ node }) => (
<div key={node.id} className="md:w-1/2 p-2"> <div key={node.id} className="md:w-1/2 p-2">

View File

@@ -102,3 +102,11 @@
.typed-cursor { .typed-cursor {
color: #8e7cb7; color: #8e7cb7;
} }
h1,
h2,
h3,
h4,
h5 {
color: #032363 !important;
}

View File

@@ -10,8 +10,8 @@ class Blog extends Component {
return ( return (
<main> <main>
<PageIntro <PageIntro
headline="We are busy coding" headline="Bugs keep us busy"
text="but occasionally we find the time to have fun & publish" text="but occasionally we have fun & publish"
sectionClasses="mb-16 lg:mb-4" sectionClasses="mb-16 lg:mb-4"
/> />
<div className="container mx-auto p-4 w-full md:flex md:flex-wrap items-stretch w-full"> <div className="container mx-auto p-4 w-full md:flex md:flex-wrap items-stretch w-full">

View File

@@ -1,4 +1,4 @@
import React, { Component } from 'react'; import React, { Component } from 'react'
import Helmet from 'react-helmet' import Helmet from 'react-helmet'
class PostDefault extends Component { class PostDefault extends Component {
render() { render() {
@@ -9,23 +9,30 @@ class PostDefault extends Component {
title={`${data.wordpressPost.title} - Saburly.com`} title={`${data.wordpressPost.title} - Saburly.com`}
meta={[ meta={[
{ name: 'description', content: 'We code & design great software' }, { name: 'description', content: 'We code & design great software' },
{ name: 'keywords', content: 'software, design, coding, programming, code, consulting' }, {
name: 'keywords',
content:
'software, design, coding, programming, code, consulting',
},
]} ]}
/> />
<h1>Specific Post - {data.wordpressPost.title}</h1> <main className="container mx-auto p-4 sm:p-10">
<h1>Slug - {data.wordpressPost.slug}</h1> <h1>Specific Post - {data.wordpressPost.title}</h1>
<div dangerouslySetInnerHTML={{ <h1>Slug - {data.wordpressPost.slug}</h1>
__html: data.wordpressPost.content <div
}} dangerouslySetInnerHTML={{
/> __html: data.wordpressPost.content,
}}
/>
</main>
</div> </div>
); )
} }
} }
export const query = graphql` export const query = graphql`
query PostDefaultQuery($slug: String!) { query PostDefaultQuery($slug: String!) {
wordpressPost(slug: {eq: $slug}) { wordpressPost(slug: { eq: $slug }) {
title title
slug slug
content content
@@ -33,4 +40,4 @@ export const query = graphql`
} }
` `
export default PostDefault; export default PostDefault