Skip to content
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

Hover Effect Added on issue #346 #349

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
23 changes: 15 additions & 8 deletions src/pages/ideas/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Head from 'next/head'
import Link from 'next/link'

import React, {useState} from 'react'
import { Card } from '@/components/Card'
import { Container } from '@/components/Container'
import { getAllIdeas } from '@/helper/getAllIdeas'
Expand Down Expand Up @@ -46,14 +46,20 @@ export default function Ideas({ articles }) {
))}
</div>
</div>

<div className="mt-16 text-center">
<Link
className="group order-2 mx-auto items-center overflow-hidden rounded-lg bg-zinc-800 px-8 py-3 text-white focus:outline-none dark:bg-white dark:text-black"
href="/ideas/2023"
>
<span className="text-center font-mono font-semibold">
View 2023 Idea List
</span>
<Link
href="/ideas/2023"
className="group relative mx-auto flex items-center justify-center overflow-hidden rounded-lg px-8 py-3 text-white bg-zinc-400 border-3 border-transparent transition-all duration-300 focus:outline-none dark:bg-white dark:text-black"
>
{/* Sliding Gradient Background */}
<span className="absolute inset-0 h-0 w-full bg-gradient-to-r from-orange-500 to-purple-500 transition-all duration-300 group-hover:h-full"></span>

{/* Button Text */}
<span className="relative z-10 text-center font-mono font-semibold group-hover:text-black dark:group-hover:text-white">
View 2023 Idea List
</span>

</Link>
</div>
</Container.Inner>
Expand All @@ -62,6 +68,7 @@ export default function Ideas({ articles }) {
)
}


export async function getStaticProps() {
return {
props: {
Expand Down
6 changes: 6 additions & 0 deletions src/style/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';


.wrap p{
margin-top: -1rem;

}