Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
9c68fa3
Start of search component
SneiderDeveloper Dec 22, 2023
ef109a9
New props
SneiderDeveloper Dec 22, 2023
cd05124
Starting ligth table component
SneiderDeveloper Dec 22, 2023
58510fa
Starting ligth table component
SneiderDeveloper Dec 22, 2023
5319dc2
Name change to tableSimple
SneiderDeveloper Dec 22, 2023
9a1f250
Adding rules to the gitignore
SneiderDeveloper Dec 22, 2023
f0ca929
Adding delay
SneiderDeveloper Dec 22, 2023
b49bd68
Starting breadcrumbs component
SneiderDeveloper Dec 22, 2023
5e62202
Starting the navigation tabs component
SneiderDeveloper Dec 22, 2023
c8ba501
Created Dropdown Menu component with href to real pages
JBellon0301 Dec 22, 2023
0aad7ce
New props
SneiderDeveloper Dec 22, 2023
fe1286c
Merge table-component, table-component
SneiderDeveloper Dec 22, 2023
d10e521
Merging with breadcrumbs-component
SneiderDeveloper Dec 22, 2023
8f31fee
Cleaning up Tailwind configuration file
SneiderDeveloper Dec 23, 2023
04323d8
New props. Adding default values to the props. Implemented a debounce…
SneiderDeveloper Dec 23, 2023
7e2866d
Merging with search-component
SneiderDeveloper Dec 23, 2023
a95db93
Fix
SneiderDeveloper Dec 23, 2023
d217088
Added MenuNavBar and added the dropdown menus
JBellon0301 Dec 27, 2023
bef8bbd
Fixed border and menu options, deleted specific client information
JBellon0301 Dec 27, 2023
ac1aeb1
Fix errors in previous components and added the Header component
JBellon0301 Dec 27, 2023
cd70601
Added: change in header component
imagina Jan 3, 2024
4023442
Added: logic about navbarItem
imagina Jan 3, 2024
3f59913
Removed files and created new icons props
JBellon0301 Jan 10, 2024
eae2825
Added hover effect and dynamic chevron
JBellon0301 Jan 11, 2024
da2325e
Styles configured and tried to set the Props to Dropdown file
JBellon0301 Jan 11, 2024
ce61b02
Reviewed Dropdown Menu and checked changes.
JBellon0301 Jan 12, 2024
4795a16
Added hover and unhover funcionality
JbellonDev Jan 18, 2024
5ed938d
Added two options, Avatar and User for include them to the Dropdown Menu
JbellonDev Jan 19, 2024
4deeca8
merging
SneiderDeveloper Jan 21, 2024
994b708
New customization options.
SneiderDeveloper Jan 22, 2024
aa9b660
Organizing component
SneiderDeveloper Jan 24, 2024
4c9ac0d
Commit created before to pull the recent changes made by Sneider
JbellonDev Jan 24, 2024
07da213
Merge branch 'dropdown-menu' of https://github.com/SneiderDeveloper/u…
JbellonDev Jan 24, 2024
a83b36c
changes added with the files props
JbellonDev Jan 24, 2024
8c7f355
Starting implementation of sections in dropdown elements.
SneiderDeveloper Jan 25, 2024
3ac9124
Decoupling logic. Implementing sections in dropdown elements
SneiderDeveloper Jan 25, 2024
b0c68c0
Organizing component. Fixing TypeScript error (Two pending).
SneiderDeveloper Jan 25, 2024
15f601c
Merge pull request #2 from SneiderDeveloper/dropdown-menu
SneiderDeveloper Jan 25, 2024
8c41ce1
Add: front-end | create: avatar and avatarGoup
josuebedoya Apr 22, 2024
857e150
add: fornt-end | delete tipos from Interface: AvataProps/Avatar.tsx
josuebedoya Apr 29, 2024
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
517 changes: 508 additions & 9 deletions .gitignore

Large diffs are not rendered by default.

