Skip to content

New design #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
88d6b50
save Thu Sep 15 22:44:03 +08 2022
ibrahemid Sep 15, 2022
64a6fba
e
HaneenAlkhateeb Sep 15, 2022
7b3ccdf
edit
HaneenAlkhateeb Sep 16, 2022
244ee42
ed
HaneenAlkhateeb Sep 17, 2022
26b4c99
Testing with website project libraries
mwrashid Sep 17, 2022
b828685
fix
HaneenAlkhateeb Sep 17, 2022
0ecf631
Update dashboard.js
HaneenAlkhateeb Sep 17, 2022
5d20c39
commit
HaneenAlkhateeb Sep 17, 2022
d1fd997
dashboard
HaneenAlkhateeb Sep 21, 2022
bb08ec9
e
HaneenAlkhateeb Sep 21, 2022
6d7b3f0
add
HaneenAlkhateeb Sep 22, 2022
a65fd37
add
HaneenAlkhateeb Sep 23, 2022
0e62cd4
Merge pull request #1 from HaneenAlkhateeb/testWebsiteLibraries
HaneenAlkhateeb Sep 23, 2022
a51b8a7
e
HaneenAlkhateeb Sep 23, 2022
ca6a820
ed
HaneenAlkhateeb Sep 25, 2022
23429b6
e
HaneenAlkhateeb Sep 25, 2022
a0e2671
add
HaneenAlkhateeb Sep 26, 2022
36e2865
edit
HaneenAlkhateeb Oct 12, 2022
7ef0ebe
e
HaneenAlkhateeb Oct 21, 2022
167c6e0
fetvh
HaneenAlkhateeb Oct 22, 2022
a64a160
ed
HaneenAlkhateeb Oct 25, 2022
66a0540
e
HaneenAlkhateeb Oct 27, 2022
db95442
e
HaneenAlkhateeb Oct 27, 2022
064537d
ed
HaneenAlkhateeb Oct 27, 2022
a6356c5
fix
HaneenAlkhateeb Oct 27, 2022
b370dba
ed
HaneenAlkhateeb Oct 27, 2022
d2bd062
edit
HaneenAlkhateeb Oct 28, 2022
aed8e97
approval
HaneenAlkhateeb Oct 28, 2022
83559d0
edit
HaneenAlkhateeb Oct 28, 2022
bbf59d6
editSearch
HaneenAlkhateeb Oct 28, 2022
1c68d43
edit
HaneenAlkhateeb Oct 28, 2022
bebf147
ed
HaneenAlkhateeb Oct 28, 2022
c8351e3
ed
HaneenAlkhateeb Oct 28, 2022
4819e25
edit
HaneenAlkhateeb Oct 29, 2022
7a8138d
eed
HaneenAlkhateeb Oct 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.local
.env.development.local
.env.test.local
.env.production.local
179 changes: 179 additions & 0 deletions components/Aboutus.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
import React, { useState, useEffect, useRef } from 'react';
import Head from 'next/head';
import { useCurrentUser } from '../lib/hooks';
import { useRouter } from 'next/router';
import { CalendarIcon, ChartBarIcon, FolderIcon, HomeIcon, InboxIcon, UsersIcon, MapIcon, BuildingLibraryIcon} from '@heroicons/react/24/outline';

