Skip to content

Commit

Permalink
Merge pull request #44 from Cannon07/frontend_book_section
Browse files Browse the repository at this point in the history
Frontend book section
  • Loading branch information
rbharath authored May 29, 2024
2 parents 1cdf42b + 648d5db commit ebf7b5d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
50 changes: 49 additions & 1 deletion new-website/deepchem/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import exploreLayersIcon from "./../public/images/explore-layers.png";

import Terminal from "../components/Home/Terminal";
import deepchemLogo from "../public/images/deepchem-logo.png";
import deepchemBookCover from "../public/images/deepchem-book-cover.png";

/**
* Function to import all images from /public/images/used-by/ for the 'used by scientific leaders' carousel
Expand Down Expand Up @@ -211,8 +212,55 @@ const Home = () => {
</section>
{/* SUPPORTERS SECTION END */}

{/* DOWNLOAD BOOK BEGIN */}
<section className="px-4 py-8 gap-2 lg:gap-16 items-center justify-center flex flex-col lg:py-16 bg-opacity-10 bg-dc-light-gray download-book">
<div
className={`
flex flex-col gap-8 items-center lg:flex-row lg:gap-16 lg:items-center
`}
>
<h2 className={"lg:hidden mb-0"}>The DeepChem Book</h2>
<Image
src={deepchemBookCover}
alt="DeepChem Book Cover"
width={250}
height={400}
className={"shadow-lg"}
/>
<div className="flex-col flex gap-8 text-dc-gray text-opacity-60 lg:flex w-[500px] items-center">
<div className={"flex-col flex gap-6 hidden lg:flex"}>
<h2 className={"mb-0"}>The DeepChem Book</h2>
<p className="text-lg text-justify">
The DeepChem Book is a step-by-step guide for deep learning in
life sciences. It offers essential tools and techniques on
machine learning and data handling for beginners looking to
apply AI in life sciences.
</p>
</div>
<Link
className={"w-full flex justify-center"}
href={`
https://deepchemdata.s3.us-west-1.amazonaws.com/book/TutorialsBook.pdf
`}
>
<div className="flex justify-center items-center gap-2 lg:gap-4 rounded-xl shadow-lg py-4 min-w-[250px] cursor-pointer bg-dc-orange w-fit lg:w-full px-4">
<i
className={`
fa-solid fa-download text-xl lg:text-2xl xl:flex text-white
`}
></i>
<p className="font-medium tracking-wide text-xl text-white">
Download E-Book
</p>
</div>
</Link>
</div>
</div>
</section>
{/* DOWNLOAD BOOK END */}

{/* EXPLORE START */}
<section className="explore flex flex-col items-center px-[25px] 2xl:px-[300px] py-16 bg-dc-light-gray bg-opacity-10 gap-4">
<section className="explore flex flex-col items-center px-[25px] 2xl:px-[300px] py-16 gap-4">
<h2 className="mb-8">Explore</h2>
<div className="explore flex flex-wrap lg:flex-row items-center justify-center gap-10">
<ExploreCardItem
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions new-website/deepchem/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ canvas {
.supporters,
.contributors,
footer,
.download-book,
.explore,
.about,
.models,
Expand Down

0 comments on commit ebf7b5d

Please sign in to comment.