-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
204 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
|
||
export default function CallToAction({body, heading, button, image}) { | ||
return ( | ||
<section className="mb-32 bg-gray-800"> | ||
<div className="px-6 py-12 text-center md:px-12"> | ||
<div className="container mx-auto xl:px-32"> | ||
<h2 className="mb-12 text-3xl font-bold tracking-tight md:text-4xl text-[hsl(218,81%,95%)]">{heading}</h2> | ||
<div className="grid items-center gap-12 lg:grid-cols-2"> | ||
<div className="mt-12 lg:mt-0"> | ||
<div className="mb-12 text-white text-md" dangerouslySetInnerHTML={{ __html: body.html }} /> | ||
{button ? <Link className="inline-block py-3 mr-2 font-medium leading-snug text-gray-700 uppercase bg-gray-200 rounded shadow-md text-md px-7 hover:bg-gray-800 hover:shadow-lg hover:text-white" href={button.url} role="button">{button.text}</Link> : ''} | ||
</div> | ||
{image ? <div className="mb-12 lg:mb-0"> | ||
<Image | ||
className="w-full rounded-lg shadow-lg" | ||
src={image.url} | ||
alt={image.altText} | ||
width={image.width} | ||
height={image.height} | ||
/> | ||
</div> : ''} | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import Link from "next/link"; | ||
|
||
|
||
export default function Callout({button, title}) { | ||
export default function Callout({button, title}) { | ||
return ( | ||
<div class="mt-8 background-radial-gradient block rounded-lg bg-white p-6 shadow-[0_2px_15px_-3px_rgba(0,0,0,0.07),0_10px_20px_-2px_rgba(0,0,0,0.04)] dark:bg-neutral-700"> | ||
<h5 class="mb-2 text-xl font-medium leading-tight text-neutral-800 dark:text-neutral-50">{title} | ||
</h5> | ||
{button ? <Link className="inline-block py-3 mr-2 text-sm font-medium leading-snug text-gray-700 uppercase transition duration-150 ease-in-out bg-gray-200 rounded shadow-md px-7 hover:bg-gray-300 hover:shadow-lg focus:bg-gray-300 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-gray-400 active:shadow-lg" data-mdb-ripple="true" data-mdb-ripple-color="light" href={button.url} role="button">{button.text}</Link> : ' '} | ||
<div className="block p-16 mb-8 background-radial-gradient"> | ||
<h4 className="text-3xl font-bold leading-tight text-neutral-800 dark:text-neutral-50">{title} | ||
</h4> | ||
{button ? <Link className="inline-block py-3 mt-4 mr-2 text-sm font-medium leading-snug text-gray-700 uppercase bg-gray-200 rounded shadow-md px-7 hover:bg-gray-800 hover:shadow-lg hover:text-white" href={button.url} role="button">{button.text}</Link> : ''} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
'use client'; | ||
import Head from 'next/head'; | ||
import Link from 'next/link'; | ||
import { useState } from 'react'; | ||
|
||
|
||
export default function Navbar() { | ||
const [navbar, setNavbar] = useState(false); | ||
return ( | ||
<div> | ||
<Head> | ||
<title>Create Next Responsive Navbar With Tailwind CSS</title> | ||
<meta | ||
name="description" | ||
content="Create Next JS Responsive Menu with Tailwind CSS" | ||
/> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<nav className="w-full bg-gray-800 shadow"> | ||
<div className="justify-between px-4 mx-auto lg:max-w-7xl md:items-center md:flex md:px-8"> | ||
<div> | ||
<div className="flex items-center justify-between py-3 md:py-5 md:block"> | ||
<a href="#"> | ||
<h2 className="text-3xl font-bold text-[hsl(218,81%,75%)]">HyFM</h2> | ||
</a> | ||
<div className="md:hidden"> | ||
<button | ||
className="p-2 text-gray-700 rounded-md outline-none focus:border-gray-400 focus:border" | ||
onClick={() => setNavbar(!navbar)} | ||
> | ||
{navbar ? ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
className="w-6 h-6 text-white" | ||
viewBox="0 0 20 20" | ||
fill="currentColor" | ||
> | ||
<path | ||
fillRule="evenodd" | ||
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" | ||
clipRule="evenodd" | ||
/> | ||
</svg> | ||
) : ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
className="w-6 h-6 text-white" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
strokeWidth={2} | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="M4 6h16M4 12h16M4 18h16" | ||
/> | ||
</svg> | ||
)} | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<div | ||
className={`flex-1 justify-self-center pb-3 mt-8 md:block md:pb-0 md:mt-0 ${ | ||
navbar ? 'block' : 'hidden' | ||
}`} | ||
> | ||
<ul className="items-center justify-center space-y-8 md:flex md:space-x-6 md:space-y-0"> | ||
<li className="text-white"> | ||
<Link href="/"> | ||
Home | ||
</Link> | ||
</li> | ||
<li className="text-white"> | ||
<Link href="/artists"> | ||
Artists | ||
</Link> | ||
</li> | ||
<li className="text-white"> | ||
<Link href="/login"> | ||
Login | ||
</Link> | ||
</li> | ||
<li className="text-white"> | ||
<Link href="/contact"> | ||
Contact US | ||
</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters