Skip to content
Merged

Dev #19

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: 5 additions & 1 deletion components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function Footer(props) {
return (
<>
<FooterCopyright home={props.home}>
© 2022 Sweave &nbsp;&nbsp;⏤{" "}
© 2022 <a className="sweave-link" href="http://twitter.com/swveio" target={"_blank"}> Sweave</a> &nbsp;&nbsp;⏤{" "}
<ul>
<li>
<Link href={`/about`}>
Expand Down Expand Up @@ -81,6 +81,10 @@ const FooterCopyright: any = styled.div`
margin-top: ${(props: any) => (props.home ? "8%" : "2%")};
padding-bottom: ${(props: any) => (props.home ? "1.1%" : "1%")};

.sweave-link {
padding-left: 5px;

}
@media (max-width: 768px) {
font-size: 10px;
}
Expand Down
12 changes: 12 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import('next-sitemap').IConfig} */
const config = {
siteUrl: process.env.WEBSITE_HOST || "https://gitstory.app",
generateRobotsTxt: true,
exclude: [
"/404",
"/repo-not-found"
],
outDir: "public",
};

module.exports = config;
55 changes: 55 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"export": "next build && next export"
},
Expand All @@ -23,6 +24,7 @@
"next": "^12.1.0",
"next-auth": "^4.10.3",
"next-plausible": "^3.1.9",
"next-sitemap": "^3.1.15",
"nextjs-progressbar": "^0.0.14",
"prop-types": "^15.7.2",
"react": "17.0.2",
Expand Down
19 changes: 18 additions & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Document, { DocumentContext } from "next/document";
import Document, { Html, Head, Main, NextScript, DocumentContext } from 'next/document'
import { ServerStyleSheet } from "styled-components";

export default class MyDocument extends Document {
Expand All @@ -21,4 +21,21 @@ export default class MyDocument extends Document {
sheet.seal();
}
}

render() {
return (
<Html>
<Head>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;800&display=swap"
rel="stylesheet"
/>
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
}
2 changes: 1 addition & 1 deletion pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function About() {
💜
</span>{" "}
by{" "}
<a target={"_blank"} href="https://twitter.com/sw3ave">
<a target={"_blank"} href="https://twitter.com/swveio">
<img src="/img/sweave.png" height="12" alt="" />
</a>
</p>
Expand Down
2 changes: 1 addition & 1 deletion pages/kit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function About() {
💜
</span>{" "}
by{" "}
<a target={"_blank"} href="https://twitter.com/sw3ave">
<a target={"_blank"} href="https://twitter.com/swveio">
<img src="/img/sweave.png" height="12" alt="" />
</a>
</p>
Expand Down
1 change: 0 additions & 1 deletion services/example_repos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const repos = [
"torvalds/linux",
"apple/swift",
"chromium/chromium",
"mozilla/firefox",
"twbs/bootstrap",
"facebook/react-native",
"python/cpython",
Expand Down
1 change: 0 additions & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;800&display=swap");

html,
body {
Expand Down