Skip to content

Commit 946100f

Browse files
authored
Merge pull request #38 from javaistic/add-opensource-block
Add OpenSource block
2 parents 0c96d97 + c6d33d0 commit 946100f

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed

src/components/home/OpenSource.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import NextLink from 'next/link'
2+
import React from 'react'
3+
import NextImage from 'next/image'
4+
5+
const GitHubImage = () => {
6+
return (
7+
<NextImage
8+
className="object-cover object-center shadow-xl"
9+
alt="Javaistic Open Source On GitHub"
10+
src={require('@/img/home/open-source-on-github.svg').default}
11+
width={613}
12+
height={521}
13+
layout="responsive"
14+
blurDataURL={require('@/img/home/open-source-on-github.svg').default}
15+
placeholder="blur"
16+
loading="lazy"
17+
/>
18+
)
19+
}
20+
export function OpenSource() {
21+
return (
22+
<section className="text-gray-600 body-font">
23+
<div className="container mx-auto flex px-4 py-24 sm:px-10 md:flex-row flex-col items-center">
24+
<div className="lg:max-w-lg lg:w-full md:w-1/2 w-5/6 mb-10 md:mb-0">
25+
<GitHubImage />
26+
</div>
27+
<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">
28+
<h1 className="text-2xl sm:text-4xl lg:text-5xl leading-none font-extrabold text-gray-900 tracking-tight mb-8">
29+
Open to anyone.&nbsp;
30+
<br className="hidden lg:inline-block" />
31+
Fork it, twist it. Flip it.
32+
</h1>
33+
<p className="mb-8 leading-relaxed">
34+
Join the community and help us build the best open source Java learning site for
35+
everyone.
36+
</p>
37+
<div className="flex justify-center">
38+
<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">
39+
<NextLink href="https://github.com/javaistic/javaistic">View on GitHub</NextLink>
40+
</button>
41+
</div>
42+
</div>
43+
</div>
44+
</section>
45+
)
46+
}

0 commit comments

Comments
 (0)
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