-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from stamford-syntax-club/guidelinePage
- Loading branch information
Showing
9 changed files
with
171 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"eslint.workingDirectories": [ | ||
{ | ||
"mode": "auto" | ||
} | ||
] | ||
"eslint.workingDirectories": [ | ||
{ | ||
"mode": "auto" | ||
} | ||
], | ||
"git.rebaseWhenSync": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
interface Guideline { | ||
title: string; | ||
rules?: string[]; | ||
} | ||
|
||
interface Aspect { | ||
title: string; | ||
info: string; | ||
} | ||
|
||
export const guideline: Guideline[] = [ | ||
{ | ||
title: "Be Honest and Constructive", | ||
rules: [ | ||
"Share your genuine experience and opinions about the course by providing constructive criticism and avoiding using offensive language.", | ||
"Remember that your review is subjective and based on your experience. Other students may have different opinions and experiences. Please do not consider any single review as the main reason to enroll in or avoid a course" | ||
] | ||
}, | ||
{ | ||
title: "Advice for Future Students", | ||
rules: [ | ||
"Offer tips or advice for students considering taking the course. For example, how to prepare for the course or what to expect", | ||
"Use specific examples to illustrate your points. For instance, mention particular assignments, projects, or teaching methods that stood out" | ||
] | ||
}, | ||
{ | ||
title: "Be Respectful and Fair", | ||
rules: [ | ||
"Write your review respectfully and avoid personal attacks on instructors or classmates.", | ||
"Provide balanced feedback, mentioning both positives and areas for improvement.", | ||
"Ensure your review does not encourage or suggest academic dishonesty. Respect the academic policies of your institution.", | ||
"Avoid mentioning the names of individuals in your review unless it is to admire or positively acknowledge their contribution" | ||
] | ||
}, | ||
{ | ||
title: "Keep it Relevant", | ||
rules: [ | ||
"Focus on aspects directly related to the course and its delivery.", | ||
"Avoid discussing unrelated personal grievances or issues outside the scope of the course." | ||
] | ||
} | ||
]; | ||
|
||
export const aspects: Aspect[] = [ | ||
{ | ||
title: "Course Content", | ||
info: "Describe the quality and relevance of the course materials." | ||
}, | ||
{ | ||
title: "Teaching Quality", | ||
info: "Comment on the instructor's teaching style and effectiveness without mentioning their name." | ||
}, | ||
{ | ||
title: "Workload", | ||
info: "Mention the amount of work required, including assignments, projects, and exams." | ||
}, | ||
{ | ||
title: "Practical Application", | ||
info: "Discuss how the course content applies to real-world scenarios or your field of study." | ||
}, | ||
{ | ||
title: "Resources and Support", | ||
info: "Note the availability and usefulness of resources such as textbooks, online materials, and support from teaching assistants." | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
"use client"; | ||
import React, { useState } from "react"; | ||
import { guideline, aspects } from "./data"; | ||
import { Container, Text, Title, Button, Group, Collapse, Box, List, Flex } from "@mantine/core"; | ||
import { IconBook, IconKey, IconCirclePlus, IconOctagonMinus, IconChecklist } from "@tabler/icons-react"; | ||
|
||
export default function Guideline(): JSX.Element { | ||
const [openedIndex, setOpenedIndex] = useState<number | null>(null); | ||
|
||
const toggleCollapse = (index: number) => { | ||
setOpenedIndex(openedIndex === index ? null : index); | ||
}; | ||
|
||
return ( | ||
<Container> | ||
<Box mx="auto"> | ||
<Flex gap="md" wrap="wrap" direction="column" mb="xl"> | ||
<Group wrap="nowrap" justify="center" align="center"> | ||
<IconBook size={26} className="flex flex-shrink-0" /> | ||
<Title fw={700} className="text-center text-2xl"> | ||
Guidelines for Writing Course Reviews | ||
</Title> | ||
<IconBook size={26} className="flex flex-shrink-0" /> | ||
</Group> | ||
<Text c="dimmed"> | ||
While reviews are helpful, always consult with your academic advisors when selecting courses. | ||
This platform is intended to supplement their guidance with student experiences. Remember that | ||
reading reviews is useful, but you must study according to your curriculum and requirements. | ||
</Text> | ||
</Flex> | ||
<Flex gap="md" direction="column" wrap="wrap" mb="xl"> | ||
<Group wrap="nowrap" justify="center" align="center"> | ||
<IconKey size={26} className=" flex flex-shrink-0" /> | ||
<Title fw={700} className="text-center text-2xl"> | ||
Consider Key Aspect of the Course | ||
</Title> | ||
<IconKey size={26} className=" flex flex-shrink-0" /> | ||
</Group> | ||
|
||
{aspects?.map((info, index) => ( | ||
<Box key={index}> | ||
<Title order={4} fw={700} mb="md" className="flex items-center"> | ||
<IconChecklist className="mr-2" color="lightblue" size={24} /> | ||
{info.title} | ||
</Title> | ||
<Text c="dimmed">{info.info}</Text> | ||
</Box> | ||
))} | ||
</Flex> | ||
{guideline?.map((list, index: number) => ( | ||
<Box maw={960} key={index}> | ||
<Group mb={5}> | ||
<Button | ||
justify="space-between" | ||
onClick={() => toggleCollapse(index)} | ||
color="gray" | ||
fullWidth | ||
mb={12} | ||
size="md" | ||
variant="light" | ||
rightSection={openedIndex == index ? <IconOctagonMinus /> : <IconCirclePlus />} | ||
> | ||
{list.title} | ||
</Button> | ||
</Group> | ||
<Collapse in={openedIndex === index} transitionDuration={300} transitionTimingFunction="linear"> | ||
<List pb="md" c="dimmed"> | ||
{<List.Item>{list.rules}</List.Item>} | ||
</List> | ||
</Collapse> | ||
</Box> | ||
))} | ||
</Box> | ||
</Container> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
}, | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} | ||
} |