Skip to content

Commit

Permalink
<FIX>h1 and hover effect on buttons fixed (#221)
Browse files Browse the repository at this point in the history
## Description

1. h1 line height and font size fixed on homepage
2. Background color on hover on buttons in projects page added.

## Fixes Issue 
 closes #212  
closes #213
  • Loading branch information
jayk-gupta authored Apr 22, 2023
1 parent d84c673 commit be67683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const HomePage = () => {
<div className="pt-16 pb-80 sm:pt-24 sm:pb-40 lg:pt-40 lg:pb-48">
<div className="relative mx-auto max-w-7xl px-4 sm:static sm:px-6 lg:px-8">
<div className="sm:max-w-lg">
<h1 className="font text-4xl font-bold text-white sm:text-6xl">Show your project to the world</h1>
<h1 className="font text-4xl font-bold text-white sm:text-6xl md:text-5xl md:leading-[3rem] lg:text-6xl lg:leading-[5rem]">Show your project to the world</h1>
<p className="mt-4 text-xl text-gray-400">
ProjectsHut is an innovative platform that allows users to publish their projects for free.
</p>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/ProjectsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ const ProjectsPage = () => {
))}
</section>
<div className=" py-5 flex gap-2 flex-wrap justify-center text-black ">
<button type="button" className="bg-white px-3 py-1 rounded-md " onClick={prevPage}>
<button type="button" className="bg-white px-3 py-1 hover:bg-slate-200 rounded-md " onClick={prevPage}>
Prev
</button>
{paginatedArr.map((ele, ind) => {
return (
<button
type="button"
className={`bg-white px-3 py-1 rounded-md ${page === ind ? "text-primary" : null}`}
className={`bg-white px-3 py-1 hover:bg-slate-200 rounded-md ${page === ind ? "text-primary" : null}`}
onClick={() => setPage(ind)}
>
{ind + 1}
</button>
)
})}
<button type="button" className="bg-white px-3 py-1 rounded-md " onClick={nextPage}>
<button type="button" className="bg-white px-3 py-1 rounded-md hover:bg-slate-200" onClick={nextPage}>
Next
</button>
</div>
Expand Down

1 comment on commit be67683

@vercel
Copy link

@vercel vercel bot commented on be67683 Apr 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

projectshut – ./

projectshut.vercel.app
projectshut-git-main-priyankarpal.vercel.app
projectshut-priyankarpal.vercel.app

Please sign in to comment.