Skip to content

Commit

Permalink
Merge pull request #82 from rivercory/main
Browse files Browse the repository at this point in the history
Delete intro page
  • Loading branch information
DhanushNehru authored Aug 26, 2024
2 parents d5568b7 + 6c95437 commit c629b87
Showing 4 changed files with 6 additions and 70 deletions.
3 changes: 1 addition & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { BrowserRouter, Routes, Route } from "react-router-dom";
import { ThemeProvider } from "@mui/material";
import LandingPage from "./pages/LandingPage";
import EditorComponent from "./pages/EditorComponent";
import "./components/css/App.css"
import theme from "./theme";
@@ -12,7 +11,7 @@ function App() {
<SnackbarProvider>
<BrowserRouter>
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/" element={<EditorComponent />} />
<Route path="/editor" element={<EditorComponent />} />
</Routes>
</BrowserRouter>
9 changes: 5 additions & 4 deletions src/pages/EditorComponent.js
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ import "../components/css/EditorComponent.css";
import "@fortawesome/fontawesome-free/css/all.css";
import { useSnackbar } from "notistack";
import { Button, CircularProgress, styled } from "@mui/material";
import Stars from "../components/js/Stars";
import {
LANGUAGES,
judge0SubmitUrl,
@@ -130,11 +131,12 @@ function EditorComponent() {
return (
<div className="editor-container">
<div style={{ height: "auto", margin: "0.5rem", padding: "0.5rem", border: "3px solid rgba(0, 0, 0, 0.096)", borderRadius: "1rem" }}>
<div style={styles.flexStart}>
<div style={styles.flex}>
{getLanguageLogoById(languageDetails.LANGUAGE_ID)}
<div style={{ fontWeight: "bold" }}>
{languageDetails.LANGUAGE_NAME}
</div>
<Stars />
</div>
</div>
<div className="layout">
@@ -173,12 +175,11 @@ function EditorComponent() {
}

const styles = {
flexStart: {
flex: {
display: "flex",
justifyContent: "flex-start",
justifyContent: "space-between",
alignItems: "center",
gap: "0.6em",
paddingTop: "0.5rem",
},
button: {
marginLeft: "5px",
46 changes: 0 additions & 46 deletions src/pages/LandingPage.css

This file was deleted.

18 changes: 0 additions & 18 deletions src/pages/LandingPage.js

This file was deleted.

0 comments on commit c629b87

Please sign in to comment.