-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
393 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import reactHooks from 'eslint-plugin-react-hooks' | ||
import reactRefresh from 'eslint-plugin-react-refresh' | ||
import tseslint from 'typescript-eslint' | ||
import js from "@eslint/js"; | ||
import globals from "globals"; | ||
import reactHooks from "eslint-plugin-react-hooks"; | ||
import reactRefresh from "eslint-plugin-react-refresh"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
export default tseslint.config( | ||
{ ignores: ['dist'] }, | ||
{ ignores: ["dist"] }, | ||
{ | ||
extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
files: ['**/*.{ts,tsx}'], | ||
files: ["**/*.{ts,tsx}"], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: globals.browser, | ||
}, | ||
plugins: { | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh, | ||
"react-hooks": reactHooks, | ||
"react-refresh": reactRefresh, | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
"react-refresh/only-export-components": [ | ||
"warn", | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
}, | ||
) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,88 @@ | ||
.header { | ||
background: rgb(250, 250, 250, 80%); | ||
border-bottom: 1px solid var(--ant-color-bg-container); | ||
display: flex; | ||
justify-content: center; | ||
height: 66px; | ||
background: rgba(250, 250, 250, 80%); | ||
border-bottom: 1px solid var(--ant-color-bg-container); | ||
display: flex; | ||
justify-content: center; | ||
height: 66px; | ||
} | ||
|
||
.container { | ||
max-width: 1400px; | ||
display: flex; | ||
align-items: center; | ||
flex: 1; | ||
padding: 0 35px 0 35px; | ||
|
||
font-family: 'Onest-Regular', sans-serif; | ||
font-size: 15px; | ||
max-width: 1330px; | ||
display: flex; | ||
align-items: center; | ||
flex: 1; | ||
padding: 0 35px 0; | ||
|
||
font-family: "Onest-Regular", sans-serif; | ||
font-size: 15px; | ||
} | ||
|
||
.logo { | ||
margin-bottom: 2px; | ||
line-height: 0; | ||
margin-bottom: 2px; | ||
line-height: 0; | ||
} | ||
|
||
.navBar { | ||
display: flex; | ||
justify-content: center; | ||
list-style: none; | ||
margin: 0; | ||
|
||
padding: 0 40px 0; | ||
gap: 30px; | ||
|
||
.menuItem { | ||
cursor: pointer; | ||
color: var(--ant-color-text-placeholder); | ||
|
||
&:hover { | ||
color: var(--ant-color-text-base); | ||
} | ||
} | ||
|
||
.activeMenuItem { | ||
font-family: 'Onest-Medium', sans-serif; | ||
color: var(--ant-color-text-base); | ||
} | ||
display: flex; | ||
justify-content: center; | ||
list-style: none; | ||
margin: 0; | ||
|
||
padding: 0 40px 0; | ||
gap: 30px; | ||
|
||
.menuItem { | ||
cursor: pointer; | ||
color: var(--ant-color-text-placeholder); | ||
|
||
&:hover { | ||
color: var(--ant-color-text-base); | ||
} | ||
} | ||
|
||
.activeMenuItem { | ||
font-family: "Onest-Medium", sans-serif; | ||
color: var(--ant-color-text-base); | ||
} | ||
} | ||
|
||
.blank { | ||
flex: 1; | ||
flex: 1; | ||
} | ||
|
||
.containerSearch { | ||
width: 403px | ||
width: 403px; | ||
} | ||
|
||
.miniContainerSearch { | ||
width: 395px; | ||
display: flex; | ||
align-items: center; | ||
|
||
svg { | ||
position: relative; | ||
left: -30px; | ||
pointer-events: none; | ||
} | ||
width: 395px; | ||
display: flex; | ||
align-items: center; | ||
|
||
svg { | ||
position: relative; | ||
left: -30px; | ||
pointer-events: none; | ||
} | ||
} | ||
|
||
.search { | ||
width: 378px; | ||
height: 36px; | ||
padding-left: 15px; | ||
border-radius: 38px; | ||
|
||
background: #F1F4F6; | ||
outline: none; | ||
border: none; | ||
|
||
&::placeholder { | ||
color: var(--ant-color-text-placeholder); | ||
} | ||
width: 378px; | ||
height: 36px; | ||
padding-left: 15px; | ||
border-radius: 38px; | ||
|
||
background: #f1f4f6; | ||
outline: none; | ||
border: none; | ||
|
||
&::placeholder { | ||
color: var(--ant-color-text-placeholder); | ||
} | ||
} | ||
|
||
.avatar { | ||
max-width: 36px; | ||
min-width: 36px !important; | ||
height: 36px; | ||
max-width: 36px; | ||
min-width: 36px !important; | ||
height: 36px; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import {hydrateRoot} from "react-dom/client"; | ||
import {App} from "./App.tsx"; | ||
import { hydrateRoot } from "react-dom/client"; | ||
import { App } from "./App.tsx"; | ||
|
||
hydrateRoot( | ||
document.getElementById("sharebook") as HTMLElement, | ||
<App location={location.href}/>, | ||
) | ||
<App location={location.href} />, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import {renderToString} from "react-dom/server"; | ||
import {App} from "./App"; | ||
import {createCache, extractStyle} from "@ant-design/cssinjs"; | ||
import { renderToString } from "react-dom/server"; | ||
import { App } from "./App"; | ||
import { createCache, extractStyle } from "@ant-design/cssinjs"; | ||
import type Entity from "@ant-design/cssinjs/es/Cache"; | ||
|
||
export function render(location: string) { | ||
const cache: Entity = createCache(); | ||
|
||
const body = renderToString(<App cache={cache} location={location}/>); | ||
const body = renderToString(<App cache={cache} location={location} />); | ||
|
||
const head = extractStyle(cache); | ||
|
||
return {body, head}; | ||
return { body, head }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
@font-face { | ||
font-family: 'Literata-Medium'; | ||
src: url('./fonts/Literata-Medium.woff') format('woff'); | ||
font-family: "Literata-Medium"; | ||
src: url("./fonts/Literata-Medium.woff") format("woff"); | ||
} | ||
|
||
@font-face { | ||
font-family: 'Onest-Medium'; | ||
src: url('./fonts/Onest-Medium.woff') format('woff'); | ||
font-family: "Onest-Medium"; | ||
src: url("./fonts/Onest-Medium.woff") format("woff"); | ||
} | ||
|
||
@font-face { | ||
font-family: 'Onest-Regular'; | ||
src: url('./fonts/Onest-Regular.woff') format('woff'); | ||
} | ||
font-family: "Onest-Regular"; | ||
src: url("./fonts/Onest-Regular.woff") format("woff"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
} |
Oops, something went wrong.