Fix the mobile responsive issues (#25)
This commit is contained in:
parent
2c428759ea
commit
8d3459d126
@ -2,8 +2,8 @@ import Link from 'next/link';
|
|||||||
|
|
||||||
export default function Header() {
|
export default function Header() {
|
||||||
return (
|
return (
|
||||||
<header className='body-font border-b text-gray-600'>
|
<header className='body-font border-b px-2 text-gray-600'>
|
||||||
<div className='container mx-auto flex flex-col flex-wrap items-center justify-between space-y-3 py-3 md:flex-row'>
|
<div className='container mx-auto flex flex-col flex-wrap items-center justify-between space-y-2 py-3 md:flex-row'>
|
||||||
<Link href='/'>
|
<Link href='/'>
|
||||||
<a className='title-font flex items-center font-medium text-gray-900 md:mb-0'>
|
<a className='title-font flex items-center font-medium text-gray-900 md:mb-0'>
|
||||||
<svg
|
<svg
|
||||||
@ -20,8 +20,8 @@ export default function Header() {
|
|||||||
<span className='ml-3 text-2xl'>Mock SAML</span>
|
<span className='ml-3 text-2xl'>Mock SAML</span>
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
<div className='flex flex-col items-center md:flex-row'>
|
<div className='flex flex-col items-center space-y-2 md:flex-row md:space-y-0 md:space-x-2'>
|
||||||
<span className='mr-5'>
|
<span>
|
||||||
<a
|
<a
|
||||||
className='btn btn-outline btn-sm'
|
className='btn btn-outline btn-sm'
|
||||||
href='https://github.com/boxyhq/jackson'
|
href='https://github.com/boxyhq/jackson'
|
||||||
|
|||||||
@ -35,7 +35,7 @@ export default function Layout({ children }: LayoutProps) {
|
|||||||
<meta name='twitter:image' content={ogImage} />
|
<meta name='twitter:image' content={ogImage} />
|
||||||
</Head>
|
</Head>
|
||||||
<Header />
|
<Header />
|
||||||
<main className='h-[calc(100%_-_80px)] overflow-auto'>{children}</main>
|
<main className='h-[calc(100%_-_80px)] overflow-auto py-5'>{children}</main>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,13 +8,12 @@ const Home: React.FC<{ metadata: IdPMetadata }> = ({ metadata }) => {
|
|||||||
const { ssoUrl, entityId, certificate } = metadata;
|
const { ssoUrl, entityId, certificate } = metadata;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex min-h-full items-center justify-center'>
|
<div className='flex items-center justify-center md:py-10'>
|
||||||
<div className='flex w-full max-w-4xl flex-col px-3'>
|
<div className='flex w-full max-w-4xl flex-col space-y-5 px-2'>
|
||||||
<h1 className='mb-20 text-center text-2xl font-extrabold text-gray-900'>
|
<h1 className='text-center text-xl font-extrabold text-gray-900 md:text-2xl'>
|
||||||
A free SAML 2.0 Identity Provider for testing SAML SSO integrations.
|
A free SAML 2.0 Identity Provider for testing SAML SSO integrations.
|
||||||
</h1>
|
</h1>
|
||||||
<div className='space-y-4'>
|
<div className='flex flex-col justify-between md:flex-row'>
|
||||||
<div className='flex justify-between'>
|
|
||||||
<Link href='/api/saml/metadata/download'>
|
<Link href='/api/saml/metadata/download'>
|
||||||
<a className='btn btn-active btn-primary'>
|
<a className='btn btn-active btn-primary'>
|
||||||
<svg
|
<svg
|
||||||
@ -70,7 +69,6 @@ const Home: React.FC<{ metadata: IdPMetadata }> = ({ metadata }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -74,7 +74,7 @@ export default function Login() {
|
|||||||
<div className='flex min-h-full items-center justify-center'>
|
<div className='flex min-h-full items-center justify-center'>
|
||||||
<div className='flex w-full max-w-xl flex-col px-3'>
|
<div className='flex w-full max-w-xl flex-col px-3'>
|
||||||
<div className='space-y-2'>
|
<div className='space-y-2'>
|
||||||
<div className='border-2 p-5'>
|
<div className='border-2 p-4'>
|
||||||
<h2 className='mb-5 text-center text-2xl font-bold text-gray-900'>SAML SSO Login</h2>
|
<h2 className='mb-5 text-center text-2xl font-bold text-gray-900'>SAML SSO Login</h2>
|
||||||
<form onSubmit={handleSubmit}>
|
<form onSubmit={handleSubmit}>
|
||||||
<div className='grid grid-cols-2 gap-y-1 gap-x-5'>
|
<div className='grid grid-cols-2 gap-y-1 gap-x-5'>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user