Skip to content

Commit

Permalink
attendance
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakSarkar02 committed Feb 4, 2023
1 parent eea875f commit b1bba80
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
2 changes: 1 addition & 1 deletion studentfrontend/components/navbar/menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function menu() {
</svg>
</button>
</Link>
<Link href="/dashboard">
<Link href="/attendance">
<button className='w-12 bg-white drop-shadow-lg h-12 rounded-full flex items-center justify-center'>
<svg className='text-primary' height="23" viewBox="0 0 19 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M9.08369 20C7.46988 20 6.10477 19.5694 4.98836 18.7083C3.87138 17.8472 3.06793 16.8125 2.57803 15.6042L0.0708639 9.47917C-0.044408 9.20139 -0.0190482 8.94111 0.146943 8.69833C0.312359 8.455 0.54636 8.33333 0.848949 8.33333C1.13713 8.33333 1.50456 8.42694 1.95124 8.61417C2.39792 8.80194 2.71491 9.11806 2.90223 9.5625L4.11258 12.5H4.76099V2.70833C4.76099 2.41667 4.8656 2.17 5.07482 1.96833C5.28346 1.76722 5.53907 1.66667 5.84166 1.66667C6.14425 1.66667 6.39987 1.76722 6.60851 1.96833C6.81773 2.17 6.92234 2.41667 6.92234 2.70833V10H7.78688V1.04167C7.78688 0.75 7.89149 0.503333 8.10071 0.301667C8.30935 0.100556 8.56496 0 8.86755 0C9.17014 0 9.42576 0.100556 9.6344 0.301667C9.84362 0.503333 9.94823 0.75 9.94823 1.04167V10H10.8128V2.29167C10.8128 2 10.9174 1.75333 11.1266 1.55167C11.3352 1.35056 11.5908 1.25 11.8934 1.25C12.196 1.25 12.4519 1.35056 12.6611 1.55167C12.8698 1.75333 12.9741 2 12.9741 2.29167V10H13.8387V4.79167C13.8387 4.5 13.9433 4.25333 14.1525 4.05167C14.3611 3.85056 14.6167 3.75 14.9193 3.75C15.2219 3.75 15.4778 3.85056 15.687 4.05167C15.8957 4.25333 16 4.5 16 4.79167V13.3333C16 15.1944 15.33 16.7708 13.9899 18.0625C12.6499 19.3542 11.0145 20 9.08369 20Z" fill="#9999EE"/>
Expand Down
36 changes: 33 additions & 3 deletions studentfrontend/pages/attendance.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,39 @@
import React from 'react'
import Body from '../components/Layouts/Body'
import Link from 'next/link'

export default function attendance() {
return (
<div>
hi
</div>
<Body>
<form className='m-5 p-2 text-xl'>
<h3 className='text-2xl text-accent font-semibold'>Q1. Where is HTF3</h3>
<input type="radio" name="fav_language" value="Kolkata"/>
<label for="Kolkata" className='ml-2'>Kolkata</label><br/>
<input type="radio" name="fav_language" value="Delhi"/>
<label for="Delhi" className='ml-2'>Delhi</label><br/>
<input type="radio" name="fav_language" value="Gandhinagar"/>
<label for="Gandhinagar" className='ml-2'>Gandhinagar</label><br />
<input type="radio" name="fav_language" value="Bihar"/>
<label for="Bihar" className='ml-2'>Bihar</label><br />
</form>

<form className='m-5 p-2 text-xl'>
<h3 className='text-2xl text-accent font-semibold'>Q2. Test Question</h3>
<input type="radio" name="fav_language" value="Kolkata"/>
<label for="Kolkata" className='ml-2'>1</label><br/>
<input type="radio" name="fav_language" value="Delhi"/>
<label for="Delhi" className='ml-2'>2</label><br/>
<input type="radio" name="fav_language" value="Gandhinagar"/>
<label for="Gandhinagar" className='ml-2'>3</label><br />
<input type="radio" name="fav_language" value="Bihar"/>
<label for="Bihar" className='ml-2'>4</label><br />
</form>

<div className='flex justify-center items-center'>
<Link href="/success">
<button type='submit' className='p-2 px-4 text-xl container mx-auto w-32 bg-primary text-white font-semibold rounded-full'>Submit</button>
</Link>
</div>
</Body>
)
}
16 changes: 16 additions & 0 deletions studentfrontend/pages/success.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import Body from '../components/Layouts/Body'
import Link from 'next/link'

export default function Success() {
return (
<Body title="Success">
<h2 className='text-4xl font-bold text-primary text-center mt-48 mb-20'>Yay! Submitted Successfully</h2>
<div className='flex justify-center items-center'>
<Link href="/dashboard">
<button type='submit' className='p-2 px-4 text-xl container mx-auto w-52 bg-primary text-white font-semibold rounded-full'>Go Back to Dashboard</button>
</Link>
</div>
</Body>
)
}

3 comments on commit b1bba80

@vercel
Copy link

@vercel vercel bot commented on b1bba80 Feb 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Resource is limited - try again in 4 hours (more than 100, code: "api-deployments-free-per-day").

@vercel
Copy link

@vercel vercel bot commented on b1bba80 Feb 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ed360-teacher-backend – ./teacherBackend

ed360-teacher-backend.vercel.app
ed360-teacher-backend-raihankhan-rk.vercel.app
ed360-teacher-backend-git-main-raihankhan-rk.vercel.app

@vercel
Copy link

@vercel vercel bot commented on b1bba80 Feb 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ed360-teacher-frontend – ./teacherfrontend

ed360-teacher-frontend-git-main-raihankhan-rk.vercel.app
ed360-teacher-frontend-raihankhan-rk.vercel.app
ed360-teacher-frontend.vercel.app

Please sign in to comment.