Skip to content

Commit

Permalink
Merge pull request #9 from swve/feat/kit
Browse files Browse the repository at this point in the history
✨ add gitstorykit page
  • Loading branch information
swve authored Jun 21, 2022
2 parents d472696 + c2860bf commit cb5ac73
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default function Footer(props) {
</Link>
</li>
<li>
<Link href={`https://github.com/swve/gitstorykit`}>
<a target={"_blank"}>Kit</a>
<Link href={`/kit`}>
<a >Kit</a>
</Link>
</li>
<li>
Expand Down
141 changes: 141 additions & 0 deletions pages/kit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
import Footer from "@components/Footer/Footer";
import Header from "@components/Header/Header";
import React from "react";
import styled from "styled-components";

function About() {
return (
<>
<GradientHeader>
<Header disable_api_usage_check title={`Kit`} desc="A light git time machine JavaScript library"></Header>
<AboutWrapper>
<img src="/img/gitstorykit_transparent.png" height="60" /> <h1>A light git time machine JavaScript library</h1>
<AboutElements>
<InstallBox>
<p>
npm install <b>gitstorykit</b>
</p>
</InstallBox>
</AboutElements>
<LinkToReadme>
<a target={"_blank"} href="https://github.com/swve/gitstorykit/blob/master/README.md">
README.md
</a>
</LinkToReadme>
<MadeBy>
<p>
Made with{" "}
<span role="img" aria-label="heart">
💜
</span>{" "}
by{" "}
<a target={"_blank"} href="https://twitter.com/sw3ave">
<img src="/img/sweave.png" height="12" alt="" />
</a>
</p>
</MadeBy>
</AboutWrapper>
</GradientHeader>
<Footer></Footer>
</>
);
}

const LinkToReadme = styled.div`
margin: auto;
margin-top: 50px;
-webkit-text-decoration: underline;
text-decoration: underline;
color: #ffffff;
text-underline-offset: 8px;
font-size: 1.2rem;
font-weight: bold;
cursor: pointer;
`;

const MadeBy = styled.div`
display: flex;
justify-content: center;
align-items: center;
padding-top: 30px;
padding-bottom: 20px;
img {
margin-top: 0px !important;
}
`;

const InstallBox = styled.div`
display: flex;
margin: auto;
background-color: #09090a5c;
color: white;
font-family: Monaco, sans-serif;
font-weight: 500;
border-radius: 12px;
padding: 9px 30px 9px 30px;
`;

const AboutElements = styled.div`
display: flex;
margin-top: 70px;
justify-content: space-between;
margin-left: 120px;
margin-right: 120px;
@media (max-width: 768px) {
margin-left: 60px;
margin-right: 60px;
}
flex-wrap: wrap;
`;

const AboutWrapper = styled.div`
text-align: center;
img {
margin-top: 140px;
}
h1 {
margin-top: 0px;
width: 700px;
margin: auto;
padding-top: 20px;
font-size: 45px;
line-height: 42px;
letter-spacing: -1.2px;
@media (max-width: 768px) {
width: 90%;
line-height: 25px;
font-weight: bolder;
font-size: 25px !important;
}
}
`;

const GradientHeader = styled.div`
height: 820px;
padding-left: 130px;
padding-right: 130px;
@media (max-width: 768px) {
padding-left: 60px;
padding-right: 60px;
}
padding-top: 30px;
background: linear-gradient(180deg, #09090a 0%, rgba(39, 49, 55, 0.52) 100%),
linear-gradient(228.87deg, rgba(69, 80, 174, 0.54) 9.05%, rgba(227, 9, 88, 0.27) 51.25%, rgba(255, 255, 255, 0) 84.11%),
linear-gradient(243.33deg, #4c15eb 5.62%, #245aaa 36.13%, rgba(221, 50, 13, 0.71) 127.92%);
h1 {
padding-top: 20px;
font-size: 45px;
}
// media query for mobile
@media (max-width: 1500px) {
height: 800px;
}
`;
export default About;
2 changes: 1 addition & 1 deletion pages/sponsoring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const SponsoInfo = styled.div`
background-color: #171d21e6;
-webkit-backdrop-filter: saturate(180%) blur(14px);
backdrop-filter: saturate(180%) blur(14px);
margin: auto;
padding: 50px;
padding-top: 10px;
width: fit-content;
Expand Down
Binary file added public/img/gitstorykit_transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cb5ac73

Please sign in to comment.