Skip to content

Commit

Permalink
mobile ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RichGriff committed Dec 9, 2024
1 parent 7a2268b commit 06236bf
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
7 changes: 6 additions & 1 deletion next_frontend/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import SignInForm from "@/components/auth/SignInForm";
import { MoveLeftIcon } from "lucide-react";
import Link from "next/link";

export default function SignInPage() {
return (
<>
<div className="flex min-h-screen flex-1">
<div className="flex w-1/2 flex-col justify-center px-4 py-12 sm:px-6 lg:flex-none lg:px-20 xl:px-24">
<div className="flex lg:w-1/2 w-full flex-col justify-center px-4 py-12 sm:px-6 lg:flex-none lg:px-20 xl:px-24">
<SignInForm />
<div className="flex justify-center items-center my-8">
<Link href={'/'} className="flex justify-start items-center text-sm text-muted-foreground hover:text-indigo-500">Back to homepage</Link>
</div>
</div>
<div className="relative hidden w-1/2 lg:block">
{/* <img
Expand Down
20 changes: 13 additions & 7 deletions next_frontend/components/FeedbackBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,26 @@ export default function FeedbackBanner() {

return (
<div className="flex items-center gap-x-6 bg-slate-900 dark:bg-violet-600 px-6 py-2.5 sm:px-3.5 sm:before:flex-1">
<p className="text-sm leading-6 text-white">
<Link href="https://alan-turing-institute.github.io/AssurancePlatform/community/community-support/" className='flex justify-start items-center gap-2'>
<MessageSquareMore className='w-4 h-4' />
<strong className="font-semibold">Feedback</strong>
<svg viewBox="0 0 2 2" className="mx-2 inline h-0.5 w-0.5 fill-current" aria-hidden="true">
<p className="text-sm leading-6 text-white w-full">
<Link href="https://alan-turing-institute.github.io/AssurancePlatform/community/community-support/" className='flex flex-col md:flex-row justify-center items-center gap-2 w-full py-3 md:py-0'>
<div className='flex justify-start items-center gap-2'>
<MessageSquareMore className='w-4 h-4' />
<strong className="font-semibold">Feedback</strong>
</div>
<svg
viewBox="0 0 2 2"
className="hidden md:block mx-2 h-0.5 w-0.5 fill-current"
aria-hidden="true"
>
<circle cx={1} cy={1} r={1} />
</svg>
We would love to hear your feedback! &nbsp;<span aria-hidden="true">&rarr;</span>
We would love to hear your feedback! &nbsp;<span aria-hidden="true" className='hidden md:block'>&rarr;</span>
</Link>
</p>
<div className="flex flex-1 justify-end">
<button type="button" className="-m-3 p-3 focus-visible:outline-offset-[-4px]">
<span className="sr-only">Dismiss</span>
<XMarkIcon onClick={() => setShowBanner(false)} className="h-5 w-5 text-white" aria-hidden="true" />
<XMarkIcon onClick={() => setShowBanner(false)} className="hidden md:block h-5 w-5 text-white" aria-hidden="true" />
</button>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions next_frontend/components/cases/CaseList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ const CaseList = ({ assuranceCases, showCreate = false } : CaseListProps) => {
onClick={() => importModal.onOpen()}
className="inline-flex items-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
>
<ArrowUpTrayIcon className="-ml-0.5 mr-1.5 h-5 w-5" aria-hidden="true" />
Import File
<ArrowUpTrayIcon className="-ml-0.5 md:mr-1.5 h-5 w-5" aria-hidden="true" />
<span className='hidden md:block'>Import File</span>
</button>
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion next_frontend/components/demo/landing/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,17 @@ export default function Hero() {
<Dialog.Panel className="fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10">
<div className="flex items-center justify-between">
<a href="#" className="-m-1.5 p-1.5">
<span className="">Your Company</span>
{/* <span className="">Your Company</span> */}
{/* <img
className="h-8 w-auto"
src="https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=600"
alt=""
/> */}
<img
className="h-12 w-auto"
src="/images/tea-logo.png"
alt=""
/>
</a>
<button
type="button"
Expand Down

0 comments on commit 06236bf

Please sign in to comment.