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

Delete intro page #82

Merged
merged 1 commit into from
Aug 26, 2024
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
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";
Expand All @@ -12,7 +11,7 @@ function App() {
<SnackbarProvider>
<BrowserRouter>
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/" element={<EditorComponent />} />
<Route path="/editor" element={<EditorComponent />} />
</Routes>
</BrowserRouter>
Expand Down
9 changes: 5 additions & 4 deletions src/pages/EditorComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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">
Expand Down Expand Up @@ -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",
Expand Down
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.