-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
463743d
commit 2d4e38e
Showing
7 changed files
with
3,108 additions
and
4,760 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,41 @@ | ||
import React, { useState } from 'react'; | ||
import Header from './pages/header'; | ||
import Footer from './pages/footer'; | ||
import Home from './components/page1/Home'; | ||
import Notice from './components/page2/notice'; | ||
import MyChatbot from './components/ChatBot/chatbot'; | ||
import { ThemeProvider } from './Content/context'; | ||
import React from 'react' | ||
import {createContext, useState} from 'react'; | ||
import Header from "./pages/header"; | ||
import Timetable from './components/page4/timetable'; | ||
import Footer from "./pages/footer"; | ||
import Home from "./components/page1/Home"; | ||
import Notice from "./components/page2/notice"; | ||
import LoginSignup from './components/login/LoginSignup'; | ||
|
||
// import { ThemeProvider } from './components/ThemeContext'; | ||
// const ThemeContext = createContext(); | ||
|
||
|
||
function App() { | ||
const [theme, setTheme] = useState('dark'); | ||
|
||
const toggleTheme = () => { | ||
setTheme((currentTheme) => (currentTheme === 'light' ? 'dark' : 'light')); | ||
}; | ||
// const [theme, setTheme] = useState("dark"); | ||
// const toggleTheme = () => { | ||
// setTheme((curr) => (curr === "light" ? "light ": "dark")); | ||
// } | ||
|
||
|
||
return ( | ||
<div className="maintain"> | ||
<ThemeProvider> | ||
<div className={`app ${theme}`}> | ||
<Header /> | ||
<Notice /> | ||
<Home /> | ||
<MyChatbot /> | ||
<Footer /> | ||
</div> | ||
</ThemeProvider> | ||
<div className="maintain"> | ||
|
||
{/* <ThemeContext.Provider value={{theme, toggleTheme}}> */} | ||
{/* <div className='app' id={theme}> */} | ||
<Header/> | ||
<Notice/> | ||
|
||
{/* <Timetable /> */} | ||
<Home /> | ||
<Footer/> | ||
|
||
{/* </div> */} | ||
{/* </ThemeContext.Provider> */} | ||
|
||
</div> | ||
); | ||
) | ||
} | ||
|
||
export default App; | ||
export default App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import React from 'react' | ||
import '../page2/notice.css'; | ||
|
||
function notice() { | ||
return ( | ||
<div className='notices'> | ||
|