Skip to content

Commit

Permalink
Add:Profile
Browse files Browse the repository at this point in the history
Fix:Layout
  • Loading branch information
ismail-kharrobi committed Aug 27, 2023
1 parent c44a17e commit 2c7f1b5
Show file tree
Hide file tree
Showing 14 changed files with 772 additions and 683 deletions.
2 changes: 1 addition & 1 deletion frontend/code/src/components/404/assest/font.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions frontend/code/src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tart ">
<Out/>
</div>
</div>
<div className=" h-[8vh] sm:hidden btm-nav bg-base-200 flex justify-end z-50">
<div className=" h-[8vh] fixed bottom-0 sm:hidden btm-nav bg-base-200 flex justify-end z-50">
<button className="">
<Dash/>
</button>
Expand All @@ -62,7 +62,7 @@ tart ">
<Settings/>
</button>
</div>
<div className='sm:-ml-4 sm:w-[91vw] xl:w-[95vw] md:w-[92.5vw] w-screen right-0 z-10 h-[84vh] sm:h-[92vh] bg-base-100 sm:rounded-tl-2xl overflow-auto no-scrollbar'>
<div className='sm:-ml-4 sm:w-[92vw] xl:w-[95vw] md:w-[93.5vw] w-screen right-0 z-10 h-[84vh] sm:h-[92vh] bg-base-100 sm:rounded-tl-2xl overflow-auto no-scrollbar'>
{Content.children}
</div>
</div>
Expand Down
13 changes: 13 additions & 0 deletions frontend/code/src/components/Profile/History.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Chart } from './assets/Chart'
import { Table } from './assets/Table'
export const History = () => {
return (
<div className='flex flex-col rounded-2xl justify-start items-start mt-6 sm:h-full h-full w-full bg-base-200 overflow-scroll no-scrollbar'>
<div className="flex justify-start items-start pl-2 pt-2 sm:pl-12 sm:pt-12 gap-x-4 py-4">
<Chart/> <span className='font-montserrat'>Matches History</span>

</div>
<Table />
</div>
)
}
9 changes: 9 additions & 0 deletions frontend/code/src/components/Profile/assets/Chart.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const Chart = () => {
return (

<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M16.8694 0C20.7805 0 22.9885 2.21835 23 6.1295V16.8705C23 20.7805 20.7805 23 16.8694 23H6.1295C2.21835 23 0 20.7805 0 16.8705V6.1295C0 2.21835 2.21835 0 6.1295 0H16.8694ZM12.075 4.7495C11.7519 4.554 11.3609 4.554 11.0515 4.7495C10.7399 4.94385 10.5685 5.3015 10.6019 5.658V17.3765C10.6605 17.871 11.0734 18.239 11.5564 18.239C12.052 18.239 12.4649 17.871 12.5109 17.3765V5.658C12.5569 5.3015 12.3855 4.94385 12.075 4.7495ZM6.7045 8.5215C6.394 8.326 6.00185 8.326 5.6925 8.5215C5.38085 8.717 5.2095 9.07235 5.244 9.43V17.3765C5.28885 17.871 5.70285 18.239 6.19735 18.239C6.693 18.239 7.10585 17.871 7.15185 17.3765V9.43C7.1875 9.07235 7.01385 8.717 6.7045 8.5215ZM17.3524 12.696C17.043 12.5005 16.652 12.5005 16.33 12.696C16.0184 12.8915 15.847 13.2354 15.893 13.6045V17.3765C15.939 17.871 16.3519 18.239 16.8475 18.239C17.3305 18.239 17.7434 17.871 17.802 17.3765V13.6045C17.8354 13.2354 17.664 12.8915 17.3524 12.696Z" fill="white"/>
</svg>

)
}
8 changes: 4 additions & 4 deletions frontend/code/src/components/Profile/assets/File.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const File = () => {
return (
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.1716 3H9C7.11438 3 6.17157 3 5.58579 3.58579C5 4.17157 5 5.11438 5 7V17C5 18.8856 5 19.8284 5.58579 20.4142C6.17157 21 7.11438 21 9 21H15C16.8856 21 17.8284 21 18.4142 20.4142C19 19.8284 19 18.8856 19 17V8.82843C19 8.41968 19 8.2153 18.9239 8.03153C18.8478 7.84776 18.7032 7.70324 18.4142 7.41421L14.5858 3.58579C14.2968 3.29676 14.1522 3.15224 13.9685 3.07612C13.7847 3 13.5803 3 13.1716 3Z" stroke="#BDBDBD" stroke-width="2"/>
<path d="M9 13L15 13" stroke="#BDBDBD" stroke-width="2" stroke-linecap="round"/>
<path d="M9 17L13 17" stroke="#BDBDBD" stroke-width="2" stroke-linecap="round"/>
<path d="M13 3V7C13 7.94281 13 8.41421 13.2929 8.70711C13.5858 9 14.0572 9 15 9H19" stroke="#BDBDBD" stroke-width="2"/>
<path d="M13.1716 3H9C7.11438 3 6.17157 3 5.58579 3.58579C5 4.17157 5 5.11438 5 7V17C5 18.8856 5 19.8284 5.58579 20.4142C6.17157 21 7.11438 21 9 21H15C16.8856 21 17.8284 21 18.4142 20.4142C19 19.8284 19 18.8856 19 17V8.82843C19 8.41968 19 8.2153 18.9239 8.03153C18.8478 7.84776 18.7032 7.70324 18.4142 7.41421L14.5858 3.58579C14.2968 3.29676 14.1522 3.15224 13.9685 3.07612C13.7847 3 13.5803 3 13.1716 3Z" stroke="#BDBDBD" strokeWidth="2"/>
<path d="M9 13L15 13" stroke="#BDBDBD" strokeWidth="2" strokeLinecap="round"/>
<path d="M9 17L13 17" stroke="#BDBDBD" strokeWidth="2" strokeLinecap="round"/>
<path d="M13 3V7C13 7.94281 13 8.41421 13.2929 8.70711C13.5858 9 14.0572 9 15 9H19" stroke="#BDBDBD" strokeWidth="2"/>
</svg>

)
Expand Down
Binary file modified frontend/code/src/components/Profile/assets/Hero.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2c7f1b5

Please sign in to comment.