-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix typos and add some animations to navbar
- Loading branch information
Showing
7 changed files
with
93 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,49 @@ | ||
'use client'; | ||
import React from 'react'; | ||
import { Info, Topics } from '@/config/content/Statistics/CardData'; | ||
import { Table } from 'flowbite-react'; | ||
|
||
export const Card = () => { | ||
return ( | ||
<> | ||
<div className='p-4 flex justify-center items-center'> | ||
<div | ||
className='w-full max-w-7xl bg-black rounded-lg shadow-lg overflow-hidden' | ||
style={{ boxShadow: '0px 4px 31px 0px rgba(255, 255, 255, 0.25)' }} | ||
className='w-auto md:max-w-[1200px] min-h-[400px] md:min-h-[548px] h-auto bg-[#091123] rounded-[16px] md:rounded-[24px] p-4 md:p-12 lg:p-24 mx-auto content-center' | ||
> | ||
<div className='w-full text-center font-orbitron mb-6 md:mb-12 font-semibold text-[14px] sm:text-[16px] md:text-[24px] lg:text-[32px] leading-[22px] md:leading-[40.13px]'> | ||
Top College Registered for Innovision | ||
<div className='p-4 sm:p-6 md:p-8 lg:p-10'> | ||
<h2 className='text-center font-orbitron font-semibold text-white text-lg sm:text-xl md:text-2xl lg:text-3xl mb-4 sm:mb-6 md:mb-8'> | ||
Top Colleges Registered for Innovision | ||
</h2> | ||
<div className='overflow-x-auto'> | ||
<Table className='w-full'> | ||
<Table.Head> | ||
{Topics.map((topic, index) => ( | ||
<Table.HeadCell | ||
key={index} | ||
className='font-orbitron font-bold text-center text-xs sm:text-sm md:text-base lg:text-lg py-2 sm:py-3 border-b border-gray-700' | ||
> | ||
{topic} | ||
</Table.HeadCell> | ||
))} | ||
</Table.Head> | ||
<Table.Body className='divide-y divide-gray-700'> | ||
{Info.map((item, i) => ( | ||
<Table.Row className='hover:bg-gray-800 transition-all' key={i}> | ||
<Table.Cell className='font-montserrat text-white text-center font-medium text-xs sm:text-sm md:text-base py-2 sm:py-3'> | ||
{item.Rank} | ||
</Table.Cell> | ||
<Table.Cell className='font-montserrat text-white text-center font-medium text-xs sm:text-sm md:text-base py-2 sm:py-3'> | ||
{item.college} | ||
</Table.Cell> | ||
</Table.Row> | ||
))} | ||
</Table.Body> | ||
</Table> | ||
</div> | ||
</div> | ||
|
||
<Table className='w-full'> | ||
<Table.Head> | ||
{Topics.map((topic, index) => ( | ||
<Table.HeadCell | ||
key={index} | ||
className='font-orbitron font-bold text-center text-[8px] xsm:text-[10px] sm:text-[12px] md:text-[16px] lg:text-[20px] leading-[12px] md:leading-[24px] pb-2 md:pb-4 border-b border-gray-700' | ||
> | ||
{topic} | ||
</Table.HeadCell> | ||
))} | ||
</Table.Head> | ||
|
||
<Table.Body className='divide-y divide-gray-700'> | ||
{Info.map((item, i) => ( | ||
<Table.Row className='hover:bg-gray-800 transition-all' key={i}> | ||
<Table.Cell className='font-montserrat text-[#FFF7F7] text-center font-medium text-[8px] sm:text-[10px] md:text-[14px] lg:text-[16px] leading-[12px] sm:leading-[18px] md:leading-[22px]'> | ||
{item.Rank} | ||
</Table.Cell> | ||
<Table.Cell className='font-montserrat text-center font-medium text-[8px] sm:text-[10px] md:text-[14px] lg:text-[16px] leading-[12px] sm:leading-[18px] md:leading-[22px]'> | ||
{item.college} | ||
</Table.Cell> | ||
</Table.Row> | ||
))} | ||
</Table.Body> | ||
</Table> | ||
</div> | ||
</> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Card; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters