Skip to content

Commit

Permalink
fix: Fix breakpoints and removed foruns page
Browse files Browse the repository at this point in the history
  • Loading branch information
AnisioMandlate committed Aug 13, 2020
1 parent 5f3d240 commit 265b84b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 45 deletions.
5 changes: 0 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ module.exports = {
label: "Documentation",
position: "right",
},
{
to: "forum",
label: "Forums",
position: "right",
},
{
href: "https://github.com/PaymentsDS/",
label: "GitHub",
Expand Down
20 changes: 20 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ a:hover {
max-width: 13em;
}

.col.col--4 + .col.col--4 {
margin-left: 90px;
}

@media screen and (max-width: 768px) {
.navbar {
padding: 0 2em;
Expand All @@ -81,3 +85,19 @@ a:hover {
font-size: 2.6rem;
}
}

@media screen and (min-width: 350px) and (max-width: 996px) {
.col.col--4 + .col.col--4 {
margin-left: 0px;
}
}

@media screen and (max-width: 320px) {
.col.col--4 + .col.col--4 {
margin-left: 0px;
}

.hero__title {
font-size: 1.9rem;
}
}
18 changes: 0 additions & 18 deletions src/pages/forum.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/pages/forum.module.css

This file was deleted.

13 changes: 1 addition & 12 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ const features = [
),
link: <> Get SDKs </>,
},
{
title: <>Forum</>,
imageUrl: "img/undraw_community.svg",
description: (
<>
Join our community and help each other integrate and
#MakeYourTransactionsEasy.
</>
),
link: <> Browse Forums </>,
},
];

function Feature({ imageUrl, title, description, link }) {
Expand Down Expand Up @@ -88,7 +77,7 @@ function Home() {
{features && features.length > 0 && (
<section className={styles.features}>
<div className="container">
<div className="row">
<div className={styles.row}>
{features.map((props, idx) => (
<Feature key={idx} {...props} />
))}
Expand Down
15 changes: 13 additions & 2 deletions src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,21 @@
background-color: #f5f5f5;
}

.row {
display: flex;
justify-content: center;
max-width: 60vw;
margin: 0 auto;
}

@media screen and (min-width: 350px) and (max-width: 996px) {
.main {
height: 165vh;
}

.row {
flex-direction: column;
}
}

@media screen and (min-width: 760px) and (max-width: 996px) {
Expand All @@ -72,7 +83,7 @@
}

@media screen and (max-width: 320px) {
.main {
height: 200vh;
.row {
flex-direction: column;
}
}

0 comments on commit 265b84b

Please sign in to comment.