Skip to content

Commit

Permalink
fix: website design and links (#78)
Browse files Browse the repository at this point in the history
includes:
- #72 
- #70 
- #68 
 - adding and loading google Inter font
 - setting dark mode as the default theme
  • Loading branch information
ainvoner committed Nov 15, 2022
1 parent 348f0c4 commit 0c0b56b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
15 changes: 6 additions & 9 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ const slackUrl = 'https://winglang.slack.com';

const docsRepoUrl = 'https://github.com/winglang/docsite';
const winglangRepoUrl = 'https://github.com/winglang/wing';
const twitterUrl = 'https://twitter.com/winglangio';
const stackOverflowUrl = 'https://stackoverflow.com/questions/tagged/winglang';

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Wing',
tagline: 'Maximum cloud, minimum DevOps',
url: process.env.DOCUSAURUS_URL || 'https://docs.winglang.io',
url: process.env.DOCUSAURUS_URL || 'https://winglang.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
Expand Down Expand Up @@ -48,11 +47,11 @@ const config = {
const sidebarItems = await defaultSidebarItemsGenerator(args);
return reverseSidebarItems(sidebarItems);
},
editUrl: docsRepoUrl,
editUrl: winglangRepoUrl,
},
blog: {
showReadingTime: true,
editUrl: docsRepoUrl,
editUrl: winglangRepoUrl,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand All @@ -62,10 +61,11 @@ const config = {

themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
defaultMode: 'dark',
navbar: {
title: 'Wing',
logo: {
alt: 'Wing Logo', src: 'img/logo.svg',
alt: 'Wing Logo', src: 'img/logo.svg', srcDark: 'img/logo-dark.svg',
},
items: [
{
Expand All @@ -91,7 +91,7 @@ const config = {
className: 'header-slack-link'
},
{
href: docsRepoUrl,
href: winglangRepoUrl,
"aria-label": "GitHub repository",
label: ' ',
position: 'right',
Expand All @@ -117,9 +117,6 @@ const config = {
{
label: 'Slack', href: slackUrl,
},
{
label: 'Twitter', href: twitterUrl,
},
],
},
{
Expand Down
20 changes: 14 additions & 6 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/* You can override the default Infima variables here. */
:root {
font-family: 'Inter', 'Effra Trial', sans-serif;
--ifm-color-primary: #1c273d;
--ifm-color-primary-dark: #192337;
--ifm-color-primary-darker: #182134;
Expand All @@ -27,13 +28,15 @@
/*#47aca6*/
/* 8bded9 */
/* 8fece6 */
font-family: 'Inter', 'Effra Trial', sans-serif;
--ifm-color-primary: #8fece6;
--ifm-color-primary-dark: #23bab1;
--ifm-color-primary-darker: #21b0a7;
--ifm-color-primary-darkest: #1b918a;
--ifm-color-primary-light: #36d9cf;
--ifm-color-primary-lighter: #40dbd2;
--ifm-color-primary-lightest: #5fe1d9;
--ifm-navbar-link-hover-color: #2ad5c1;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

Expand All @@ -46,15 +49,20 @@
}

.header-slack-link:before {
background: url("https://cdn.bfldr.com/5H442O3W/at/pl546j-7le8zk-f7789y/Slack_Mark_Monochrome_Black.png?auto=webp&format=png&width=40&height=40")
no-repeat;
background: url("https://cdn.bfldr.com/5H442O3W/at/pl546j-7le8zk-7i2nrx/Slack_Mark_Monochrome_Black.svg?auto=webp&format=png&width=24&height=24 ") no-repeat;
content: "";
display: flex;
height: 40px;
width: 40px;
height: 24px;
width: 24px;
}


html[data-theme='dark'] .header-slack-link:before {
background: url("https://cdn.bfldr.com/5H442O3W/at/pl546j-7le8zk-j7mis/Slack_Mark_Monochrome_White.svg?auto=webp&format=png&width=24&height=24") no-repeat;
content: "";
display: flex;
height: 24px;
width: 24px;
}

.header-github-link {
margin-right: 1rem;
Expand All @@ -80,4 +88,4 @@
html[data-theme='dark'] .header-github-link:before {
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
no-repeat;
}
}
1 change: 1 addition & 0 deletions static/img/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 0c0b56b

@vercel
Copy link

@vercel vercel bot commented on 0c0b56b Nov 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

website – ./

docsite-omega.vercel.app
winglang.io
website-git-main-monada.vercel.app
website-monada.vercel.app

Please sign in to comment.