aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhant Khare <[email protected]>2021-04-13 11:38:42 +0530
committerSiddhant Khare <[email protected]>2021-04-13 11:38:42 +0530
commit4274b14841230596639da773b006c79fe40145ab (patch)
treefda004d0f03238ff16df8ec3aeb4ab818aa1b4eb
parentDocumentation fix (diff)
downloadctrl-v-4274b14841230596639da773b006c79fe40145ab.tar.xz
ctrl-v-4274b14841230596639da773b006c79fe40145ab.zip
fixed Watermark CSS and Updated Copyright year
-rw-r--r--frontend/src/components/Footer.js45
-rw-r--r--frontend/src/components/Watermark.js54
2 files changed, 57 insertions, 42 deletions
diff --git a/frontend/src/components/Footer.js b/frontend/src/components/Footer.js
index 4afc7ba..b487e6e 100644
--- a/frontend/src/components/Footer.js
+++ b/frontend/src/components/Footer.js
@@ -1,27 +1,32 @@
-import React from 'react';
-import styled from 'styled-components'
+import React from "react";
+import styled from "styled-components";
const SpacedFooter = styled.div`
- & > p {
- font-size: 0.8em;
- }
- & a {
- color: ${p => p.theme.colors.text};
- }
-`
+ & > p {
+ font-size: 0.8em;
+ }
+ & a {
+ color: ${(p) => p.theme.colors.text};
+ }
+`;
const Link = (props) => {
- return (
- <a href={props.link} target="_blank" rel="noopener noreferrer">{props.name}</a>
- );
-}
+ return (
+ <a href={props.link} target="_blank" rel="noopener noreferrer">
+ {props.name}
+ </a>
+ );
+};
const Footer = () => {
- return (
- <SpacedFooter>
- <p>(c) 2020 // <Link link="https://jzhao.xyz/" name="jacky" />, <Link link="https://ryanmehri.tech/" name="ryan" /></p>
- </SpacedFooter>
- );
-}
+ return (
+ <SpacedFooter>
+ <p>
+ (c) 2021 // <Link link="https://jzhao.xyz/" name="jacky" />,{" "}
+ <Link link="https://ryanmehri.tech/" name="ryan" />
+ </p>
+ </SpacedFooter>
+ );
+};
-export default Footer; \ No newline at end of file
+export default Footer;
diff --git a/frontend/src/components/Watermark.js b/frontend/src/components/Watermark.js
index 2f6c8c6..8f71f10 100644
--- a/frontend/src/components/Watermark.js
+++ b/frontend/src/components/Watermark.js
@@ -3,30 +3,40 @@ import React from "react";
import Footer from "./Footer";
const Logo = styled.div`
- position: fixed;
- bottom: 1em;
- left: 2em;
- opacity: 0.3;
- transition: opacity 0.5s cubic-bezier(.25,.8,.25,1);
-
- &:hover {
- opacity: 1;
- }
+ position: fixed;
+ bottom: 1em;
+ left: 2em;
+ opacity: 0.3;
+ transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
+
+ &:hover {
+ opacity: 1;
+ }
- & > h1 {
- font-size: 50px;
- margin: 0 0;
-
- & > a {
- text-decoration: none;
- position: relative;
- color: ${p => p.theme.colors.text};
- }
+ & > h1 {
+ font-size: 50px;
+ margin: 0 0;
+
+ & > a {
+ text-decoration: none;
+ position: relative;
+ color: ${(p) => p.theme.colors.text};
}
-`
-export const Watermark = () => <Logo>
+ }
+
+ @media (max-width: 960px) {
+ position: relative;
+ bottom: 6.5em;
+ display: grid;
+ left: -6em;
+ font-size: 10px;
+ }
+`;
+export const Watermark = () => (
+ <Logo>
<h1>
- <a href="https://github.com/jackyzha0/ctrl-v">ctrl-v</a>
+ <a href="https://github.com/jackyzha0/ctrl-v">ctrl-v</a>
</h1>
<Footer />
-</Logo> \ No newline at end of file
+ </Logo>
+);