Skip to content

Enhancement #72

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 11 commits into from
Dec 11, 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
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module.exports = {
extends: 'react-app',
extends: 'next',
rules: {
'react/react-in-jsx-scope': 'off',
'react/display-name': 'off',
'react-hooks/exhaustive-deps': 'off',
'jsx-a11y/anchor-is-valid': 'off',
},
}
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"build": "next build",
"start": "next start",
"export": "next build && next export",
"format": "prettier {src,remark}/**/*.{css,js,mdx} --write"
"format": "prettier {src,remark}/**/*.{css,js,mdx} --write",
"lint": "next lint",
"clean": "rimraf .next"
},
"browserslist": [
"> 1%"
Expand Down Expand Up @@ -56,6 +58,7 @@
"react-dom": "^17.0.2",
"react-intersection-observer": "^8.33.0",
"redent": "^3.0.0",
"sharp": "^0.29.3",
"simple-functional-loader": "^1.2.1",
"tailwindcss": "^2.2.19",
"tinytime": "^0.2.6",
Expand All @@ -64,18 +67,16 @@
"devDependencies": {
"@babel/core": "^7.16.0",
"@types/react": "^17.0.37",
"@typescript-eslint/eslint-plugin": "2.34.0",
"@typescript-eslint/parser": "2.34.0",
"babel-eslint": "10.x",
"eslint": "6.x",
"eslint-config-react-app": "^5.2.1",
"eslint-plugin-flowtype": "4.x",
"eslint-plugin-import": "2.x",
"eslint-plugin-jsx-a11y": "6.x",
"eslint-plugin-react": "7.x",
"eslint-plugin-react-hooks": "2.x",
"@typescript-eslint/eslint-plugin": "5.6.0",
"@typescript-eslint/parser": "5.6.0",
"babel-eslint": "10.1.0",
"eslint": "7.32.0",
"eslint-config-next": "^12.0.7",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.25.3",
"prettier": "^2.5.1",
"typescript": "^4.5.3",
"webpack": "^5.65.0"
}
}
}
13 changes: 10 additions & 3 deletions src/components/Testimonials.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { gradients } from '@/utils/gradients'
import { animate, motion, useMotionValue, useTransform } from 'framer-motion'
import Image from 'next/image'
import { useEffect, useState } from 'react'
import { useInView } from 'react-intersection-observer'

Expand Down Expand Up @@ -121,11 +122,17 @@ function Testimonial({ testimonial, base, index, total }) {
<figcaption
className={`flex items-center space-x-4 p-6 md:px-10 md:py-6 bg-gradient-to-br rounded-b-xl leading-6 font-semibold text-white ${color[0]}`}
>
<div className="flex-none w-14 h-14 bg-white rounded-full flex items-center justify-center">
<img
<div className="flex-none w-14 h-14 p-1 bg-white rounded-full flex items-center justify-center">
<Image
src={testimonial.author.avatar}
alt=""
alt={testimonial.author.name}
className={`w-12 h-12 rounded-full ${color[2]}`}
width={416}
height={416}
quality={100}
layout="intrinsic"
blurDataURL={testimonial.author.avatar}
placeholder="blur"
loading="lazy"
/>
</div>
Expand Down
135 changes: 71 additions & 64 deletions src/components/home/Menu.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Menu, Transition } from '@headlessui/react'
import { ChevronDownIcon,MenuIcon } from '@heroicons/react/solid'
import { ChevronDownIcon, MenuIcon } from '@heroicons/react/solid'
import { Fragment } from 'react'
import Link from 'next/link'

