diff --git a/components/Images.module.css b/components/Images.module.css new file mode 100644 index 0000000..36db484 --- /dev/null +++ b/components/Images.module.css @@ -0,0 +1,9 @@ +.themeSwitcher:hover { + fill: var(--shiki-color-text); + transform: scale(1.07); +} + +.themeSwitcher { + fill: var(--shiki-color-text); + transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); +} \ No newline at end of file diff --git a/components/images.tsx b/components/images.tsx new file mode 100644 index 0000000..ea90715 --- /dev/null +++ b/components/images.tsx @@ -0,0 +1,103 @@ +import { useTheme } from "nextra-theme-docs"; +import styles from './Images.module.css'; + +export default function Logo() { + const { theme, setTheme } = useTheme(); + return setTheme(theme === 'light'? 'dark' : 'light')} version="1.0" xmlns="http://www.w3.org/2000/svg" + width="50px" height="50px" viewBox="0 0 1280.000000 1280.000000" + preserveAspectRatio="xMidYMid meet"> + + + + + ; +} \ No newline at end of file diff --git a/next.config.js b/next.config.js index 116d40d..ef28363 100644 --- a/next.config.js +++ b/next.config.js @@ -1,7 +1,6 @@ const withNextra = require('nextra')({ theme: 'nextra-theme-docs', themeConfig: './theme.config.tsx', - basePath: "/index" }) module.exports = withNextra() diff --git a/pages/components/Home.module.css b/pages/components/Home.module.css new file mode 100644 index 0000000..e69de29 diff --git a/pages/components/Packages.module.css b/pages/components/Packages.module.css new file mode 100644 index 0000000..cbf79f9 --- /dev/null +++ b/pages/components/Packages.module.css @@ -0,0 +1,55 @@ +.grid { + display: grid; + gap: 10px; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; + margin-top: 20px; +} + +.gridItem { + color: var(--text-color-light); + border: 1px solid var(--shiki-color-ansi-black-dim); + padding: 20px; + text-align: center; +} + +.gridItem:hover { + color: #0366d6; + background-color: #1976d21c; + cursor: pointer; +} + +.pkgTitle { + font-weight: bold; +} + +.pkgVersion { + font-size: 12px; + font-weight:700; +} + +.searchBox { + padding: 8px; + font-size: 16px; + outline: none; + transition: border-color 0.3s ease; + height: 40px; + border-radius: 10px; + border: 1px solid #005cc523; +} + +.pageBtn { + background-color: var(--background-color-light); + color: var(--text-color-light); + width: 30px; + height: 30px; +} + +.pageBtn:hover { + background-color: #1976d234; +} \ No newline at end of file diff --git a/pages/components/home.tsx b/pages/components/home.tsx new file mode 100644 index 0000000..850fa7c --- /dev/null +++ b/pages/components/home.tsx @@ -0,0 +1,5 @@ +import styles from './Home.module.css'; + +export default function Home() { + return
+} \ No newline at end of file