From 9ee0db60353be02b529b768b09066eb018b1350c Mon Sep 17 00:00:00 2001
From: Magnus Madsen
Date: Fri, 22 Dec 2023 23:40:09 +0100
Subject: [PATCH] feat: update `Home` page
---
src/App.js | 6 ------
src/page/Home.js | 28 ++--------------------------
src/util/Codebox.js | 12 ++++++------
3 files changed, 8 insertions(+), 38 deletions(-)
diff --git a/src/App.js b/src/App.js
index 410d8c3..4e34f13 100644
--- a/src/App.js
+++ b/src/App.js
@@ -84,12 +84,6 @@ class App extends Component {
Home
- {/*
-
- About
-
- */}
-
Get Started
diff --git a/src/page/Home.js b/src/page/Home.js
index 5946abb..043421a 100644
--- a/src/page/Home.js
+++ b/src/page/Home.js
@@ -1,6 +1,5 @@
import React, {Component} from 'react';
import {
- Button,
Card,
CardBody,
CardImg,
@@ -11,7 +10,6 @@ import {
Row,
UncontrolledCarousel
} from 'reactstrap';
-import {Link} from "react-router-dom";
import Codebox from "../util/Codebox";
import InlineEditor from "../util/InlineEditor";
@@ -73,28 +71,6 @@ class Home extends Component {
elimination. A VSCode plugin for Flix is available.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -868,12 +844,12 @@ let r = query p select (c, d) from ReadyDate(c; d)
-
+
-
+
diff --git a/src/util/Codebox.js b/src/util/Codebox.js
index af3e2dc..90899a5 100644
--- a/src/util/Codebox.js
+++ b/src/util/Codebox.js
@@ -47,10 +47,10 @@ class Codebox extends Component {
};
getRunButton() {
- let enabled = this.props.flix.connected;
- return ;
+ return
+ ;
}
getDropDown() {
@@ -58,7 +58,7 @@ class Codebox extends Component {
value={this.state.choice}
onChange={this.onDropdownChoice.bind(this)}
style={{"textOverflow": "ellipsis"}}
- className="ml-2 w-75">
+ className="mr-2 w-75">
{this.state.samples.map((sample, index) =>
)
}
@@ -111,8 +111,8 @@ class Codebox extends Component {
return (
- {this.getRunButton()}
{this.getDropDown()}
+ {this.getRunButton()}
{this.getEditor()}
{this.getOutput()}