-
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.
Merge pull request #5 from goinvo/stylesAndLinksAdjustments
added feedback modal, adjusted styles
- Loading branch information
Showing
14 changed files
with
159 additions
and
89 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,48 @@ | ||
'use client'; | ||
|
||
import { useState } from "react"; | ||
|
||
const FeedbackModal = () => { | ||
const [isModalOpen, setIsModalOpen] = useState(false); | ||
const openModal = () => setIsModalOpen(true); | ||
const closeModal = () => setIsModalOpen(false); | ||
|
||
return ( | ||
<> | ||
<button | ||
onClick={openModal} | ||
className="text-start" | ||
> | ||
Feedback | ||
</button> | ||
{isModalOpen && ( | ||
<div className="fixed inset-0 z-50 w-screen"> | ||
<div className="flex min-h-full p-4 text-center justify-center sm:items-center sm:p-0"> | ||
<div className="relative transform overflow-hidden w-1/2 rounded-xl bg-white text-left shadow-xl transition-all border-2 border-gray-300"> | ||
<div className="bg-white px-10 pb-10 my-2"> | ||
<div className="flex justify-end pb-2"> | ||
<button | ||
className="rounded-full flex items-center" | ||
onClick={closeModal} | ||
> | ||
<div className="text-tiffany w-8 h-8">✖</div> | ||
</button> | ||
</div> | ||
<div> | ||
<iframe | ||
className="airtable-embed w-full h-133 bg-transparent border border-gray-300" | ||
src="https://airtable.com/embed/appE6EvqnfyQTmfcG/paggYwwsljwfF9Jdm/form" | ||
width="100%" | ||
height="533" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default FeedbackModal; |
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 |
---|---|---|
@@ -1,40 +1,46 @@ | ||
import React from 'react'; | ||
import Link from 'next/link'; | ||
import Image from 'next/image'; | ||
import FeedbackModal from './FeedbackModal'; | ||
|
||
interface NavbarLinksTypes { | ||
href: string; | ||
label: string; | ||
} | ||
|
||
const navbarLinks: NavbarLinksTypes[] = [ | ||
{ href: "#Feedback", label: "Feedback" }, | ||
{ href: "#Try", label: "Try" }, | ||
{ href: "https://staffplan.com/registrations/new", label: "Try" }, | ||
{ href: "https://staffplan.com/sign_in", label: "Sign in" } | ||
]; | ||
|
||
const Header: React.FC = () => ( | ||
<header className="sticky sm:fixed top-0 w-full sm:inset-x-0 sm:w-[calc(100%-40px)] sm:mx-auto bg-white z-50 text-tiffany px-4 rounded-lg sm:mt-4"> | ||
<div className="flex justify-between items-center"> | ||
<div className="py-4"> | ||
<Image src="/logo.svg" width={174} height={43} alt="staffplan logo" /> | ||
</div> | ||
<nav className='mr-4'> | ||
<Link className="block sm:hidden text-26px" href={"https://staffplan.com/sign_in"}> | ||
{"Sign In"} | ||
</Link> | ||
<ul className="hidden sm:flex text-26px space-x-8"> | ||
{navbarLinks.map((link, index) => ( | ||
<li key={index} className='py-2.5 font-semibold'> | ||
<Link href={link.href}> | ||
{link.label} | ||
</Link> | ||
|
||
const Header: React.FC = () => { | ||
|
||
return ( | ||
<header className="sticky sm:fixed top-0 w-full max-w-[1238px] sm:inset-x-0 sm:w-[calc(100%-40px)] sm:mx-auto bg-white z-50 text-tiffany px-4 rounded-lg sm:mt-4" > | ||
<div className="flex justify-between items-center"> | ||
<div className="py-4"> | ||
<Image src="/logo.svg" width={174} height={43} alt="staffplan logo" /> | ||
</div> | ||
<nav className='mr-4'> | ||
<Link className="block sm:hidden" href={"https://staffplan.com/sign_in"}> | ||
{"Sign In"} | ||
</Link> | ||
<ul className="hidden sm:flex space-x-8"> | ||
<li className='py-2.5 font-semibold'> | ||
<FeedbackModal /> | ||
</li> | ||
))} | ||
</ul> | ||
</nav> | ||
</div> | ||
</header> | ||
); | ||
{navbarLinks.map((link, index) => ( | ||
<li key={index} className='py-2.5 font-semibold'> | ||
<Link href={link.href}> | ||
{link.label} | ||
</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</nav> | ||
</div> | ||
</header >) | ||
}; | ||
|
||
export default Header; |
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
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
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
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
Oops, something went wrong.