saahildcom/src/index.tsx

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-06-11 03:46:47 +00:00
import React from 'react';
import './index.css';
2024-06-12 02:37:31 +00:00
import "animate.css/animate.compat.css";
import ReactDOM from 'react-dom/client';
2024-06-11 03:46:47 +00:00
import App from './App';
import reportWebVitals from './reportWebVitals';
2024-06-12 02:37:31 +00:00
import Background from './bg/main';
import { injectOneko } from './scripts/oneko';
2024-06-16 04:57:13 +00:00
import Navbar from './components/navbar';
import { runTitle } from './scripts/title';
2024-06-18 00:48:52 +00:00
import { startEvent } from './scripts/hashevent';
2024-06-20 04:08:44 +00:00
import { listenForEasterEgg } from './scripts/oneko_easteregg';
2024-06-22 21:44:06 +00:00
import Footer from './components/footer';
2024-06-11 03:46:47 +00:00
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
2024-06-16 04:57:13 +00:00
document.title = "Saahild.com"
2024-06-12 02:37:31 +00:00
injectOneko();
2024-06-16 04:57:13 +00:00
runTitle()
2024-06-18 00:48:52 +00:00
startEvent()
2024-06-20 04:08:44 +00:00
listenForEasterEgg()
2024-06-12 02:37:31 +00:00
document.title = 'React App';
2024-06-11 03:46:47 +00:00
root.render(
<React.StrictMode>
2024-06-12 02:37:31 +00:00
<Background />
2024-06-16 04:57:13 +00:00
<Navbar />
2024-06-11 03:46:47 +00:00
<App />
2024-06-22 21:44:06 +00:00
<Footer />
2024-06-16 04:57:13 +00:00
2024-06-11 03:46:47 +00:00
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
2024-06-12 02:37:31 +00:00
reportWebVitals(console.log);