Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change spacings on FAQ page #284

Merged
merged 1 commit into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions frontend/components/Guide/InstructorGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ export default function InstructorGuide() {

return (
<>
<Segment basic>
Hi there! 🎉
<br />
Welcome to OHQ, a centralized online office hours system that
helps instructors like you manage office hours easily and
intuitively, so you can focus on teaching and your students can
focus on learning in office hours. This guide will walk you
through using OHQ, so your experience holding office hours can
be as easy and straightforward as possible.
</Segment>

<Segment basic>
<b>Jump to:</b>
<List bulleted>
Expand Down
11 changes: 0 additions & 11 deletions frontend/components/Guide/StudentGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ export default function StudentGuide() {
const [SettingsHeader, SettingsBody] = useSection("Settings", Settings);
return (
<>
<Segment basic>
Hi there! 🎉
<br />
Welcome to OHQ, a centralized online office hours system that
helps instructors like you manage office hours easily and
intuitively, so you can focus on teaching and your students can
focus on learning in office hours. This guide will walk you
through using OHQ, so your experience holding office hours can
be as easy and straightforward as possible.
</Segment>

<Segment basic>
<b>Jump to:</b>
<List bulleted>
Expand Down
62 changes: 37 additions & 25 deletions frontend/components/Guide/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState } from "react";
import { Grid, Header, Menu } from "semantic-ui-react";
import { Segment, Header, Grid, Menu } from "semantic-ui-react";

import InstructorGuide from "./InstructorGuide";
import StudentGuide from "./StudentGuide";
Expand All @@ -15,31 +15,43 @@ export default function Guide() {
const handleClick = (e, { name }) => setTab(name);

return (
<Grid.Column width={13} style={{ padding: "2rem" }}>
<Grid.Column width={13}>
<Grid.Row>
<Header as="h2">
<Header.Content>Frequently Asked Questions</Header.Content>
</Header>
<Menu>
<Menu.Item
name={Page.Instructor}
active={tab === Page.Instructor}
onClick={handleClick}
>
For Instructors
</Menu.Item>
<Menu.Item
name={Page.Student}
active={tab === Page.Student}
onClick={handleClick}
>
For Students
</Menu.Item>
</Menu>
</Grid.Row>
<Grid.Row style={{ marginTop: "2rem" }}>
{tab === Page.Instructor && <InstructorGuide />}
{tab === Page.Student && <StudentGuide />}
<Segment basic>
<Header as="h2">Frequently Asked Questions</Header>
<p>
Hi there! 🎉
<br />
<br />
Welcome to OHQ, a centralized online office hours system
that helps instructors like you manage office hours
easily and intuitively, so you can focus on teaching and
your students can focus on learning in office hours.
This guide will walk you through using OHQ, so your
experience holding office hours can be as easy and
straightforward as possible.
</p>
<Menu attached="top" tabular>
<Menu.Item
name={Page.Instructor}
active={tab === Page.Instructor}
onClick={handleClick}
>
For Instructors
</Menu.Item>
<Menu.Item
name={Page.Student}
active={tab === Page.Student}
onClick={handleClick}
>
For Students
</Menu.Item>
</Menu>
<Segment attached="bottom" basic>
{tab === Page.Instructor && <InstructorGuide />}
{tab === Page.Student && <StudentGuide />}
</Segment>
</Segment>
</Grid.Row>
</Grid.Column>
);
Expand Down
Loading