Skip to content

Commit

Permalink
Improve website (#50)
Browse files Browse the repository at this point in the history
Improve website
- Updated logo
- Changed color scheme of the theme
  • Loading branch information
hello-shaharia-lab authored Sep 9, 2024
1 parent 398181f commit 60377ca
Show file tree
Hide file tree
Showing 9 changed files with 117 additions and 20 deletions.
7 changes: 4 additions & 3 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import * as path from "node:path";

const config: Config = {
title: 'SmartyPants',
tagline: 'Democratizing Generative AI. Start using Generative AI without any pre-requisite skills and domain knowledge.',
favicon: 'img/favicon.ico',
favicon: 'img/favicon.svg',

// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
Expand Down Expand Up @@ -66,10 +67,10 @@ const config: Config = {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'SmartyPants - Democratizing Generative AI',
title: 'SmartyPants',
logo: {
alt: 'SmartyPants Logo',
src: 'img/logo.svg',
src: 'img/logo_light.svg',
},
items: [
{
Expand Down
105 changes: 89 additions & 16 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,98 @@

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-color-primary: rgb(40, 44, 52);
--ifm-color-primary-dark: rgb(36, 40, 47);
--ifm-color-primary-darker: rgb(34, 37, 44);
--ifm-color-primary-darkest: rgb(28, 31, 36);
--ifm-color-primary-light: rgb(44, 48, 57);
--ifm-color-primary-lighter: rgb(46, 51, 60);
--ifm-color-primary-lightest: rgb(52, 57, 68);
--ifm-background-color: #ffffff;
--ifm-navbar-background-color: rgb(28, 31, 36); /* Darker navbar */
--ifm-navbar-link-color: #ffffff;
--ifm-navbar-link-hover-color: #e0e0e0;
--ifm-font-color-base: #333333;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
--docusaurus-highlighted-code-line-bg: rgba(40, 44, 52, 0.1);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
--ifm-color-primary: rgb(80, 88, 104);
--ifm-color-primary-dark: rgb(72, 79, 94);
--ifm-color-primary-darker: rgb(68, 75, 88);
--ifm-color-primary-darkest: rgb(56, 62, 73);
--ifm-color-primary-light: rgb(88, 97, 114);
--ifm-color-primary-lighter: rgb(92, 101, 120);
--ifm-color-primary-lightest: rgb(104, 114, 135);
--ifm-background-color: rgb(28, 31, 36);
--ifm-navbar-background-color: rgb(24, 26, 31); /* Slightly darker navbar for dark mode */
--ifm-navbar-link-color: #e0e0e0;
--ifm-navbar-link-hover-color: #ffffff;
--ifm-font-color-base: #e0e0e0;
--docusaurus-highlighted-code-line-bg: rgba(80, 88, 104, 0.3);
}

/* Additional custom styles */
.navbar__title {
font-weight: bold;
color: #ffffff;
}

.footer {
background-color: rgb(40, 44, 52);
color: #ffffff;
}

[data-theme='dark'] .footer {
background-color: rgb(34, 37, 44);
color: #e0e0e0;
}

/* Style adjustments for better contrast and readability */
.navbar__link {
color: var(--ifm-navbar-link-color);
}

.navbar__link:hover,
.navbar__link--active {
color: var(--ifm-navbar-link-hover-color);
}

.button--secondary {
color: var(--ifm-color-primary);
border-color: var(--ifm-color-primary);
}

.button--secondary:hover {
background-color: var(--ifm-color-primary);
color: #ffffff;
}

[data-theme='dark'] .button--secondary {
color: var(--ifm-color-primary-lightest);
border-color: var(--ifm-color-primary-lightest);
}

[data-theme='dark'] .button--secondary:hover {
background-color: var(--ifm-color-primary-lightest);
color: var(--ifm-background-color);
}

/* Adjust link colors for better visibility */
a {
color: rgb(60, 66, 78);
}

[data-theme='dark'] a {
color: rgb(120, 132, 156);
}

a:hover {
color: rgb(80, 88, 104);
}

[data-theme='dark'] a:hover {
color: rgb(140, 154, 182);
}
Binary file removed website/static/img/docusaurus-social-card.jpg
Binary file not shown.
Binary file removed website/static/img/docusaurus.png
Binary file not shown.
Binary file removed website/static/img/favicon.ico
Binary file not shown.
8 changes: 8 additions & 0 deletions website/static/img/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion website/static/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions website/static/img/logo_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/smarty-pants-social-card.jpg
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 60377ca

Please sign in to comment.