Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
description: `We are TypeTech, a group of devs dedicated to Open Sourcing and freelancing software with cutting edge technologies`,
author: `@typetech`,
location: `Currently outsourcing only in the Americas 🌎`,
siteUrl: "https://typetech.vercel.app",
},
plugins: [
`gatsby-plugin-react-helmet`,
Expand All @@ -19,8 +20,8 @@ module.exports = {
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
name: `typetech-website`,
short_name: `typetech`,
start_url: `/`,
background_color: `#039be5`,
theme_color: `#039be5`,
Expand All @@ -39,6 +40,7 @@ module.exports = {
],
},
},
`gatsby-plugin-robots-txt`,
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"gatsby-plugin-offline": "^3.2.7",
"gatsby-plugin-prefetch-google-fonts": "^1.4.3",
"gatsby-plugin-react-helmet": "^3.3.2",
"gatsby-plugin-robots-txt": "^1.5.3",
"gatsby-plugin-sharp": "^2.6.9",
"gatsby-source-filesystem": "^2.3.8",
"gatsby-transformer-sharp": "^2.5.3",
Expand Down
12 changes: 3 additions & 9 deletions src/components/Layout/footer.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import React from "react"
import PropTypes from "prop-types"
import Logomain from "../logomain"
import "../../styles/footer.css"


