feat: Add Apple favicon and suppress Tailwind CDN warning
Includes an Apple-styled favicon for improved branding and suppresses the console warning related to using the Tailwind CSS CDN in production, offering a cleaner developer experience.
This commit is contained in:
13
index.html
13
index.html
@@ -5,6 +5,19 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<title>m5rcel - Developer</title>
|
||||
<meta name="description" content="Personal portfolio of m5rcel. Built for performance." />
|
||||
<!-- Apple Favicon -->
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22></text></svg>">
|
||||
|
||||
<script>
|
||||
// Suppress Tailwind CDN production warning for a cleaner console
|
||||
(function() {
|
||||
const originalWarn = console.warn;
|
||||
console.warn = function(...args) {
|
||||
if (args[0] && typeof args[0] === 'string' && args[0].includes('cdn.tailwindcss.com')) return;
|
||||
originalWarn.apply(console, args);
|
||||
};
|
||||
})();
|
||||
</script>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script>
|
||||
tailwind.config = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import App from './App';
|
||||
|
||||
const rootElement = document.getElementById('root');
|
||||
@@ -7,9 +7,9 @@ if (!rootElement) {
|
||||
throw new Error("Could not find root element to mount to");
|
||||
}
|
||||
|
||||
const root = ReactDOM.createRoot(rootElement);
|
||||
const root = createRoot(rootElement);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
);
|
||||
);
|
||||
Reference in New Issue
Block a user