const DashboardSection = () => {
const [user, { mutate }] = useCurrentUser();
const [loading, isLoading] = useState(false);
const nameRef = useRef();
const bioRef = useRef();
const profilePictureRef = useRef();
const [msg, setMsg] = useState({ message: '', isError: false });
const router = useRouter();

const stats = [


{ label: 'Founded', value: '2021' },
{ label: 'Employees', value: '5' },
{ label: 'Beta Users', value: '521' },
{ label: 'Raised', value: '$25M' },
]
/**useEffect(() => {
if (!user) {
router.push('/');
} else {
nameRef.current.value = user.name;
bioRef.current.value = user.bio;
}
}, [user]);**/

const navigation = [
{ name: 'Dashboard', icon: HomeIcon, href: '#', current: true },
{ name: 'Universities', icon: BuildingLibraryIcon, href: 'universities', count: 4, current: false },
{ name: 'records requests', icon: CalendarIcon, href: 'records', current: false },
{ name: 'Posters', icon: InboxIcon, href: 'posters', current: false },
{ name: 'Rewards Rules', icon: ChartBarIcon, href: '#', count: 12, current: false },
]

function classNames(...classes) {
return classes.filter(Boolean).join(' ')
}

return (
<>
<Head>
<title>About Us</title>
</Head>
<div className="relative bg-black py-16 sm:py-24">
<div className="lg:mx-auto lg:grid lg:max-w-7xl lg:grid-cols-2 lg:items-start lg:gap-24 lg:px-8">
<div className="relative sm:py-16 lg:py-0">
<div aria-hidden="true" className="hidden sm:block lg:absolute lg:inset-y-0 lg:right-0 lg:w-screen">
<div className="absolute inset-y-0 right-1/2 w-full rounded-r-3xl bg-gray-50 lg:right-72" />
<svg
className="absolute top-8 left-1/2 -ml-3 lg:-right-8 lg:left-auto lg:top-12"
width={404}
height={392}
fill="none"
viewBox="0 0 404 392"
>
<defs>
<pattern
id="02f20b47-fd69-4224-a62a-4c9de5c763f7"
x={0}
y={0}
width={20}
height={20}
patternUnits="userSpaceOnUse"
>
<rect x={0} y={0} width={4} height={4} className="text-gray-200" fill="currentColor" />
</pattern>
</defs>
<rect width={404} height={392} fill="url(#02f20b47-fd69-4224-a62a-4c9de5c763f7)" />
</svg>
</div>
<div className="relative mx-auto max-w-md px-4 sm:max-w-3xl sm:px-6 lg:max-w-none lg:px-0 lg:py-20">
{/* Testimonial card*/}
<div className="relative overflow-hidden rounded-2xl pt-64 pb-10 shadow-xl">
<img
className="absolute inset-0 h-full w-full object-cover"
src="https://images.unsplash.com/photo-1521510895919-46920266ddb3?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&fp-x=0.5&fp-y=0.6&fp-z=3&width=1440&height=1440&sat=-100"
alt=""
/>
<div className="absolute inset-0 bg-indigo-500 mix-blend-multiply" />
<div className="absolute inset-0 bg-gradient-to-t from-indigo-600 via-indigo-600 opacity-90" />
<div className="relative px-8">
<div>
<img
className="h-12"
src="https://tailwindui.com/img/logos/workcation.svg?color=white"
alt="Workcation"
/>
</div>
<blockquote className="mt-8">
<div className="relative text-lg font-medium text-white md:flex-grow">
<svg
className="absolute top-0 left-0 h-8 w-8 -translate-x-3 -translate-y-2 transform text-indigo-400"
fill="currentColor"
viewBox="0 0 32 32"
aria-hidden="true"
>
<path d="M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z" />
</svg>
<p className="relative">
Tincidunt integer commodo, cursus etiam aliquam neque, et. Consectetur pretium in volutpat, diam.
Montes, magna cursus nulla feugiat dignissim id lobortis amet.
</p>
</div>

<footer className="mt-4">
<p className="text-base font-semibold text-indigo-200">Sarah Williams, CEO at Workcation</p>
</footer>
</blockquote>
</div>
</div>
</div>
</div>

<div className="relative mx-auto max-w-md px-4 sm:max-w-3xl sm:px-6 lg:px-0">
{/* Content area */}
<div className="pt-12 sm:pt-16 lg:pt-20">
<h2 className="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
On a mission to empower teams
</h2>
<div className="mt-6 space-y-6 text-gray-500">
<p className="text-lg">
Sagittis scelerisque nulla cursus in enim consectetur quam. Dictum urna sed consectetur neque tristique
pellentesque. Blandit amet, sed aenean erat arcu morbi. Cursus faucibus nunc nisl netus morbi vel
porttitor vitae ut. Amet vitae fames senectus vitae.
</p>
<p className="text-base leading-7">
Sollicitudin tristique eros erat odio sed vitae, consequat turpis elementum. Lorem nibh vel, eget
pretium arcu vitae. Eros eu viverra donec ut volutpat donec laoreet quam urna. Sollicitudin tristique
eros erat odio sed vitae, consequat turpis elementum. Lorem nibh vel, eget pretium arcu vitae. Eros eu
viverra donec ut volutpat donec laoreet quam urna.
</p>
<p className="text-base leading-7">
Rhoncus nisl, libero egestas diam fermentum dui. At quis tincidunt vel ultricies. Vulputate aliquet
velit faucibus semper. Pellentesque in venenatis vestibulum consectetur nibh id. In id ut tempus
egestas. Enim sit aliquam nec, a. Morbi enim fermentum lacus in. Viverra.
</p>
</div>
</div>

{/* Stats section */}
<div className="mt-10">
<dl className="grid grid-cols-2 gap-x-4 gap-y-8">
{stats.map((stat) => (
<div key={stat.label} className="border-t-2 border-gray-100 pt-6">
<dt className="text-base font-medium text-indigo-600">{stat.label}</dt>
<dd className="text-3xl font-bold tracking-tight text-indigo-600">{stat.value}</dd>
</div>
))}
</dl>
<div className="mt-10">
<a href="#" className="text-base font-medium text-indigo-600">
Learn more about how we're changing the world
<span aria-hidden="true"> &rarr;</span>
</a>
</div>
</div>
</div>
</div>
</div>
</>
);
};


const DashboardPage = () => {
const [user] = useCurrentUser();
return (
<>
<DashboardSection />
</>
);
};
export default DashboardPage;
Loading