2,385 changes: 2,168 additions & 217 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 16 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,31 @@
"lint": "next lint"
},
"dependencies": {
"@nextui-org/breadcrumbs": "^2.0.4",
"@nextui-org/button": "^2.0.26",
"@nextui-org/card": "^2.0.24",
"@nextui-org/dropdown": "^2.1.16",
"@nextui-org/input": "^2.1.16",
"@nextui-org/system": "^2.0.15",
"@nextui-org/table": "^2.0.28",
"@nextui-org/tabs": "^2.0.26",
"@nextui-org/theme": "^2.1.17",
"@nextui-org/user": "^2.0.25",
"framer-motion": "^10.16.16",
"next": "14.0.4",
"react": "^18",
"react-dom": "^18",
"next": "14.0.4"
"use-debounce": "10.0.0"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.0.4",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"eslint": "^8",
"eslint-config-next": "14.0.4"
"typescript": "^5"
}
}
345 changes: 345 additions & 0 deletions src/app/avatar/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,345 @@
import Avatar from '@/components/Avatar/Avatar';
import { CameraIcon } from '@/components/Avatar/CameraIcon';
import { BgAmber, BgGradient, BgPrimary, BgWarning } from '@/components/Avatar/CustomAvatar';
import { group } from 'console';
function Users() {
const userOne = {
src: 'https://i.pravatar.cc/150?u=a042581f4e29026024d',
attributes: {
description: 'user one',
}
};

const userTwo = {
name: 'Junior',
attributes: {
description: 'userTwo'
}
};

const userThree = {
src: 'https://i.pravatar.cc/150?u=a042581f4e29026704d',
attributes: {
description: 'userThree',
}
};

const userFour = {
name: 'Jane',
attributes: {
description: 'userFour',
}
};

const userFive = {
src: 'https://i.pravatar.cc/150?u=a04258114e29026702d',
attributes: {
description: 'userFive'
}
};

const userStiles1 = {
src: 'https://i.pravatar.cc/150?u=a042581f4e29026024d',
attributes: {
className: 'w-6 h-6 text-tiny',
description: 'user one',
}
};

const userStiles2 = {
name: 'Junior',
attributes: {
size: 'sm',
description: 'userTwo'
}
};

const userStiles3 = {
src: 'https://i.pravatar.cc/150?u=a042581f4e29026704d',
attributes: {
size: 'md',
description: 'userThree',
}
};

const userStiles4 = {
name: 'Jane',
attributes: {
description: 'userFour',
size: 'lg'
}
};

const userStiles5 = {
src: 'https://i.pravatar.cc/150?u=a04258114e29026702d',
attributes: {
className: 'w-20 h-20 text-large',
description: 'userFive'
}
};

const Group = {
src: 'https://i.pravatar.cc/150?u=a042581f4e29026024d'
}

const Group1 = {
src: 'https://i.pravatar.cc/150?u=a0425816024d'
}

const Group2 = {
src: 'https://i.pravatar.cc/150?u=a0425819026024d'
}

const Group3 = {
src: 'https://i.pravatar.cc/150?u=a04258129026024d'
}

const Group4 = {
src: 'https://i.pravatar.cc/150?u=a0425f4e290260245d'
}

const Group5 = {
src: 'https://i.pravatar.cc/150?u=a0425290260254d'
}

const Groups = [
{
src: 'https://i.pravatar.cc/150?u=a04251602d'

},
{
src: 'https://i.pravatar.cc/150?u=a042581444t26024d'
},
{
src: 'https://i.pravatar.cc/150?u=a042581226024d'
},
{
src: 'https://i.pravatar.cc/150?u=a0425f4e2260245d'
},
{
src: 'https://i.pravatar.cc/150?u=a04252906024d'
},
{
src: 'https://i.pravatar.cc/150?u=a042529260254d'
},
{
src: 'https://i.pravatar.cc/150?u=a04251602d'

},
{
src: 'https://i.pravatar.cc/150?u=a042581426024d'
},
{
src: 'https://i.pravatar.cc/150?u=a042526024d'
},
{
src: 'https://i.pravatar.cc/150?u=a0425f4e20245d'
},
{
src: 'https://i.pravatar.cc/150?u=a04252924d'
},
{
src: 'https://i.pravatar.cc/150?u=a04252954'
},

]

return (
<>
<div className='grid grid-cols-1 gap-10' >
<div className='avatar grid grid-cols-3 items-center gap-7'>
{/* Avatar ////////////////////////////////////////////////////////////////// */}
<div className='flex gap-3'>
<Avatar
src={userOne.src}
/>
<Avatar
name={userTwo.name}
/>
<Avatar
src={userThree.src}
/>
<Avatar
name={userFour.name}
/>
<Avatar
src={userFive.src}
/>
</div>
{/* is dibaled ////////////////////////////////////////////////////////// */}
<div className='flex gap-4'>
<Avatar isDisabled
src={userStiles1.src}
{...userOne.attributes}
/>
<Avatar isDisabled
name={userStiles2.name}
{...userTwo.attributes}
/>
<Avatar isDisabled
src={userStiles3.src}
{...userThree.attributes}
/>
<Avatar isDisabled
name={userStiles4.name}
{...userFour.attributes}
/>
<Avatar isDisabled
src={userStiles5.src}
{...userFive.attributes}
/>
</div>
{/* is bordered /////////////////////////////////////////////////////////////////////////////////////// */}
<div className='flex gap-4'>
<Avatar isBordered
src={userStiles1.src}
{...userStiles1.attributes}
/>
<Avatar isBordered
name={userStiles2.name}
{...userTwo.attributes}
/>
<Avatar isBordered
src={userStiles3.src}
{...userThree.attributes}
/>
<Avatar isBordered
name={userStiles4.name}
{...userFour.attributes}
/>
<Avatar isBordered
src={userStiles5.src}
{...userStiles5.attributes}
/>
</div>
{/* se pueden pasar los atributos directamente/////////////////////////////
BORDERED Radius//////////////////////////////////////////////*/}
<div className='flex gap-3'>
<Avatar isBordered
src='https://i.pravatar.cc/150?u=a042544f44v5526rrr'
radius='full'
/>
<Avatar isBordered
src='https://i.pravatar.cc/150?u=a04254444vv5526rrr'
radius='lg'
/>
<Avatar isBordered
src='https://i.pravatar.cc/150?u=a042544f4vv5526rrr'
radius='md'
/>
<Avatar isBordered
src='https://i.pravatar.cc/150?u=a044544f4vv5526rrr'
radius='sm'
/>
</div>
{/* bordered color ///////////////////////////////////////////////// */}
<div className='flex gap-3'>
<Avatar isBordered
src='https://i.pravatar.cc/150?u=a042581f4e6024d'
color='default'
/>
<Avatar isBordered
src='https://i.pravatar.cc/150?u=a042581f4e224d'
color='primary'
/>
<Avatar isBordered
src='https://i.pravatar.cc/150?u=a042581f4026024d'
color='seconday'
/>
<Avatar isBordered
src='https://i.pravatar.cc/150?u=a042581f4e290024d'
color='success'
/>
<Avatar isBordered
src='https://i.pravatar.cc/150?u=a0425829026024d'
color='warning'
/>
<Avatar isBordered
src='https://i.pravatar.cc/150?u29026024d'
color='danger'
/>
</div>
{/* default avatars en caso de que no cargue una imagen */}
<div className="flex gap-4">
<Avatar showFallback
src='https://images.unsplash.com/broken'
fallback={
<CameraIcon className='animate-pulse w-6 h-6 text-default-500' />
} />
<Avatar showFallback
src='https://images.unsplash.com/broken'
/>
<Avatar showFallback
name='Jane'
src='https://images.unsplash.com/broken'
/>
<Avatar
name='Joe'
src='https://images.unsplash.com/broken'
/>
</div>


</div >
<hr />
<div className='grid grid-cols-3 gap-8'>
{/* Avatar group /////////////////////////////////////////////////////////////////*/}
<Avatar
isBordered
isAvatarGroup={true}
avatarGroup={Groups}
/>
{/* Avatar group Disabled /////////////////////////////////////////////////////////////////*/}
<Avatar
isDisabled
isBordered
isAvatarGroup={true}
avatarGroup={Groups}
/>
{/* Avatar group maximum elements /////////////////////////////////////////////////////////////////*/}
<Avatar
isBordered
max={3}
isAvatarGroup={true}
avatarGroup={Groups}
/>
{/* Avatar group maximum elements and minimum /////////////////////////////////////////////////////////////////*/}
<Avatar
max={6}
total={10}
isBordered
isAvatarGroup={true}
avatarGroup={Groups}
/>
<Avatar
isGrid={true}
max={12}
isBordered
isAvatarGroup={true}
avatarGroup={Groups}
/>
{/* Avatar group show additional with text
NOTE:This is used when the server is running the client =>> 'use client'
<Avatar
max={3}
isBordered
total={13}
renderCount={(total) => (
<p className="text-small font-medium ms-2 shadow-md">+{total} others</p>
)}
isAvatarGroup={true}
avatarGroup={Groups}
/> */}
<div className='flex gap-3 '>
<BgGradient />
<BgPrimary />
<BgWarning />
<BgAmber />
</div>

</div>
</div>
</>
);
}
export default Users;
7 changes: 7 additions & 0 deletions src/app/carousel/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function CarouselPage() {
return (
<div className="carousel-page">
<h1>Carousel Page</h1>
</div>
)
}
Loading