Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
File renamed without changes.
File renamed without changes.
63 changes: 0 additions & 63 deletions Code-For-All/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@ import Shaine from '../assets/shaine.jpeg'
import Dennis from '../assets/dennis.jpeg'
import Oliver from '../assets/oliver.jpg'
import Athor from '../assets/athor.png'
import { useEffect, useState } from 'react';


function Board(){
const [isMobile, setIsMobile] = useState(window.innerWidth <= 480);

useEffect(() => {
const handleResize = () => setIsMobile(window.innerWidth <= 480);
window.addEventListener('resize', handleResize);
return () => window.removeEventListener('resize', handleResize);
}, []);

return(
<div className = "mt-36 text-center">
<h1 className="p-0
Expand All @@ -31,14 +40,14 @@ function Board(){
additionalTransfrom={0}
arrows
autoPlaySpeed={3000}
centerMode={false}
centerMode={!isMobile}
className=""
containerClass="container-with-dots"
dotListClass=""
draggable
focusOnSelect={false}
infinite
itemClass=""
itemClass="flex justify-center"
keyBoardControl
minimumTouchDrag={80}
pauseOnHover
Expand All @@ -47,28 +56,36 @@ function Board(){
renderDotsOutside={false}
responsive={{
desktop: {
breakpoint: {
max: 3000,
min: 1024
},
items: 5,
partialVisibilityGutter: 40
breakpoint: {
max: 3000,
min: 1024
},
items: 3,
partialVisibilityGutter: 40
},
mobile: {
breakpoint: {
max: 464,
min: 0
},
items: 1,
partialVisibilityGutter: 30
breakpoint: {
max: 480,
min: 0
},
items: 1,
partialVisibilityGutter: 30
},
largeMobile: {
breakpoint: {
max: 768,
min: 480
},
items: 1,
partialVisibilityGutter: 30
},
tablet: {
breakpoint: {
max: 1024,
min: 464
},
items: 2,
partialVisibilityGutter: 30
breakpoint: {
max: 1024,
min: 768
},
items: 2,
partialVisibilityGutter: 30
}
}}
rewind={false}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function BoardCard({ image, name, role, description, link }) {
return (
<div className="flex-col max-w-82 p-5 m-10 rounded-xl shadow-lg shadow-black bg-zinc-900 hover:scale-110 ease-in-out duration-300">
<div className="flex-col min-w-56 max-w-72 p-5 m-10 rounded-xl shadow-lg shadow-black bg-zinc-900 hover:scale-110 ease-in-out duration-300">
<div className="group hover:shadow-lg transition-shadow duration-300">
<a href={link}>
<div className="image-container h-60 w-full flex items-center justify-center"> {/* Set fixed dimensions for the image container */}
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.