更新banner图并增加链接跳转

This commit is contained in:
caishi 2023-02-21 16:14:00 +08:00
parent 72f591c5c0
commit 5a7f25417a
5 changed files with 10 additions and 20 deletions

11
package-lock.json generated
View File

@ -20399,7 +20399,6 @@
"version": "2.3.2",
"resolved": "https://registry.nlark.com/braces/download/braces-2.3.2.tgz",
"integrity": "sha1-WXn9PxTNUxVl5fot8av/8d+u5yk=",
"optional": true,
"requires": {
"arr-flatten": "^1.1.0",
"array-unique": "^0.3.2",
@ -20417,7 +20416,6 @@
"version": "2.0.1",
"resolved": "https://registry.nlark.com/extend-shallow/download/extend-shallow-2.0.1.tgz",
"integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
"optional": true,
"requires": {
"is-extendable": "^0.1.0"
}
@ -20448,7 +20446,6 @@
"version": "4.0.0",
"resolved": "https://registry.npm.taobao.org/fill-range/download/fill-range-4.0.0.tgz",
"integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=",
"optional": true,
"requires": {
"extend-shallow": "^2.0.1",
"is-number": "^3.0.0",
@ -20460,7 +20457,6 @@
"version": "2.0.1",
"resolved": "https://registry.nlark.com/extend-shallow/download/extend-shallow-2.0.1.tgz",
"integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
"optional": true,
"requires": {
"is-extendable": "^0.1.0"
}
@ -20511,7 +20507,6 @@
"version": "3.0.0",
"resolved": "https://registry.nlark.com/is-number/download/is-number-3.0.0.tgz",
"integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",
"optional": true,
"requires": {
"kind-of": "^3.0.2"
},
@ -20520,7 +20515,6 @@
"version": "3.2.2",
"resolved": "https://registry.npm.taobao.org/kind-of/download/kind-of-3.2.2.tgz",
"integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
"optional": true,
"requires": {
"is-buffer": "^1.1.5"
}
@ -20536,14 +20530,12 @@
"kind-of": {
"version": "6.0.3",
"resolved": "https://registry.npm.taobao.org/kind-of/download/kind-of-6.0.3.tgz",
"integrity": "sha1-B8BQNKbDSfoG4k+jWqdttFgM5N0=",
"optional": true
"integrity": "sha1-B8BQNKbDSfoG4k+jWqdttFgM5N0="
},
"micromatch": {
"version": "3.1.10",
"resolved": "https://registry.nlark.com/micromatch/download/micromatch-3.1.10.tgz",
"integrity": "sha1-cIWbyVyYQJUvNZoGij/En57PrCM=",
"optional": true,
"requires": {
"arr-diff": "^4.0.0",
"array-unique": "^0.3.2",
@ -20599,7 +20591,6 @@
"version": "2.1.1",
"resolved": "https://registry.nlark.com/to-regex-range/download/to-regex-range-2.1.1.tgz",
"integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=",
"optional": true,
"requires": {
"is-number": "^3.0.0",
"repeat-string": "^1.6.1"

View File

@ -17,9 +17,6 @@
"test": "umi-test",
"test:coverage": "umi-test --coverage"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
"prettier --write"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 520 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -177,13 +177,15 @@ const competitionsPage: FC<PageProps> = ({
return (
<section className={styles.bg}>
<aside className={styles.banner}>
<img
src={
globalSetting?.setting?.competition_banner_url ? `${ENV.IMG_SERVER}/` + globalSetting?.setting?.competition_banner_url :
require(`@/assets/images/competition_banner.jpg`)
}
alt=""
/>
<a href="https://forum.gitlink.org.cn/forums/8425/detail" target="_blank">
<img
src={
globalSetting?.setting?.competition_banner_url ? `${ENV.IMG_SERVER}/` + globalSetting?.setting?.competition_banner_url :
require(`@/assets/images/competition_banner.jpg`)
}
alt=""
/>
</a>
</aside>
<section className="bg-white" style={{ height: '50px' }}>