KUSchedule.js 925 Bytes
Newer Older
Kim, Subin's avatar
KU    
Kim, Subin committed
1
2
import styles from "./schedule.module.scss";

Kim, Subin's avatar
Kim, Subin committed
3
const KUSchedule = ({ schedule }) => {
Kim, Subin's avatar
KU    
Kim, Subin committed
4
5
    return (
        <div className="card w-75 rounded-0 border-dark mx-auto">
Kim, Subin's avatar
Kim, Subin committed
6
            <div className={`card-header rounded-0 p-1 ${styles.header}`}>
Kim, Subin's avatar
KU    
Kim, Subin committed
7
8
9
                <img className={styles.ku_tiger} src={process.env.PUBLIC_URL + '/ku-tiger(bgX).png'} alt="어흥이" />
            </div>
            <div className="card-body text-center pb-2">
Kim, Subin's avatar
Kim, Subin committed
10
11
12
                {schedule.title.length > 12 ? <marquee className={`card-title fs-5 ${styles.flowText}`} loop="infinite">{schedule.title}</marquee> : <h5 className="card-title">{schedule.title}</h5>}
                <p className="card-text text-secondary mb-1">{(schedule.start === schedule.end) ? schedule.start : schedule.start + "~" + schedule.end}</p>
                <p className="text-start mb-0">{schedule.memo}</p>
Kim, Subin's avatar
KU    
Kim, Subin committed
13
14
15
16
17
18
            </div>
        </div>
    )
}

export default KUSchedule