function classNames(...classes) {
return classes.filter(Boolean).join(' ')
Expand Down Expand Up @@ -30,89 +31,95 @@ export default function MenuButton() {
<div className="py-1">
<Menu.Item>
{({ active }) => (
<a
href="/docs"
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base sm:hidden'
)}
>
Documentation
</a>
<Link href="/docs">
<a
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base sm:hidden'
)}
>
Documentation
</a>
</Link>
)}
</Menu.Item>
<Menu.Item>
{({ active }) => (
<a
href="#"
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base'
)}
>
About
</a>
<Link href="#">
<a
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base'
)}
>
About
</a>
</Link>
)}
</Menu.Item>
<Menu.Item>
{({ active }) => (
<a
href="/sponsors"
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base'
)}
>
Sponsors
</a>
<Link href="/sponsors">
<a
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base'
)}
>
Sponsors
</a>
</Link>
)}
</Menu.Item>
<Menu.Item>
{({ active }) => (
<a
href="/license"
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base'
)}
>
License
</a>
<Link href="/license">
<a
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base'
)}
>
License
</a>
</Link>
)}
</Menu.Item>
<Menu.Item>
{({ active }) => (
<a
href="/changelog"
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block w-full text-left px-4 py-2 text-base'
)}
>
Change Log
</a>
<Link href="/changelog">
<a
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block w-full text-left px-4 py-2 text-base'
)}
>
Change Log
</a>
</Link>
)}
</Menu.Item>
<Menu.Item>
{({ active }) => (
<a
href="https://github.com/javaistic/javaistic"
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base sm:hidden'
)}
>
<div className="flex">
<span className="sr-only">Javaistic on GitHub</span>
<svg className="w-6 h-6 mr-2" viewBox="0 0 16 16" fill="currentColor">
<path
fillRule="evenodd"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"
/>
</svg>
GitHub
</div>
</a>
<Link href="https://github.com/javaistic/javaistic">
<a
className={classNames(
active ? 'bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-200',
'block px-4 py-2 text-base sm:hidden'
)}
>
<div className="flex">
<span className="sr-only">Javaistic on GitHub</span>
<svg className="w-6 h-6 mr-2" viewBox="0 0 16 16" fill="currentColor">
<path
fillRule="evenodd"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"
/>
</svg>
GitHub
</div>
</a>
</Link>
)}
</Menu.Item>

Expand Down
6 changes: 3 additions & 3 deletions src/components/home/Newsletter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export function Newsletter() {
<div id="revue-embed">
<form action="https://www.getrevue.co/profile/javaistic/add_subscriber" double_opt_in="false" method="post" id="revue-form" name="revue-form" target="_blank">
<div className="flex flex-center flex-wrap p-5 pb-1 space-y-4 sm:space-y-4 sm:space-x-0 text-center mt-1">
<label for="member_email">Email address</label>
<label htmlFor="member_email">Email address</label>
<input className="flex-none w-full px-4 py-4 font-medium text-lg bg-gray-100 hover:shadow-lg rounded-lg border border-gray-400 focus:outline-none" placeholder="Your email address..." type="email" name="member[email]" id="member_email" />
</div>
<div className="flex flex-center flex-wrap p-5 pb-1 space-y-4 sm:space-y-4 sm:space-x-0 text-center">
<label for="member_first_name">First name <span class="optional">(Optional)</span></label>
<label htmlFor="member_first_name">First name <span className="optional">(Optional)</span></label>
<input className="flex-none w-full px-4 py-4 font-medium text-lg bg-gray-100 hover:shadow-lg rounded-lg border border-gray-400 focus:outline-none" placeholder="First name... (Optional)" type="text" name="member[first_name]" id="member_first_name" />
</div>
<div className="flex flex-center flex-wrap p-5 pb-1 space-y-4 sm:space-y-4 sm:space-x-0 text-center">
<label for="member_last_name">Last name <span class="optional">(Optional)</span></label>
<label htmlFor="member_last_name">Last name <span className="optional">(Optional)</span></label>
<input className="flex-none w-full px-4 py-4 font-medium text-lg bg-gray-100 hover:shadow-lg rounded-lg border border-gray-400 focus:outline-none" placeholder="Last name... (Optional)" type="text" name="member[last_name]" id="member_last_name" />
</div>
<div className="flex flex-center flex-wrap p-5 pb-1 space-y-4 sm:space-y-4 sm:space-x-0 text-center">
Expand Down
Binary file modified src/img/avatars/linus-trovalds.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/avatars/martin-fowler.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/img/uiuxarghya.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/img/uiuxarghya.png
Binary file not shown.
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