Skip to content

Commit

Permalink
Improve Mobile MenuDrawer (sef-global#111)
Browse files Browse the repository at this point in the history
Co-authored-by: Anjula Shanaka <anjulashanaka@gmail.com>
  • Loading branch information
mayura-andrew and anjula-sack authored Jun 1, 2024
1 parent 694acfd commit e6fd958
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 67 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/logos/x_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions src/assets/svg/Icons/FacebookIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ const FacebookIcon: React.FC = () => {
return (
<div>
<svg
className="w-7"
viewBox="0 -6 512 512"
xmlns="http://www.w3.org/2000/svg"
width="1.2rem"
height="1.2rem"
viewBox="0 0 24 24"
>
<path fill="#475a96" d="M0 0h512v500H0z" />
<path
d="M375.717 112.553H138.283c-8.137 0-14.73 6.594-14.73 14.73v237.434c0 8.135 6.594 14.73 14.73 14.73h127.826V276.092h-34.781v-40.28h34.781v-29.705c0-34.473 21.055-53.244 51.807-53.244 14.73 0 27.391 1.097 31.08 1.587v36.026l-21.328.01c-16.725 0-19.963 7.947-19.963 19.609v25.717h39.887l-5.193 40.28h-34.693v103.355h68.012c8.135 0 14.73-6.596 14.73-14.73V127.283c-.001-8.137-6.596-14.73-14.731-14.73z"
fill="#ffffff"
fill="none"
stroke="black"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"
/>
</svg>
</div>
Expand Down
50 changes: 9 additions & 41 deletions src/assets/svg/Icons/InstagramIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,20 @@ const InstagramIcon: React.FC = () => {
return (
<div>
<svg
className="h-6 "
viewBox="-2.4 -2.4 28.80 28.80"
fill="#ffffff"
xmlns="http://www.w3.org/2000/svg"
stroke="#593636"
strokeWidth="0.00024000000000000003"
width="1.2rem"
height="1.2rem"
viewBox="0 0 24 24"
>
<g
id="SVGRepo_bgCarrier"
strokeWidth="0"
transform="translate(2.879999999999999,2.879999999999999), scale(0.76)"
>
<rect
x="-2.4"
y="-2.4"
width="28.80"
height="28.80"
rx="14.4"
fill="#ffffff"
strokeWidth="0"
></rect>
</g>
<g
id="SVGRepo_tracerCarrier"
fill="none"
stroke="black"
strokeLinecap="round"
strokeLinejoin="round"
stroke="#c12584CCCCCC"
strokeWidth="0.048"
></g>
<g id="SVGRepo_iconCarrier">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z"
fill="#c12584"
></path>
<path
d="M18 5C17.4477 5 17 5.44772 17 6C17 6.55228 17.4477 7 18 7C18.5523 7 19 6.55228 19 6C19 5.44772 18.5523 5 18 5Z"
fill="#c12584"
></path>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M1.65396 4.27606C1 5.55953 1 7.23969 1 10.6V13.4C1 16.7603 1 18.4405 1.65396 19.7239C2.2292 20.8529 3.14708 21.7708 4.27606 22.346C5.55953 23 7.23969 23 10.6 23H13.4C16.7603 23 18.4405 23 19.7239 22.346C20.8529 21.7708 21.7708 20.8529 22.346 19.7239C23 18.4405 23 16.7603 23 13.4V10.6C23 7.23969 23 5.55953 22.346 4.27606C21.7708 3.14708 20.8529 2.2292 19.7239 1.65396C18.4405 1 16.7603 1 13.4 1H10.6C7.23969 1 5.55953 1 4.27606 1.65396C3.14708 2.2292 2.2292 3.14708 1.65396 4.27606ZM13.4 3H10.6C8.88684 3 7.72225 3.00156 6.82208 3.0751C5.94524 3.14674 5.49684 3.27659 5.18404 3.43597C4.43139 3.81947 3.81947 4.43139 3.43597 5.18404C3.27659 5.49684 3.14674 5.94524 3.0751 6.82208C3.00156 7.72225 3 8.88684 3 10.6V13.4C3 15.1132 3.00156 16.2777 3.0751 17.1779C3.14674 18.0548 3.27659 18.5032 3.43597 18.816C3.81947 19.5686 4.43139 20.1805 5.18404 20.564C5.49684 20.7234 5.94524 20.8533 6.82208 20.9249C7.72225 20.9984 8.88684 21 10.6 21H13.4C15.1132 21 16.2777 20.9984 17.1779 20.9249C18.0548 20.8533 18.5032 20.7234 18.816 20.564C19.5686 20.1805 20.1805 19.5686 20.564 18.816C20.7234 18.5032 20.8533 18.0548 20.9249 17.1779C20.9984 16.2777 21 15.1132 21 13.4V10.6C21 8.88684 20.9984 7.72225 20.9249 6.82208C20.8533 5.94524 20.7234 5.49684 20.564 5.18404C20.1805 4.43139 19.5686 3.81947 18.816 3.43597C18.5032 3.27659 18.0548 3.14674 17.1779 3.0751C16.2777 3.00156 15.1132 3 13.4 3Z"
fill="#c12584"
></path>
strokeWidth="2"
>
<rect width="20" height="20" x="2" y="2" rx="5" ry="5" />
<path d="M16 11.37A4 4 0 1 1 12.63 8A4 4 0 0 1 16 11.37m1.5-4.87h.01" />
</g>
</svg>
</div>
Expand Down
19 changes: 13 additions & 6 deletions src/assets/svg/Icons/LinkedinIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ const LinkedinIcon: React.FC = () => {
return (
<div>
<svg
className="w-4"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
width="1.2rem"
height="1.2rem"
viewBox="0 0 24 24"
>
<path
fill="#f7f7f8"
d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"
/>
<g
fill="none"
stroke="black"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
>
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2a2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6M2 9h4v12H2z" />
<circle cx="4" cy="4" r="2" />
</g>
</svg>
</div>
);
Expand Down
14 changes: 1 addition & 13 deletions src/assets/svg/Icons/TwitterIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,7 @@ import React from 'react';
const TwitterIcon: React.FC = () => {
return (
<div>
<svg
className="w-6"
xmlns="http://www.w3.org/2000/svg"
aria-label="Twitter"
role="img"
viewBox="0 0 512 512"
>
<rect width="512" height="512" rx="15%" fill="#1da1f2" />
<path
fill="#ffffff"
d="M437 152a72 72 0 01-40 12a72 72 0 0032-40a72 72 0 01-45 17a72 72 0 00-122 65a200 200 0 01-145-74a72 72 0 0022 94a72 72 0 01-32-7a72 72 0 0056 69a72 72 0 01-32 1a72 72 0 0067 50a200 200 0 01-105 29a200 200 0 00309-179a200 200 0 0035-37"
/>
</svg>
<img src="/logos/x_logo.svg" alt="X" className="w-4" />
</div>
);
};
Expand Down
3 changes: 2 additions & 1 deletion src/components/Layout/MenuDrawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ const MenuDrawer: React.FC<MenuDrawerProps> = ({
Join Us
</Link>
<button
className="mr-5 mb-5 w-40 h-9 text-black bg-gray-200 py-1 px-4 rounded"
type="button"
onClick={handleMentorRegistration}
className="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-m px-5 py-2.5 me-2 mb-2"
>
Become a Mentor
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const Navbar: React.FC = () => {
<button
type="button"
onClick={handleLoginModalOpen}
className="text-blue-700 hover:text-white border border-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center me-2 mb-2 dark:border-blue-500 dark:text-blue-500 dark:hover:text-white dark:hover:bg-blue-500 dark:focus:ring-blue-800"
className="text-blue-700 hover:text-white border border-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 text-center dark:border-blue-500 dark:text-blue-500 dark:hover:text-white dark:hover:bg-blue-500 dark:focus:ring-blue-800"
>
Login
</button>
Expand Down

0 comments on commit e6fd958

Please # to comment.