File tree Expand file tree Collapse file tree 3 files changed +50
-2
lines changed
Expand file tree Collapse file tree 3 files changed +50
-2
lines changed Original file line number Diff line number Diff line change 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.
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+ }
You can’t perform that action at this time.
0 commit comments