Skip to content

Commit

Permalink
main page partially done
Browse files Browse the repository at this point in the history
  • Loading branch information
ruizdiasmatt committed Oct 21, 2023
1 parent 42fcfbf commit ad30915
Show file tree
Hide file tree
Showing 199 changed files with 330,320 additions and 41 deletions.
Binary file added .DS_Store
Binary file not shown.
39 changes: 39 additions & 0 deletions Frontend/algoverse/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Frontend/algoverse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@testing-library/user-event": "^13.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.17.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frontend/algoverse/public/images/Sorting-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 3 additions & 36 deletions Frontend/algoverse/src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,5 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
background-color: #496a8e;
height: 100vh;
width: 100vw;
}
19 changes: 14 additions & 5 deletions Frontend/algoverse/src/App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
import logo from './logo.svg';
import './App.css';
import "./App.css";
import SideBar from "./components/SideBar";
import SearchBar from "./components/SearchBar";
import Home from "./components/pages/Home";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";

function App() {
return (
<div className="App">

</div>
<>
<Router>
<SearchBar />
<Routes>
<Route path="/home" exact Component={Home} />
</Routes>
<SideBar />
</Router>
</>
);
}

Expand Down
36 changes: 36 additions & 0 deletions Frontend/algoverse/src/components/Home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.home {
display: flex;
flex-direction: row;
height: 100vh;
background-color: #496a8e;
}

header {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 10%;
}

input[type="text"] {
width: 50%;
height: 50%;
border-radius: 5px;
}

.container {
display: flex;
flex-direction: column;
width: 100%;
}

.grid {
flex-direction: column;
justify-content: center;
align-items: center;
width: 70%;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 3px;
}
36 changes: 36 additions & 0 deletions Frontend/algoverse/src/components/SearchBar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.container {
background-color: #334a64;
padding-top: 3vh;
padding-bottom: 3vh;
width: 40%;
min-width: 200px;
display: flex;
justify-content: center;
align-items: center;
margin-top: auto;
margin-bottom: auto;
}

.search-bar {
background-color: white;
width: 40%;
border-radius: 0px;
height: 2.5rem;
padding: 0 15px;
box-shadow: 0px 0px 2px #ddd;
display: flex;
align-items: center;
}

input[type="text"] {
background-color: transparent;
border: none;
height: 100%;
font-size: 1.1rem;
width: 100%;
margin-left: 5px;
}

input:focus {
outline: none;
}
15 changes: 15 additions & 0 deletions Frontend/algoverse/src/components/SearchBar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import "./SearchBar.css";
import { FaSearch } from "react-icons/fa";

function SearchBar() {
return (
<div className="container">
<div className="search-bar">
<FaSearch id="search-icon" />
<input type="text" placeholder="Search" />
</div>
</div>
);
}

export default SearchBar;
27 changes: 27 additions & 0 deletions Frontend/algoverse/src/components/SideBar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.container {
display: flex;
}

.side-bar {
height: 100%;
width: 200px;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #334a64;
overflow-x: hidden;
padding-top: 50px;
}

.side-bar a {
padding: 6px 8px 6px 16px;
text-decoration: none;
font-size: 20px;
color: #818181;
display: block;
}

.side-bar a:hover {
color: #f1f1f1;
}
15 changes: 15 additions & 0 deletions Frontend/algoverse/src/components/SideBar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import "./SideBar.css";

function SideBar() {
return (
<div className="container">
<div className="side-bar">
<a>Sorting</a>
<a>Tree Search</a>
<a>Path Finding</a>
</div>
</div>
);
}

export default SideBar;
39 changes: 39 additions & 0 deletions Frontend/algoverse/src/components/pages/Home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* eslint-disable jsx-a11y/img-redundant-alt */
import "../../App.css";
import "../Home.css";
import React from "react";

function Home() {
return (
<div className="home">
<div className="grid">
<div className="sorting">
<img
src="images/Sorting-img.png"
alt="description of image"
width="200"
height="200"
/>
</div>
<div className="treeSearch">
<img
src="images/TreeSearch-img.png"
alt="description of image"
width="200"
height="200"
/>
</div>
<div className="pathFinding">
<img
src="images/PathFinding-img.png"
alt="description of image"
width="200"
height="200"
/>
</div>
</div>
</div>
);
}

export default Home;
Binary file added api/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions node_modules/.bin/loose-envify

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad30915

Please sign in to comment.