const Footer = ({ siteTitle }) => {
return (
<>
<footer>
<div className="container-footer-all">
<div className="container-body">
<div className="column1">
<Logomain />
{siteTitle}
</div>
</div>
</div>
<footer className="Footer-Container">

<div className="container-footer">
<div className="footer">
<div className="copyright">2020 TypeTech | All rights reserved</div>
Expand Down
147 changes: 48 additions & 99 deletions src/components/Layout/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { useContext, Fragment } from "react"
import Logomain from "../logomain"
import styled from "@emotion/styled"
import { ModeContext } from "../../context/ModeContext"
import "../../styles/header.css"

const WrapperDiv = styled.div`
position: sticky;
Expand All @@ -12,14 +13,6 @@ const WrapperDiv = styled.div`
z-index: 10;
`

const Head = styled.header`
background-color: var(--xstyled-colors-bg, #292929);
border-bottom-width: 1px;
border-bottom-style: solid;
border-color: var(--xstyled-colors-border, #1976d2);
padding: 16px 0px;
`

const InsideDiv = styled.div`
max-width: 1200px;
padding-left: 20px;
Expand All @@ -43,26 +36,14 @@ const LogoContainer = styled.div`
margin-right: 16px;
`

const SVG = styled.svg`
fill: #ffffff;
transition:fill 0.15s ease;
&:hover {
fill:#039be5;
cursor: pointer;
}
@media screen and (max-width: 600px) {
margin-right: 40px;
width: 30px;
}
`
const Title = styled.h2`
display: block;
font-weight: 900;
font-size: 20px;
line-height: 0.9;
margin: 0px 0px 0px 10px;
color: #1476a2;
animation: logotextanimation 2s alternate infinite;
color: #007bb7;

`

const MainLink = styled.a`
Expand All @@ -75,36 +56,6 @@ const MainLink = styled.a`
text-decoration: none;
`

const ComboLanguage = styled.select`
font-size: 17px;
font: inherit;
outline: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
line-height: -4vh;
text-rendering: auto;
width: 100%;
border-radius: 0.5rem;
border: 2px solid #5a5a5a;
background: #333;
color: white;
padding-left: 40px;
padding-right: 20px;
padding-bottom:8px;
padding-top:8px;
transition: border-color 0.15s ease;
cursor: pointer;

&:focus {
border: 2px solid #039be5;
}

@media (max-width: 700px) {
display: none;
}
`

const NavList = styled.nav`
height: 40px;
margin-left: 10px;
Expand Down Expand Up @@ -133,41 +84,10 @@ const NavItems = styled.li`
line-height: 1.2;
`

const NavLinks = styled.a`
appearance: none;
color: #fff;
display: flex;
padding: 0px 10px;
background-color: transparent;
border: 0px;
transition: color 300ms ease 0s;
cursor: pointer;
text-decoration: none;

&:hover {
color: #039be5;
text-decoration: none;
}
`

const SmallContainer = styled.div`
overflow: auto;
`

const SvG = styled.svg`
position: absolute;
left: 8px;
top: 8px;
z-index: 1;
user-select: none;
pointer-events: none;
fill: white;

@media (max-width: 700px) {
display: none;
}
`

const ButtonSwitch = styled.button`
appearance: none;
display: flex;
Expand All @@ -180,13 +100,12 @@ const ButtonSwitch = styled.button`
`

const Header = ({ siteTitle }) => {

const { mode, setMode } = useContext(ModeContext);

const { mode, setMode } = useContext(ModeContext)

return (
<Fragment>
<WrapperDiv>
<Head>
<header className={mode ? "Main-Header-Dark" : "Main-Header"}>
<InsideDiv>
<InsideInsideDiv>
<LogoContainer>
Expand Down Expand Up @@ -216,49 +135,79 @@ const Header = ({ siteTitle }) => {
position: "relative",
}}
>
<SvG
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
className={mode ? "svg-icon-dark" : "svg-icon-light"}
>
<path d="M21 21h-1.713l-.658-1.846h-3l-.663 1.846h-1.659l3.04-8h1.603l3.05 8zm-2.814-3.12l-1.049-3.018-1.054 3.018h2.103zm2.814-5.88c.552 0 1 .449 1 1v8c0 .551-.448 1-1 1h-8c-.552 0-1-.449-1-1v-8c0-.551.448-1 1-1h8zm0-2h-8c-1.656 0-3 1.343-3 3v8c0 1.657 1.344 3 3 3h8c1.657 0 3-1.343 3-3v-8c0-1.657-1.343-3-3-3zm-15.855-2.114c.039.58.103 1.115.195 1.593-1.225.224-1.275-.984-.195-1.593zm8.855-4.886v5h-1c-.742 0-1.441.173-2.076.465-.195-.806-.783-1.53-1.68-1.964.078-.298.123-.522.167-.744l-1.35-.261c-.022.112-.063.327-.135.613-.455-.067-.94-.075-1.431-.026.011-.329.032-.653.06-.963h1.508v-1.278h-1.327c.065-.326.121-.521.176-.705l-1.316-.396c-.098.323-.178.64-.26 1.101h-1.504v1.278h1.341c-.036.414-.058.842-.064 1.275-1.48.544-2.109 1.581-2.109 2.521 0 1.11.876 2.086 2.261 1.96 1.72-.156 2.868-1.456 3.542-3.053.885.536.838 1.161.772 1.552-.965.913-1.575 2.196-1.575 3.625v1h-5c-1.656 0-3-1.343-3-3v-8c0-1.657 1.344-3 3-3h8c1.657 0 3 1.343 3 3zm-7.5 4.467c.328-.042.658-.05.97-.026-.214.476-.497.948-.857 1.319-.054-.396-.092-.83-.113-1.293z" />
</SvG>
<ComboLanguage>
</svg>
<label htmlFor="Language" hidden={true}>
Change your language
</label>
<select name="Language" className={mode ? "Combo-Dark" : "Combo-light"}>
<option>English</option>
<option>Spanish</option>
</ComboLanguage>
</select>
</div>
</div>
<SmallContainer>
<NavList>
<NavInnerList>
<NavItems>
<NavLinks href="/#!">Pricing</NavLinks>
<a
className={
mode ? "NavLink-Element-Dark" : "NavLink-Element"
}
href="/#!"
>
Pricing
</a>
</NavItems>
<NavItems>
<a
className={
mode ? "NavLink-Element-Dark" : "NavLink-Element"
}
href="/#contact_section"
>
Contact us
</a>
</NavItems>
<NavItems>
<NavLinks href="/#contact_section">Contact us</NavLinks>
<a
className={
mode ? "NavLink-Element-Dark" : "NavLink-Element"
}
href="/#!"
>
Blog
</a>
</NavItems>
<NavItems>
<ButtonSwitch onClick={() => setMode(!mode)}>
<ButtonSwitch onClick={() => setMode(!mode)} name="Switch mode" aria-hidden="true">
{!mode ? (
<SVG
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
className="svg-moon"
>
<path d="M22 12c0 5.514-4.486 10-10 10-4.826 0-8.864-3.436-9.797-7.99 3.573.142 6.903-1.818 8.644-5.013 1.202-2.206 1.473-4.679.83-6.992 5.608-.194 10.323 4.338 10.323 9.995zm-10-12c-1.109 0-2.178.162-3.197.444 3.826 5.933-2.026 13.496-8.781 11.128l-.022.428c0 6.627 5.373 12 12 12s12-5.373 12-12-5.373-12-12-12z" />
</SVG>
</svg>
) : (
<SVG
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
className="svg-sun"
>
<path d="M4.069 13h-4.069v-2h4.069c-.041.328-.069.661-.069 1s.028.672.069 1zm3.034-7.312l-2.881-2.881-1.414 1.414 2.881 2.881c.411-.529.885-1.003 1.414-1.414zm11.209 1.414l2.881-2.881-1.414-1.414-2.881 2.881c.528.411 1.002.886 1.414 1.414zm-6.312-3.102c.339 0 .672.028 1 .069v-4.069h-2v4.069c.328-.041.661-.069 1-.069zm0 16c-.339 0-.672-.028-1-.069v4.069h2v-4.069c-.328.041-.661.069-1 .069zm7.931-9c.041.328.069.661.069 1s-.028.672-.069 1h4.069v-2h-4.069zm-3.033 7.312l2.88 2.88 1.415-1.414-2.88-2.88c-.412.528-.886 1.002-1.415 1.414zm-11.21-1.415l-2.88 2.88 1.414 1.414 2.88-2.88c-.528-.411-1.003-.885-1.414-1.414zm2.312-4.897c0 2.206 1.794 4 4 4s4-1.794 4-4-1.794-4-4-4-4 1.794-4 4zm10 0c0 3.314-2.686 6-6 6s-6-2.686-6-6 2.686-6 6-6 6 2.686 6 6z" />
</SVG>
</svg>
)}
</ButtonSwitch>
</NavItems>
Expand All @@ -267,7 +216,7 @@ const Header = ({ siteTitle }) => {
</SmallContainer>
</InsideInsideDiv>
</InsideDiv>
</Head>
</header>
</WrapperDiv>
</Fragment>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Reusable/SpanP.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from '@emotion/styled'

const SpanP=styled.span`
color: #039BE5;
color: #007bb7;
`;

export default SpanP;
12 changes: 6 additions & 6 deletions src/components/Stack/CardComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ const Card = ({ image, title, description }) => {
return (
<div>
<div className="courses-container">
<div className={mode ? "stacklogo-dark" : "stacklogo"}>
<div className={mode ? "course-preview-dark" : "course-preview"}>
<div className={mode ? "stacklogo-dark" : "stacklogo-light"}>
<div className={mode ? "card-preview-dark" : "card-preview"}>
<img
src={image}
alt={title}
className={mode ? "logo-dark" : "logo"}
className="logo-dark"
/>
</div>
<div className="course-info">
<div className="card-info">
<h2>{title}</h2>
<p>{description}</p>
</div>
</div>
</div>
<div className="courses-separate">
<div className={mode ? "course-preview-dark" : "course-preview-dark"}>
<div className="cards-separate">
<div className={mode ? "card-preview-dark" : "card-preview-dark"}>
<img
src={image}
alt={title}
Expand Down
Loading