Skip to content

Commit 80195eb

Browse files
committed
remove some nonsense from features/teaching page
1 parent 271967c commit 80195eb

File tree

2 files changed

+1
-132
lines changed

2 files changed

+1
-132
lines changed

src/packages/next/components/landing/banner-with-links.tsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/packages/next/pages/features/teaching.tsx

Lines changed: 1 addition & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
* License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
44
*/
55

6-
import { Col, Layout, Row } from "antd";
7-
import { ReactNode } from "react";
8-
6+
import { Layout } from "antd";
97
import { Icon } from "@cocalc/frontend/components/icon";
108
import { AvailableTools } from "components/landing/available-tools";
11-
import BannerWithLinks from "components/landing/banner-with-links";
129
import Contact from "components/landing/contact";
1310
import Content from "components/landing/content";
1411
import Footer from "components/landing/footer";
@@ -26,12 +23,8 @@ import assignments from "public/features/cocalc-course-assignments-2019.png";
2623
import nbgrader from "public/features/cocalc-jupyter-nbgrader-overview.png";
2724
import teaching from "public/features/cocalc-teaching.png";
2825
import logo from "public/features/fa-graduation-cap.svg";
29-
import kiran from "public/features/kiran.jpeg";
30-
import conley from "public/features/will_conley.jpg";
3126

3227
export default function Teaching({ customize }) {
33-
const { onCoCalcCom, shareServer } = customize;
34-
3528
const pitchPcLab = (
3629
<>
3730
<Title level={2}>
@@ -162,7 +155,6 @@ export default function Teaching({ customize }) {
162155
<Layout>
163156
<Header page="features" subPage="teaching" />
164157
<Layout.Content>
165-
{shareServer && onCoCalcCom && <BannerWithLinks />}
166158
<Content
167159
landing
168160
startup={"CoCalc"}
@@ -305,52 +297,6 @@ export default function Teaching({ customize }) {
305297

306298
<AvailableTools style={{}} />
307299

308-
<div style={{ padding: "30px 10%", backgroundColor: "#fff" }}>
309-
<Title
310-
level={1}
311-
style={{ textAlign: "center", color: "#333", fontSize: "32pt" }}
312-
>
313-
<Icon name="comment" style={{ marginRight: "10px" }} />{" "}
314-
Testimonials
315-
</Title>
316-
317-
<Row>
318-
<Col lg={12}>
319-
<Testimonial
320-
image={kiran}
321-
name="Kiran Kedlaya"
322-
coords="UC San Diego, March 2017"
323-
>
324-
I just found out that my CoCalc class got by far the best
325-
course evaluations for any course I've taught at UCSD to date
326-
(over 85% on the favorable/unfavorable scale), which makes it
327-
a sure thing that I'll be teaching this course again (in some
328-
form) next year! Many thanks for the backend work on CoCalc,
329-
for the course materials, for the guest lecture...
330-
</Testimonial>
331-
</Col>
332-
<Col lg={12}>
333-
<Testimonial
334-
image={conley}
335-
name="Will Conley"
336-
coords="University of California at Los Angeles, Fall 2016"
337-
>
338-
CoCalc provides a user-friendly interface. Students don't need
339-
to install any software at all. They just open up a web
340-
browser and go to{" "}
341-
<A href="https://cocalc.com">https://cocalc.com</A> and that's
342-
it. They just type code directly in, hit shift+enter and it
343-
runs, and they can see if it works. It provides immediate
344-
feedback. The{" "}
345-
<A href="https://doc.cocalc.com/teaching-instructors.html">
346-
course management features
347-
</A>{" "}
348-
work really well.
349-
</Testimonial>
350-
</Col>
351-
</Row>
352-
</div>
353-
354300
<SignIn />
355301
</Layout.Content>
356302
<Footer />
@@ -362,39 +308,3 @@ export default function Teaching({ customize }) {
362308
export async function getServerSideProps(context) {
363309
return await withCustomize({ context });
364310
}
365-
366-
interface TestimonialProps {
367-
image;
368-
name: string;
369-
coords: string;
370-
children: ReactNode;
371-
}
372-
373-
function Testimonial({ image, name, coords, children }: TestimonialProps) {
374-
return (
375-
<blockquote
376-
style={{
377-
padding: "10px 20px",
378-
margin: "0 0 20px",
379-
borderLeft: "5px solid #eee",
380-
}}
381-
>
382-
<Image
383-
src={image}
384-
alt={name}
385-
style={{
386-
width: "90px",
387-
borderRadius: "6px",
388-
float: "left",
389-
margin: "15px",
390-
}}
391-
/>
392-
<Paragraph>
393-
{children}
394-
<footer style={{ marginTop: "15px", color: "#666" }}>
395-
<strong>{name}</strong>{coords}
396-
</footer>
397-
</Paragraph>
398-
</blockquote>
399-
);
400-
}

0 commit comments

Comments
 (0)