Skip to content

Commit

Permalink
tweak to make it easier for students to find the "pay for course" dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
williamstein committed Oct 11, 2024
1 parent 0e3cc41 commit 5c7904d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/packages/frontend/project/explorer/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ const Explorer0 = rclass(
flex: "0 0 auto",
display: "flex",
flexDirection: "column",
padding: "5px 5px 0 5px",
padding: "2px 2px 0 2px",
}}
>
{this.render_error()}
Expand Down
7 changes: 2 additions & 5 deletions src/packages/frontend/project/page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export const ProjectPage: React.FC<Props> = (props: Props) => {
// CSS note: the paddingTop is here to not make the tabs touch the top row (looks funny)
// this was part of the container-content div, which makes little sense for e.g. the banner bars
return (
<div style={{ display: "flex", margin: "0", paddingTop: "3px" }}>
<div style={{ display: "flex", height: "36px" }}>
<HomePageButton
project_id={project_id}
active={active_project_tab == "home"}
Expand Down Expand Up @@ -381,10 +381,7 @@ export const ProjectPage: React.FC<Props> = (props: Props) => {
return (
<ProjectContext.Provider value={projectCtx}>
<div className="container-content" style={PAGE_STYLE}>
<StudentPayUpgrade
project_id={project_id}
style={{ marginTop: "5px" }}
/>
<StudentPayUpgrade project_id={project_id} />
<AnonymousName project_id={project_id} />
<DiskSpaceWarning project_id={project_id} />
<RamWarning project_id={project_id} />
Expand Down
3 changes: 0 additions & 3 deletions src/packages/frontend/project/trial-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ export const ALERT_STYLE: CSS = {
paddingRight: "5px",
paddingBottom: "5px",
marginBottom: 0,
// this is to cancel out the margin between file tabs and project tabs, which
// isn't right for a banner.
marginTop: "-5px",
fontSize: "9pt",
borderRadius: 0,
} as const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function PaySoon({ when, purchaseInfo, paid, course }: Props) {
);

return (
<div style={{ margin: "0 2.5px" }}>
<div>
<Collapse>
<Collapse.Panel
key="it"
Expand Down
13 changes: 11 additions & 2 deletions src/packages/frontend/purchases/student-pay/pay-soon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,21 @@ export default function PaySoon({
return null;
}
return (
<div style={{ margin: "0 2.5px" }}>
<div>
<Collapse>
<Collapse.Panel
key="it"
header=<>
Course Fee: Please pay the course fee{" "}
Course Fee:{" "}
<b>
<a
onClick={() => {
setOpen(true);
}}
>
Please pay the course fee
</a>
</b>{" "}
<Cost purchaseInfo={purchaseInfo} /> to upgrade this project.{" "}
<b>
Due: <TimeAgo date={when} />.
Expand Down

0 comments on commit 5c7904d

Please sign in to comment.