This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
123 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from "react" | ||
import { FaTwitter, FaLinkedin, FaFacebook } from "react-icons/fa" | ||
import ShareIcon from "../Share/share-icon" | ||
import styled from "styled-components" | ||
|
||
const ShareArea = styled.div` | ||
svg { | ||
width: 30px; | ||
height: 30px; | ||
margin-right: var(--spacing); | ||
} | ||
` | ||
|
||
const ShareCont = ({ facebook, twitter, linkedin, href }) => { | ||
return ( | ||
<ShareArea> | ||
<h4>Share This</h4> | ||
{twitter && ( | ||
<ShareIcon shareUrl={`https://twitter.com/intent/tweet?url=${href}`}> | ||
<FaTwitter /> | ||
</ShareIcon> | ||
)} | ||
{facebook && ( | ||
<ShareIcon | ||
shareUrl={`https://www.facebook.com/sharer.php?u=${href}%2F`} | ||
> | ||
<FaFacebook /> | ||
</ShareIcon> | ||
)} | ||
{linkedin && ( | ||
<ShareIcon | ||
shareUrl={`https://www.linkedin.com/sharing/share-offsite/?url=${href}`} | ||
> | ||
<FaLinkedin /> | ||
</ShareIcon> | ||
)} | ||
</ShareArea> | ||
) | ||
} | ||
|
||
export default ShareCont |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react" | ||
import { Link } from "gatsby" | ||
|
||
const ShareIcon = ({ shareUrl, children }) => { | ||
return ( | ||
<Link to={shareUrl} target="_blank" rel="noopenner noreferrer"> | ||
{children} | ||
</Link> | ||
) | ||
} | ||
|
||
export default ShareIcon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
--- | ||
title: Tesla Roadster | ||
description: Some information about the Tesla can be found here | ||
title: Duis convallis eget elit eget efficitur | ||
description: Aliquam erat volutpat. Suspendisse potenti. Aenean eget tellus neque | ||
date: 2019-08-26 | ||
path: /tesla-roadster | ||
featuredImage: ./images/dark-design.jpg | ||
path: /duis-convallis-eget | ||
featuredImage: ./images/trees.jpg | ||
tags: ["data", "seo"] | ||
author: Morgan Baker | ||
--- | ||
|
||
Standard page content that can be used with this starter. | ||
Quisque sit amet mi sapien. Aenean at magna vel turpis fringilla lacinia. Sed vulputate neque vitae augue posuere tempor. Praesent ut sagittis ipsum. Nulla volutpat at augue a vulputate. Etiam molestie est vel pretium imperdiet. Duis a sem tristique, dapibus sapien a, rutrum dui. Nunc non lectus quis urna iaculis feugiat in eu orci. Vestibulum pretium luctus justo, non convallis ante dignissim vel. Nam tristique ante vitae vehicula tincidunt. Proin vel nibh eu nunc porta laoreet at a velit. Proin blandit tincidunt eros nec placerat. | ||
|
||
Aenean eros sem, mollis nec tempus eu, semper quis tellus. Etiam vel porta massa. Morbi ac congue sapien, a auctor magna. Nunc vel viverra quam. Sed semper hendrerit lacus laoreet scelerisque. Morbi elit leo, auctor sed lectus sed, maximus condimentum enim. Vivamus vel tellus sit amet odio dignissim sagittis ac ut est. Sed ante justo, pharetra in tincidunt ut, feugiat eu ex. Maecenas vel ante velit. Duis dignissim lobortis ante vel porta. Donec suscipit lobortis blandit. Ut sagittis sed augue quis porta. Donec nec lorem tincidunt, sagittis urna vel, tristique justo. Ut dapibus congue facilisis. Ut eget consequat lorem. Donec leo tellus, bibendum in arcu at, finibus rutrum velit. | ||
|
||
Maecenas vel volutpat velit. Duis convallis eget elit eget efficitur. Duis est turpis, convallis in pellentesque id, sollicitudin ac sem. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin purus lacus, porta sed ante ut, blandit ultrices ligula. Praesent massa diam, hendrerit in scelerisque eget, efficitur eu nisi. Proin turpis risus, fringilla eu interdum eget, blandit non eros. Nullam condimentum eu nunc sit amet pretium. Suspendisse vulputate congue odio, interdum feugiat nulla commodo quis. Nulla est purus, auctor a pellentesque sit amet, consequat eget massa. Praesent non mattis erat. Ut tincidunt lacinia metus, vitae vulputate augue vehicula ut. | ||
|
||
Sed eu aliquet dolor. Nullam vitae tempor tellus. Vivamus eget elementum leo. Etiam dolor erat, tincidunt ut erat et, hendrerit tincidunt dolor. Vivamus pretium luctus nisi, quis sodales diam varius ac. Etiam mattis velit in dui gravida, ut rutrum urna accumsan. Aliquam facilisis in orci eu mollis. Morbi vel nisi pulvinar mi tincidunt aliquet. Donec at dictum eros. Sed ac consectetur ex. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ blockquote { | |
|
||
hr { | ||
border: 0.1rem solid var(--primaryColor); | ||
opacity: 0.25; | ||
opacity: 0.15; | ||
} | ||
|
||
ul, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters