Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds license to site footer #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
17 changes: 15 additions & 2 deletions website/core/Footer.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
const React = require('react');
const React = require("react");

class Footer extends React.Component {
render() {
return null;
return (
<footer
style={{
padding: 25,
borderTop: "1px solid #000000",
textAlign: "center",
}}
>
<span
className="copyright"
dangerouslySetInnerHTML={{ __html: this.props.config.copyright }}
></span>
</footer>
);
}
}

Expand Down
68 changes: 38 additions & 30 deletions website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,54 +11,53 @@
// List of projects/orgs using your project for the users page.
const users = [
{
caption: 'User1',
caption: "User1",
// You will need to prepend the image path with your baseUrl
// if it is not '/', like: '/test-site/img/image.jpg'.
image: '/img/undraw_open_source.svg',
infoLink: 'https://www.facebook.com',
image: "/img/undraw_open_source.svg",
infoLink: "https://www.facebook.com",
pinned: true,
},
];

const siteConfig = {
title: 'Fashion', // Title for your website.
tagline: 'Providing sustainable fashion',
url: 'https://community.fixing.fashion', // Your website URL
title: "Fashion", // Title for your website.
tagline: "Providing sustainable fashion",
url: "https://community.fixing.fashion", // Your website URL
baseUrl: "/",
onPageNav: 'separate',
onPageNav: "separate",
// remove /docs/ prefix
docsUrl: "academy",
// For github.io type URLs, you would set the url and baseUrl like:
// url: 'https://facebook.github.io',
// baseUrl: '/test-site/',

// Used for publishing and more
projectName: 'fixing-fashion-academy',
organizationName: 'ONEARMY',
projectName: "fixing-fashion-academy",
organizationName: "ONEARMY",
// For top-level user or org sites, the organization is still the same.
// e.g., for the https://JoelMarcey.github.io site, it would be set like...
// organizationName: 'JoelMarcey'

// For no header links in the top nav bar -> headerLinks: [],
headerLinks: [
{ href: 'https://fixing.fashion', label: 'Back' },
],
headerLinks: [{ href: "https://fixing.fashion", label: "Back" }],

// If you have users set above, you add it here:
users,

/* path to images for header/footer */
headerIcon: 'img/logo.png',
footerIcon: 'img/favicon.ico',
favicon: 'img/favicon.ico',
headerIcon: "img/logo.png",
footerIcon: "img/favicon.ico",
favicon: "img/favicon.ico",

/* Colors for website */
colors: {
primaryColor: '#F82003',
secondaryColor: '#313131',
primaryColor: "#F82003",
secondaryColor: "#313131",
},
editUrl: "https://github.com/ONEARMY/fixing-fashion-academy/blob/master/docs/",

editUrl:
"https://github.com/ONEARMY/fixing-fashion-academy/blob/master/docs/",

/* Custom fonts for website */
/*
fonts: {
Expand All @@ -73,34 +72,43 @@ const siteConfig = {
},
*/
fonts: {
bodyFont: ["-apple-system", "BlinkMacSystemFont", "Segoe UI", "Helvetica", "Arial",
"sans-serif", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"]
bodyFont: [
"-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
"Helvetica",
"Arial",
"sans-serif",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
],
},

// This copyright info is used in /core/Footer.js and blog RSS/Atom feeds.
copyright: `Copyrightnow © ${new Date().getFullYear()} ONE ARMY`,
copyright: `All content licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>`,

highlight: {
// Highlight.js theme to use for syntax highlighting in code blocks.
theme: 'default',
theme: "default",
},

// Add custom scripts here that would be placed in <script> tags.

scripts: [
"https://buttons.github.io/buttons.js",
"/js/custom.js",
"https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js"
],
"https://buttons.github.io/buttons.js",
"/js/custom.js",
"https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js",
],

// On page navigation for the current documentation page.
onPageNav: 'separate',
onPageNav: "separate",
// No .html extensions for paths.
cleanUrl: true,

// Open Graph and Twitter card images.
ogImage: 'img/undraw_online.svg',
twitterImage: 'img/undraw_tweetstorm.svg',
ogImage: "img/undraw_online.svg",
twitterImage: "img/undraw_tweetstorm.svg",

// For sites with a sizable amount of content, set collapsible to true.
// Expand/collapse the links and subcategories under categories.
Expand Down