Commit ca77a551 authored by AI Bot's avatar AI Bot

按更新方案落地首页/投资板块改动

- frontPage.md:首页轮播拆为 portfolioZH/portfolioEN 两份(中文站
  DeepSeek/月之暗面/叮咚买菜/壁仞科技/极智嘉;英文站 拼多多/月之暗面/
  BOSS直聘/得物/小红书),LP 表述与 metaDescription 对齐新行业口径
  (前沿科技、AI互联网及消费、医疗健康)
- pages/index.js:单语言站点按构建语言选轮播列表,双语回退中文
- IndexPortfolioCycle:补齐缺失素材/日期的降级保护(隐藏天数、logo、背景图)
- portfolioPage.md:板块标签统一——中文 全部行业/前沿科技/AI、互联网及消费/
  医疗健康;英文 All Sectors/AI, Internet and Consumer/Frontier Technology/
  Healthcare(type 过滤键不变,无需迁移企业数据)
- 新增投资页中文标题 SVG(旧 SVG 文字为矢量路径不可改)
- admin/config.yml:CMS 同步拆分两个轮播列表字段
Co-Authored-By: 's avatarClaude Code <noreply@anthropic.com>
parent 15761c57
...@@ -91,7 +91,9 @@ export default class IndexPortfolioCycle extends React.Component { ...@@ -91,7 +91,9 @@ export default class IndexPortfolioCycle extends React.Component {
return portfolio.map((val, idx) => { return portfolio.map((val, idx) => {
const date = new Date(val.sinceDate) const date = new Date(val.sinceDate)
const dur = parseInt(Math.abs(today - date) / seconds) const dur = isNaN(date.getTime())
? NaN
: parseInt(Math.abs(today - date) / seconds)
return ( return (
<div <div
key={idx} key={idx}
...@@ -139,7 +141,10 @@ export default class IndexPortfolioCycle extends React.Component { ...@@ -139,7 +141,10 @@ export default class IndexPortfolioCycle extends React.Component {
<div <div
className="index-portfolio-imgbg" className="index-portfolio-imgbg"
style={{ style={{
backgroundImage: `url(${mobile ? val.image : val.image2})` backgroundImage:
(mobile ? val.image : val.image2)
? `url(${mobile ? val.image : val.image2})`
: 'none'
}} }}
onClick={this.nextPortfolio.bind(this, showIdx, portfolio)} onClick={this.nextPortfolio.bind(this, showIdx, portfolio)}
></div> ></div>
...@@ -170,10 +175,12 @@ export default class IndexPortfolioCycle extends React.Component { ...@@ -170,10 +175,12 @@ export default class IndexPortfolioCycle extends React.Component {
unmountOnExit unmountOnExit
> >
<div className="index-portfolio-textwrapper"> <div className="index-portfolio-textwrapper">
{(mobile ? val.logo : val.logo2) && (
<img <img
src={mobile ? val.logo : val.logo2} src={mobile ? val.logo : val.logo2}
className="index-portfolio-logo" className="index-portfolio-logo"
/> />
)}
<div className="index-portfolio-description"> <div className="index-portfolio-description">
{en === null {en === null
? '' ? ''
...@@ -185,7 +192,7 @@ export default class IndexPortfolioCycle extends React.Component { ...@@ -185,7 +192,7 @@ export default class IndexPortfolioCycle extends React.Component {
</CSSTransition> </CSSTransition>
</div> </div>
<div className="index-portfolio-footer"> <div className="index-portfolio-footer">
{mounted && ( {mounted && (mobile ? val.image : val.image2) && (
<img <img
className="index-portfolio-img-preload" className="index-portfolio-img-preload"
src={mobile ? val.image : val.image2} src={mobile ? val.image : val.image2}
...@@ -199,7 +206,7 @@ export default class IndexPortfolioCycle extends React.Component { ...@@ -199,7 +206,7 @@ export default class IndexPortfolioCycle extends React.Component {
: `${gaorongWith} ${val.title}`} : `${gaorongWith} ${val.title}`}
</div> </div>
<div> <div>
{idx === showIdx && ( {idx === showIdx && !isNaN(dur) && (
<DigitRoll <DigitRoll
delay="1.2" delay="1.2"
num={dur} num={dur}
......
This diff is collapsed.
--- ---
title: 投资新科技互联网及 新消费医疗健康等领域.svg title: 投资前沿科技AI互联网及 消费医疗健康等领域.svg
titleEN: We Invest in Internet and New Consumption<br/>New Technology<br/>and Healthcare titleEN: We Invest in AI, Internet and Consumer<br/>Frontier Technology<br/>and Healthcare
subTitle: > subTitle: >
高榕创投深耕新科技,AI、互联网及新消费,医疗健康等领域,投资富有创新力和成长力的初创期企业,支持创业创新、服务实体经济。截止目前,高榕已投资超过300家企业。<br/><br/>在新科技领域,高榕创投投资智能硬件、机器人、人工智能、自动驾驶、半导体、企业服务与产业升级、碳中和、航天与量子计算等领域,积极支持科技创新和战略性产业发展;在AI、互联网和新消费领域,我们持续寻找“新电商”、“新娱乐”、“新品牌”、“全球化品牌”、“新零售”、“新商业服务”和“AI应用”领域的机会;医疗健康领域,投资数字健康及医疗服务、新药研发、医疗器械及检测等方向的优秀企业。 高榕创投深耕前沿科技,AI、互联网及消费,医疗健康等领域,投资富有创新力和成长力的初创期企业,支持创业创新、服务实体经济。截止目前,高榕已投资超过300家企业。<br/><br/>在前沿科技领域,高榕创投投资智能硬件、机器人、人工智能、自动驾驶、半导体、企业服务与产业升级、碳中和、航天与量子计算等领域,积极支持科技创新和战略性产业发展;在AI、互联网和消费领域,我们持续寻找“新电商”、“新娱乐”、“新品牌”、“全球化品牌”、“新零售”、“新商业服务”和“AI应用”领域的机会;医疗健康领域,投资数字健康及医疗服务、新药研发、医疗器械及检测等方向的优秀企业。
subTitleEN: > subTitleEN: >
We are endeavoring in relentless exploration of innovative start-ups in AI, We are endeavoring in relentless exploration of innovative start-ups in AI,
internet and new consumption, new technology and healthcare sectors. To date, internet and consumer, frontier technology and healthcare sectors. To date,
we have been successfully partnering with more than 300 companies.<br/><br/>We we have been successfully partnering with more than 300 companies.<br/><br/>We
seek to be the leader in spotting valuable opportunities in new e-commerce, seek to be the leader in spotting valuable opportunities in new e-commerce,
entertainment, brands, retail, and business service fields as they arise. We entertainment, brands, retail, and business service fields as they arise. We
are determined to invest in new technology industry and identify the are determined to invest in frontier technology industry and identify the
outstanding teams. We continue to invest in the healthcare industry, and are outstanding teams. We continue to invest in the healthcare industry, and are
committed to discovering leading companies in the fields of digital health, committed to discovering leading companies in the fields of digital health,
medical services, drug discovery, medical instrumentation and testing. medical services, drug discovery, medical instrumentation and testing.
...@@ -37,10 +37,10 @@ imageList: ...@@ -37,10 +37,10 @@ imageList:
mask: /static/img/imageMask.svg mask: /static/img/imageMask.svg
allKind: 全部行业 allKind: 全部行业
allKindEN: All Sectors allKindEN: All Sectors
newConsumption: AI、互联网及新消费 newConsumption: AI、互联网及消费
newConsumptionEN: AI, Internet and New Consumption newConsumptionEN: AI, Internet and Consumer
newTech: 新科技 newTech: 前沿科技
newTechEN: New Technology newTechEN: Frontier Technology
health: 医疗健康 health: 医疗健康
healthEN: Healthcare healthEN: Healthcare
officialSite: 官方网站 officialSite: 官方网站
......
...@@ -11,6 +11,7 @@ import Video from '../components/Video' ...@@ -11,6 +11,7 @@ import Video from '../components/Video'
/* eslint-enable no-unused-vars */ /* eslint-enable no-unused-vars */
import frontPage from '../content/frontPage.md' import frontPage from '../content/frontPage.md'
import timelinePage from '../content/timeline.md' import timelinePage from '../content/timeline.md'
import { FORCE_EN } from '../utils/siteLang'
import { ThemeDecorator } from './_app.js' import { ThemeDecorator } from './_app.js'
import './index.css' import './index.css'
...@@ -205,7 +206,8 @@ class FrontPage extends React.Component { ...@@ -205,7 +206,8 @@ class FrontPage extends React.Component {
titleEN, titleEN,
subTitle, subTitle,
subTitleEN, subTitleEN,
portfolio, portfolioZH,
portfolioEN,
gaorongWith, gaorongWith,
gaorongWithEN, gaorongWithEN,
videoPoster, videoPoster,
...@@ -233,6 +235,8 @@ class FrontPage extends React.Component { ...@@ -233,6 +235,8 @@ class FrontPage extends React.Component {
teamImagex2 teamImagex2
} }
} = frontPage } = frontPage
// 单语言站点按构建语言选轮播列表;双语模式(未指定 SITE_LANG)回退中文列表
const portfolio = FORCE_EN ? portfolioEN : portfolioZH || portfolio
const { en } = this.props const { en } = this.props
const { mobile, mounted } = this.state const { mobile, mounted } = this.state
return ( return (
......
...@@ -27,19 +27,34 @@ collections: ...@@ -27,19 +27,34 @@ collections:
- { label: "videoPoster", name: "videoPoster", widget: "image"} - { label: "videoPoster", name: "videoPoster", widget: "image"}
- { label: "video", name: "video", widget: "image"} - { label: "video", name: "video", widget: "image"}
- { label: "videoMobile", name: "videoMobile", widget: "image"} - { label: "videoMobile", name: "videoMobile", widget: "image"}
- label: 'portfolio' - label: 'portfolioZH(中文站首页轮播)'
name: "portfolio" name: "portfolioZH"
widget: list widget: list
required: false
fields: fields:
- { label: "Title", name: "title", widget: "string" } - { label: "Title", name: "title", widget: "string" }
- { label: "TitleEN", name: "titleEN", widget: "string" } - { label: "TitleEN", name: "titleEN", widget: "string" }
- { label: "Since Date", name: "sinceDate", widget: "datetime" } - { label: "Since Date", name: "sinceDate", widget: "datetime", required: false }
- { label: "Description", name: "description", widget: "text" } - { label: "Description", name: "description", widget: "text" }
- { label: "DescriptionEN", name: "descriptionEN", widget: "text", required: false }
- { label: "image", name: "image", widget: "image", required: false }
- { label: "image2", name: "image2", widget: "image", required: false }
- { label: "logo", name: "logo", widget: "image", required: false }
- { label: "logo2", name: "logo2", widget: "image", required: false }
- label: 'portfolioEN(英文站首页轮播)'
name: "portfolioEN"
widget: list
required: false
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "TitleEN", name: "titleEN", widget: "string" }
- { label: "Since Date", name: "sinceDate", widget: "datetime", required: false }
- { label: "Description", name: "description", widget: "text", required: false }
- { label: "DescriptionEN", name: "descriptionEN", widget: "text" } - { label: "DescriptionEN", name: "descriptionEN", widget: "text" }
- { label: "image", name: "image", widget: "image" } - { label: "image", name: "image", widget: "image", required: false }
- { label: "image2", name: "image2", widget: "image" } - { label: "image2", name: "image2", widget: "image", required: false }
- { label: "logo", name: "logo", widget: "image" } - { label: "logo", name: "logo", widget: "image", required: false }
- { label: "logo2", name: "logo2", widget: "image" } - { label: "logo2", name: "logo2", widget: "image", required: false }
- { label: "Summary Title", name: "summaryTitle", widget: "string"} - { label: "Summary Title", name: "summaryTitle", widget: "string"}
- { label: "Summary TitleEN", name: "summaryTitleEN", widget: "string"} - { label: "Summary TitleEN", name: "summaryTitleEN", widget: "string"}
- { label: "Summary subTitle", name: "summarySubTitle", widget: "text"} - { label: "Summary subTitle", name: "summarySubTitle", widget: "text"}
......
<svg xmlns="http://www.w3.org/2000/svg" width="350" height="78" viewBox="0 0 420 78"><g fill="#201714" font-family="'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif" font-size="32"><text x="0" y="34">投资前沿科技、AI互联网及</text><text x="0" y="72">消费、医疗健康等领域</text></g></svg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment