mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
added red theme
This commit is contained in:
1 parent
41b40653c7
commit
c1e64eabbd
11 files changed
+979
-355
No files matched your search
+13
@@ -5,6 +5,19 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>portfolio</title>
|
||||
<script>
|
||||
(function () {
|
||||
try {
|
||||
var stored = localStorage.getItem('portfolio-theme')
|
||||
var theme = stored === 'dark' || stored === 'light'
|
||||
? stored
|
||||
: (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark')
|
||||
document.documentElement.setAttribute('data-theme', theme)
|
||||
} catch (e) {
|
||||
document.documentElement.setAttribute('data-theme', 'dark')
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
Reference in new issue
Block a user