Skip to content

Commit

Permalink
Delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
msosav committed Sep 11, 2024
1 parent 154c4c8 commit e59e6c0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 100 deletions.
8 changes: 7 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
:root {
font-size: 1.3em;
--loading-screen-background: #6460ff;
}

.bg-chatbot {
background-image: var(--background-url);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100dvh;
}
16 changes: 0 additions & 16 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
import { Route, BrowserRouter as Router, Routes } from "react-router-dom";
import Nova from "./views/Nova";
import Next from "./views/Next";
import Omegahack from "./views/Omegahack";
import { useViewportHeight } from "./utils/useViewportHeight";
import "./App.css";

export default function App() {
const height = useViewportHeight();

return (
<div className="font-inter supports-[height:100cqh]:h-[100cqh] supports-[height:100svh]:h-[100svh]">
<Next />
</div>
);
}

function AppContent() {
return (
<Routes>
<Route path="/" exact element={<Nova />} />
<Route path="/next" element={<Next />} />
<Route path="/omegahack" element={<Omegahack />} />
</Routes>
);
}
45 changes: 0 additions & 45 deletions src/css/Chat.css
Original file line number Diff line number Diff line change
@@ -1,48 +1,3 @@
:root {
--chat-container-bot-background: #ffffff;
--chat-container-user-background: #562eaf;
--icon-bot-background: #562eaf;
--send-btn-color: #562eaf;
}


#chat-container {
height: 80vh;
overflow-y: scroll;
display: flex;
flex-direction: column;
}

#chat {
display: flex;
flex-direction: column;
width: 50%;
}

#chat-input {
width: 50%;
}

@media (max-width: 768px) {
#chat {
width: 100%;
margin: 0.5rem;
font-size: 0.8rem;
flex-direction: column;
display: flex;
}

#chat-input {
width: 100%;
margin: 0.5rem;
font-size: 0.8rem;
}

#header {
width: 100%;
}
}

.chat-container-bot {
box-shadow: 5px 8px 20px 0px rgba(0, 0, 0, 0.5);
background: var(--chat-container-bot-background);
Expand Down
23 changes: 0 additions & 23 deletions src/css/Header.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
:root {
--header-background: #f5f5f5;
}

.header-bg {
background: var(--header-background);
}
Expand All @@ -14,22 +10,3 @@
color: var(--online-color);
}

.header-container {
display: flex;
justify-content: flex-start;
width: 50%;
}

.bg-chatbot {
background-image: url("../assets/images/background_next.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100vh;
}

@media (max-width: 768px) {
.header-container {
width: 100%;
}
}
1 change: 1 addition & 0 deletions src/css/Next.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
--icon-bot-background: #6460ff;
--online-color: white;
--send-btn-color: #6460FF;
--background-url: url("../assets/images/background_next.png");
}

.loading-screen-next {
Expand Down
15 changes: 0 additions & 15 deletions src/utils/useViewportHeight.jsx

This file was deleted.

0 comments on commit e59e6c0

Please sign in to comment.