-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLayout.js
More file actions
73 lines (69 loc) · 2.19 KB
/
Copy pathLayout.js
File metadata and controls
73 lines (69 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import Link from 'next/link';
import Image from 'next/image';
import UpdatedAtText from './UpdatedAtText';
const Layout = ({ children }) => {
return (
<div className='flex flex-col min-h-screen'>
<nav className='w-full border-b border-gray-600'>
<div className='container mx-auto max-w-screen-lg flex justify-between items-center px-8 py-2'>
<Link href='/' className='text-white text-3xl font-semibold'>
Session Lock
</Link>
<div className='flex items-center'>
<a
href='https://www.npmjs.com/package/session-lock'
target='_blank'
rel='noopener noreferrer'
className='mr-4'
>
<Image src='/npm.svg' alt='NPM Icon' width={35} height={35} />
</a>
<a
href='https://github.com/zainazeem/session-lock'
target='_blank'
rel='noopener noreferrer'
className='mr-4'
>
<Image
src='/github.svg'
alt='GitHub Icon'
width={24}
height={24}
/>
</a>
<Link href='/dashboard'>
<button
type='button'
className='bg-[#934D91] hover:bg-[#A0549D] text-white font-medium rounded-lg text-m px-4 py-2 m-3'
>
Demo
</button>
</Link>
</div>
</div>
</nav>
<main className='container mx-auto max-w-screen-lg px-8 py-4 text-white flex-grow mt-4 mb-8'>
{children}
</main>
<footer className='w-full z-20'>
<div className='container mx-auto max-w-screen-lg flex justify-between items-center px-8 py-2'>
<a
target='_blank'
href='https://keyri.com'
className='flex items-center'
>
<Image
src='/keyri-logo-negative.svg'
alt='Keyri Logo'
width={90}
height={40}
className='ml-5 mt-3 mb-3'
/>
</a>
<UpdatedAtText />
</div>
</footer>
</div>
);
};
export default Layout;