Skip to content

Commit 2aa80a0

Browse files
authored
New honor code page and copy updates to privacy policy and terms. (#2336)
* ui fixes * more copy updates * adding honor code page * updating honor code link
1 parent a1b4010 commit 2aa80a0

File tree

6 files changed

+1024
-211
lines changed

6 files changed

+1024
-211
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from "react"
2+
import { screen, setMockResponse, renderWithProviders } from "@/test-utils"
3+
import { urls } from "api/test-utils"
4+
import { Permission } from "api/hooks/user"
5+
import HonorCodePage from "./HonorCodePage"
6+
7+
describe("HonorCodePage", () => {
8+
test("Renders title", async () => {
9+
setMockResponse.get(urls.userMe.get(), {
10+
[Permission.Authenticated]: true,
11+
})
12+
13+
renderWithProviders(<HonorCodePage />)
14+
15+
screen.getByRole("heading", {
16+
name: "Honor Code",
17+
})
18+
})
19+
})
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
"use client"
2+
3+
import {
4+
Breadcrumbs,
5+
Container,
6+
Typography,
7+
TypographyProps,
8+
styled,
9+
} from "ol-components"
10+
import * as urls from "@/common/urls"
11+
import React from "react"
12+
13+
const PageContainer = styled.div(({ theme }) => ({
14+
display: "flex",
15+
flexDirection: "column",
16+
alignItems: "flex-start",
17+
alignSelf: "stretch",
18+
padding: "40px 84px 80px 84px",
19+
[theme.breakpoints.down("md")]: {
20+
padding: "40px 24px 80px 24px",
21+
},
22+
}))
23+
24+
const BannerContainer = styled.div({
25+
display: "flex",
26+
flexDirection: "column",
27+
alignItems: "center",
28+
paddingBottom: "16px",
29+
})
30+
31+
const BannerContainerInner = styled.div({
32+
display: "flex",
33+
flexDirection: "column",
34+
alignItems: "flex-start",
35+
alignSelf: "stretch",
36+
justifyContent: "center",
37+
})
38+
39+
const Header = styled(Typography)<Pick<TypographyProps, "component">>(
40+
({ theme }) => ({
41+
alignSelf: "stretch",
42+
color: theme.custom.colors.black,
43+
}),
44+
)
45+
46+
const BodyContainer = styled.div({
47+
display: "flex",
48+
flexDirection: "column",
49+
alignItems: "center",
50+
alignSelf: "stretch",
51+
gap: "20px",
52+
})
53+
54+
const BodyText = styled(Typography)<Pick<TypographyProps, "component">>(
55+
({ theme }) => ({
56+
alignSelf: "stretch",
57+
color: theme.custom.colors.black,
58+
}),
59+
)
60+
61+
const UnorderedList = styled.ul(({ theme }) => ({
62+
alignSelf: "stretch",
63+
...theme.typography.body1,
64+
marginTop: "10px",
65+
}))
66+
67+
const SITE_NAME = process.env.NEXT_PUBLIC_SITE_NAME
68+
69+
const HonorCodePage: React.FC = () => {
70+
return (
71+
<Container>
72+
<PageContainer>
73+
<BannerContainer>
74+
<BannerContainerInner>
75+
<Breadcrumbs
76+
variant="light"
77+
ancestors={[{ href: urls.HOME, label: "Home" }]}
78+
current="Honor Code"
79+
/>
80+
<Header component="h1" variant="h2">
81+
Honor Code
82+
</Header>
83+
</BannerContainerInner>
84+
</BannerContainer>
85+
<BodyContainer>
86+
<BodyText component="h2" variant="h4">
87+
COLLABORATION POLICY
88+
</BodyText>
89+
<BodyText variant="body1">
90+
In order to participate in {SITE_NAME} offering, including accessing
91+
any course material or other electronic services, you must agree to
92+
the Honor Code below and any additional terms specific to the
93+
offering you have selected. This Honor Code, and any additional
94+
terms, will be posted on each module/ course website.
95+
</BodyText>
96+
<BodyText component="h2" variant="h4">
97+
HONOR CODE PLEDGE
98+
</BodyText>
99+
<BodyText variant="body1">
100+
By enrolling in a {SITE_NAME} course or program, I agree that I
101+
will:
102+
</BodyText>
103+
<UnorderedList>
104+
<li>
105+
Complete all tests and assignments on my own, unless collaboration
106+
on an assignment is explicitly permitted.
107+
</li>
108+
<li>
109+
Maintain only one user account and not let anyone else use my
110+
username and/or password.
111+
</li>
112+
<li>
113+
Not engage in any activity that would dishonestly improve my
114+
results, or improve or hurt the results of others.
115+
</li>
116+
<li>
117+
Not post online or share answers to problems that are being used
118+
to assess learner performance.
119+
</li>
120+
</UnorderedList>
121+
<BodyText component="h2" variant="h4">
122+
VIOLATIONS
123+
</BodyText>
124+
<BodyText variant="body1">
125+
If you are found in violation of the Terms of Service or Honor Code,
126+
you may be subject to one or more of the following actions:
127+
</BodyText>
128+
<UnorderedList>
129+
<li>Receiving a zero or no credit for an assignment;</li>
130+
<li>
131+
Having any certificate earned in the course or program withheld or
132+
revoked;
133+
</li>
134+
<li>Being unenrolled from an offering; or</li>
135+
<li>Termination of your use of the {SITE_NAME} Site.</li>
136+
<li>
137+
Additional actions may be taken at the sole discretion of MIT.
138+
</li>
139+
<li>
140+
No refunds will be issued in the case of any corrective action for
141+
such violations.
142+
</li>
143+
</UnorderedList>
144+
145+
<BodyText variant="body1">
146+
Honor Code violations will be determined at the sole discretion of
147+
MIT. You will be notified if a determination has been made that you
148+
have violated this Honor Code and you will be informed of the
149+
corresponding action to be taken as a result of the violation.
150+
</BodyText>
151+
<BodyText component="h2" variant="h4">
152+
CHANGING THE HONOR CODE
153+
</BodyText>
154+
<BodyText variant="body1">
155+
Please note that we review and may make changes to this Honor Code
156+
from time to time. Any changes to this Honor Code will be effective
157+
immediately upon posting on this page, with an updated effective
158+
date. By accessing the {SITE_NAME} Site after any changes have been
159+
made, you signify your agreement on a prospective basis to the
160+
modified Honor Code and any changes contained therein. Be sure to
161+
return to this page periodically to ensure familiarity with the most
162+
current version of this Honor Code.
163+
</BodyText>
164+
<BodyText variant="body1">
165+
This Honor Code was last updated on June 9, 2025.
166+
</BodyText>
167+
</BodyContainer>
168+
</PageContainer>
169+
</Container>
170+
)
171+
}
172+
173+
export default HonorCodePage

0 commit comments

Comments
 (0)