saahildcom/src/index.tsx

39 lines
1.2 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-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-25 04:41:48 +00:00
import Ackee from './Ackee';
const analytics = new Ackee({
server_url: process.env.REACT_APP_SERVER_URL || "https://ackee.saahild.com",
id: `c082bd15-f9d8-414f-aa10-926e1d66a5d6`
})
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-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-25 04:41:48 +00:00
<App analytics={analytics} />
2024-06-22 21:44:06 +00:00
<Footer />
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-25 04:41:48 +00:00
reportWebVitals(analytics.handleWebVitals());