Skip to content

Commit

Permalink
Merge pull request #25 from Yukino2002/revamp
Browse files Browse the repository at this point in the history
Fix 404 on URLs with trailing slashes. Fix minor UI issues.
  • Loading branch information
rbharath authored Jul 3, 2023
2 parents 21cf6d4 + 5755e35 commit 30d20ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion new-website/deepchem/components/Tutorials/TutorialLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const TutorialLink = ({
<div
className={`mx-0 py-1 lg:my-1 border-b-[1px] lg:border-0 cursor-pointer font-poppins hover:bg-dc-light-gray/30 lg:border-l-8 ${
active ? "border-dc-blue" : "border-dc-light-gray"
} px-2 py-1`}
} px-4 py-1`}
onClick={() => {
handleClick(fileName, index);
}}
Expand Down
3 changes: 1 addition & 2 deletions new-website/deepchem/layouts/tutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ export default function TutorialLayout({ children }) {
} bg-white ease-in-out duration-300 lg:duration-0 fixed top-0 left-0 shadow-xl py-8 lg:py-0 h-[100vh] w-[70vw] max-w-[300px]`}
>
{renderOrder.map((tutorials, i) => {

const list = (
<div key={i}>
<h3 className="text-lg pt-8">
<h3 className="text-lg pt-8 pl-2 lg:pl-0">
{i + 1}. {tutorials.name}
</h3>
{tutorials.tutorials.map((tutorial, j) => {
Expand Down
1 change: 1 addition & 0 deletions new-website/deepchem/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const nextConfig = {

// basepath: !debug ? "/deepchem.github.io" : "",
assetPrefix: !debug ? "/deepchem.github.io/" : "",
trailingSlash: true,
};

module.exports = nextConfig;
2 changes: 1 addition & 1 deletion new-website/deepchem/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ canvas {
);
}

@media (-webkit-min-device-pixel-ratio: 1.25) {
@media (-webkit-device-pixel-ratio: 1.25) {
header,
nav,
i,
Expand Down

0 comments on commit 30d20ea

Please sign in to comment.