Skip to content

Commit

Permalink
Add logos and disable dark theme (#31)
Browse files Browse the repository at this point in the history
* Default to light mode and disable toggle to dark mode

- The contact iframe is only legible in light mode. Disable
 dark mode until it is being used.

* Add logos
  • Loading branch information
MustansirM authored Oct 29, 2023
1 parent 6763b66 commit d4a224b
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 12 deletions.
5 changes: 4 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
colorMode: {
defaultMode: 'light',
disableSwitch: true,
},
image: 'img/ocen-splash-screen.png',
navbar: {
title: 'OCEN',
Expand Down
36 changes: 32 additions & 4 deletions src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React from 'react';
import waveOneLenders from './wave-one-lenders.json';
import waveOneLoanAgents from './wave-one-loan-agents.json';
import waveOneTSPs from './wave-one-tsps.json';
import waveOneCreditGuaranteePartners from './wave-one-credit-guarantee-partners.json';
import HowItWorks from './HowItWorks';
import Spacer from '../components/Spacer';
import Link from '@docusaurus/Link';
Expand Down Expand Up @@ -44,7 +45,7 @@ const RESOURCES = [
function ResourcesSection() {
return (
<div className="z-0 bg-secondary-800">
<section className="my-20 px-6">
<section className="mb-10 px-6">
<div className="mx-auto max-w-5xl">
<span>IN THE NEWS</span>
<h2 className="lg:text-3xl">Read how OCEN is making waves</h2>
Expand Down Expand Up @@ -102,7 +103,7 @@ function Partners() {
</h2>
</div>
</div>
<Spacer height={10} />
<Spacer height={15} />
<div className="max-w-screen-xl mx-auto px-4 md:px-6 lg:px-8">
<div className="max-w-4xl mx-auto text-center">
<h2 className="text-2xl leading-9 font-extrabold md:text-3xl md:leading-10">
Expand Down Expand Up @@ -136,6 +137,7 @@ function Partners() {
</div>
))}
</div>
<Spacer height={15} />
<div className="max-w-screen-xl mx-auto px-4 md:px-6 lg:px-8">
<div className="max-w-4xl mx-auto text-center">
<h2 className="text-xl leading-9 font-bold md:text-2xl md:leading-10">
Expand All @@ -161,8 +163,8 @@ function Partners() {
</a>
</div>
))}

</div>
<Spacer height={15} />
<div className="max-w-screen-xl mx-auto px-4 md:px-6 lg:px-8">
<div className="max-w-4xl mx-auto text-center">
<h2 className="text-xl leading-9 font-bold md:text-2xl md:leading-10">
Expand All @@ -188,8 +190,34 @@ function Partners() {
</a>
</div>
))}

</div>
<Spacer height={15} />
<div className="max-w-screen-xl mx-auto px-4 md:px-6 lg:px-8">
<div className="max-w-4xl mx-auto text-center">
<h2 className="text-xl leading-9 font-bold md:text-2xl md:leading-10">
Credit Guarantee Partners
</h2>
</div>
</div>
<div className="flex flex-row flex-wrap gap-10 mt-10 justify-center">
{waveOneCreditGuaranteePartners.map(({ name, href, image }) => (
<div
key={href}
className="col-span-2 flex justify-center py-2 px-2 text-center"
>
<a
href={href}
rel="noreferrer"
target="_blank"
>
<img
className="inline-block w-20"
src={withBaseUrl(image)}
/>
</a>
</div>
))}
</div>
</div>
</div >;

Expand Down
7 changes: 7 additions & 0 deletions src/components/wave-one-credit-guarantee-partners.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"name": "Credit Guarantee Fund Trust for Micro and Small Enterprises",
"image": "img/logos/cgtmse.png",
"href": "https://www.cgtmse.in/"
}
]
7 changes: 6 additions & 1 deletion src/components/wave-one-lenders.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,10 @@
"name": "AXIS",
"image": "img/logos/axis.png",
"href": "https://www.axisbank.com/"
}
},
{
"name": "GetGrowth Capital",
"href": "https://getgrowthcapital.co/",
"image": "img/logos/getgrowthcapital.png"
}
]
10 changes: 5 additions & 5 deletions src/components/wave-one-loan-agents.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"image": "img/logos/aspire.png",
"href": "https://www.letsaspire.in/"
},
{
"name": "GetVantage",
"image": "img/logos/getvantage.png",
"href": "https://www.getvantage.co/"
},
{
"name": "Vivifi India Finance",
"image": "img/logos/vivifi.png",
Expand Down Expand Up @@ -38,10 +43,5 @@
"name": "Spice Money",
"image": "img/logos/spicemoney.png",
"href": "https://www.spicemoney.com/"
},
{
"name": "Finagg",
"image": "img/logos/finagg.png",
"href": "https://finagg.in/"
}
]
7 changes: 6 additions & 1 deletion src/components/wave-one-tsps.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@
"name": "CredAll",
"image": "img/logos/credall.jpeg",
"href": "https://www.credall.org/index.html"
}
},
{
"name": "Finagg",
"image": "img/logos/finagg.png",
"href": "https://finagg.in/"
}
]
Binary file added static/img/logos/cgtmse.png
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 static/img/logos/getgrowthcapital.png
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 static/img/logos/getvantage.png
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 d4a224b

Please sign in to comment.