Skip to content

Commit

Permalink
set usernaem
Browse files Browse the repository at this point in the history
  • Loading branch information
thakiyudheen committed Jul 24, 2024
1 parent e458fed commit 60210e0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/Components/user/home/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Features: React.FC = () => {
}, []);

return (
<div className='mt-[3rem] font-Poppins md:p-0 max-w-10xl'>
<div className='mt-[3rem] font-Poppins p-6 md:p-0'>
<h1 className='text-center font-bold text-[20px]'>
<span className='text-blue-900'>Our</span> <span className='text-blue-500'>Features</span>
</h1>
Expand All @@ -29,7 +29,7 @@ const Features: React.FC = () => {
</p>

{/* First Section */}
<div className='md:flex mt-10 md:h-[350px] justify-evenly max-w-10xl'>
<div className='md:flex mt-10 md:h-[350px] justify-evenly'>
<motion.div
className="image flex-[1] flex justify-center "
initial={{ opacity: 0, y: 20 }}
Expand All @@ -42,15 +42,15 @@ const Features: React.FC = () => {
<img src={Feature} className='md:h-[20rem] h-[15rem] md:ml-[7rem]' alt="feature" />
</motion.div>
<motion.div
className='flex-[1] text-center md:text-start md:ml-[6rem] '
className='flex-[1] text-center md:text-start md:ml-[6rem]'
initial={{ opacity: 0, y: 20 }}
animate={{
opacity: scrollPosition > 100 ? 1 : 0, // Fade in when scroll position is greater than 100
y: scrollPosition > 100 ? 0 : 20, // Move up when scroll position is greater than 100
}}
transition={{ duration: 0.5 }}
>
<h1 className='text-blue-900 text-[25px] font-bold md:w-[60%] mt-11 '>A <span className='text-blue-500'>user interface</span> designed for the classroom</h1>
<h1 className='text-blue-900 text-[25px] font-bold md:w-[60%] mt-11'>A <span className='text-blue-500'>user interface</span> designed for the classroom</h1>
<ul className="md:list-disc md:w-[50%] w-[70%] mt-[1rem] w-full flex justify-center flex-col">
<li className='text-[14px] pt-2'>Teachers don’t get lost in the grid view and have a dedicated Podium space.</li>
<li className='text-[14px] pt-2'>TA’s and presenters can be moved to the front of the class.</li>
Expand All @@ -60,9 +60,9 @@ const Features: React.FC = () => {
</div>

{/* Second Section */}
<div className='md:flex md:h-[400px] justify-evenly items-center max-w-7xl'>
<div className='md:flex md:h-[400px] justify-evenly items-center'>
<motion.div
className="image flex-[1] flex justify-center md:order-2 md:relative "
className="image flex-[1] flex justify-center md:order-2 md:relative right-[10rem]"
initial={{ opacity: 0, y: 20 }}
animate={{
opacity: scrollPosition > 300 ? 1 : 0, // Fade in when scroll position is greater than 300
Expand All @@ -87,7 +87,7 @@ const Features: React.FC = () => {
</div>

{/* Third Section */}
<div className='md:flex mt-10 md:h-[350px] justify-evenly max-w-10xl'>
<div className='md:flex mt-10 md:h-[350px] justify-evenly'>
<motion.div
className="image flex-[1] flex justify-center "
initial={{ opacity: 0, y: 20 }}
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/auth/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const Signup: React.FC = () => {
role: location.state.role,
email: response.payload.data.email,
password: response.payload.data.password,
username: response.payload.username,
username: response.payload.data.username,
isGauth: true
};
navigator(location.state.role === 'student' ? '/userRegister' : '/instructorRegister', { state: signUpData });
Expand Down
4 changes: 2 additions & 2 deletions src/utils/generatePdf/generatePdf.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { jsPDF } from 'jspdf';
import 'jspdf-autotable';
import Img from '../../assets/enrollment/certificate-new.png'; // Path to your certificate background image
import Img from '../../assets/enrollment/certificate-new.png';


// Function to generate a PDF certificate
export function generateCertificate(name:string, courseName:string, date:any, download = true) {
const doc = new jsPDF({
orientation: 'landscape',
Expand Down

0 comments on commit 60210e0

Please sign in to comment.