Skip to content

Commit bc044c2

Browse files
committed
feat: sort drive items by archive status and add new course details in ci7 page #deploy
1 parent 8d8d697 commit bc044c2

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

src/components/ContentNew.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@ export function ContentNew(props) {
8383
role="list"
8484
className="mx-auto mt-8 grid max-w-2xl grid-cols-1 gap-6 text-sm sm:mt-10 sm:grid-cols-2 md:gap-y-10 lg:max-w-none lg:grid-cols-3 lg:items-center"
8585
>
86-
{drive.map((item, index) => (
86+
{drive
87+
.sort((a, b) => {
88+
if (a.archive === true && b.archive !== true) return 1;
89+
if (a.archive !== true && b.archive === true) return -1;
90+
return 0;
91+
})
92+
.map((item, index) => (
8793
<li
8894
key={index}
8995
className="rounded-xl bg-gradient-to-r from-green-300 via-blue-300 to-purple-600 p-0.5 shadow-lg transition hover:shadow-sm dark:shadow-5xl"

src/components/Timetable1styear.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ let time = newDate.toLocaleString('en-US', {
6969
})
7070

7171
function get_time() {
72-
console.log('time: ', time)
72+
// console.log('time: ', time)
7373
if (time >= '09:00' && time <= '09:55') {
7474
return 0
7575
} else if (time >= '09:55' && time <= '10:50') {

src/pages/ci7.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ const cseaimlsem7 = [
155155
description: '(3:0:0) CIE731',
156156
link: 'https://drive.google.com/drive/folders/1UVY0zGayzSeiPB6mY7aZOJlnNmZeOsEb?usp=sharing',
157157
otherlink: '/links',
158+
tag: 'archived',
159+
archive: true,
160+
},
161+
{
162+
title: '4 Full Stack Development',
163+
description: '(3:0:0) CIE733',
164+
link: 'https://drive.google.com/drive/folders/1IdqLJffstiIB4PyMpdzgkG-LghuWb8fM?usp=drive_link',
165+
otherlink: '/links',
158166
tag: '',
159167
},
160168
{

0 commit comments

Comments
 (0)