Skip to content

Add OpenSource block #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/components/home/OpenSource.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import NextLink from 'next/link'
import React from 'react'
import NextImage from 'next/image'

const GitHubImage = () => {
return (
<NextImage
className="object-cover object-center shadow-xl"
alt="Javaistic Open Source On GitHub"
src={require('@/img/home/open-source-on-github.svg').default}
width={613}
height={521}
layout="responsive"
blurDataURL={require('@/img/home/open-source-on-github.svg').default}
placeholder="blur"
loading="lazy"
/>
)
}
export function OpenSource() {
return (
<section className="text-gray-600 body-font">
<div className="container mx-auto flex px-4 py-24 sm:px-10 md:flex-row flex-col items-center">
<div className="lg:max-w-lg lg:w-full md:w-1/2 w-5/6 mb-10 md:mb-0">
<GitHubImage />
</div>
<div className="lg:flex-grow md:w-1/2 lg:pl-24 md:pl-16 flex flex-col md:items-start md:text-left items-center text-center">
<h1 className="text-2xl sm:text-4xl lg:text-5xl leading-none font-extrabold text-gray-900 tracking-tight mb-8">
Open to anyone.&nbsp;
<br className="hidden lg:inline-block" />
Fork it, twist it. Flip it.
</h1>
<p className="mb-8 leading-relaxed">
Join the community and help us build the best open source Java learning site for
everyone.
</p>
<div className="flex justify-center">
<button className="w-full sm:w-auto flex-none bg-gray-900 hover:bg-gray-800 text-white text-lg shadow-md hover:shadow-xl leading-6 font-semibold py-3 px-6 border border-transparent rounded-lg focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-gray-900 focus:outline-none transition-colors duration-200">
<NextLink href="https://github.com/javaistic/javaistic">View on GitHub</NextLink>
</button>
</div>
</div>
</div>
</section>
)
}
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy