Merge branch 'ui' of git.backyard.segmentfault.com:opensource/answer into ui

This commit is contained in:
haitao(lj) 2022-10-09 17:39:53 +08:00
commit 1199b35026
4 changed files with 26 additions and 12 deletions
ui/src
components
Footer
Questions
i18n/locales

View File

@ -1,16 +1,19 @@
import React from 'react'; import React from 'react';
import { Container } from 'react-bootstrap'; import { Container } from 'react-bootstrap';
import { Trans } from 'react-i18next';
const Index = () => { const Index = () => {
return ( return (
<footer className="bg-light py-3"> <footer className="bg-light py-3">
<Container> <Container>
<p className="text-center mb-0 fs-14 text-secondary"> <p className="text-center mb-0 fs-14 text-secondary">
<Trans i18nKey="footer.build_on">
Built on Built on
<a href="/"> Answer </a> <a href="/"> Answer </a>
- the open source source software that power knowledge communities. - the open source source software that power knowledge communities.
<br /> <br />
Made with love. © 2022 Answer . Made with love. © 2022 Answer .
</Trans>
</p> </p>
</Container> </Container>
</footer> </footer>

View File

@ -153,12 +153,17 @@ const QuestionList: FC<Props> = ({ source }) => {
<Icon name="hand-thumbs-up-fill" /> <Icon name="hand-thumbs-up-fill" />
<em className="fst-normal mx-1">{li.vote_count}</em> <em className="fst-normal mx-1">{li.vote_count}</em>
</span> </span>
<span className="ms-3"> <span
{li.accepted_answer_id >= 1 ? ( className={`ms-3 ${
<Icon name="check-circle-fill" className="text-success" /> li.accepted_answer_id >= 1 ? 'text-success' : ''
) : ( }`}>
<Icon name="chat-square-text-fill" /> <Icon
)} name={
li.accepted_answer_id >= 1
? 'check-circle-fill'
: 'chat-square-text-fill'
}
/>
<em className="fst-normal mx-1">{li.answer_count}</em> <em className="fst-normal mx-1">{li.answer_count}</em>
</span> </span>
<span className="summary-stat ms-3"> <span className="summary-stat ms-3">

View File

@ -397,6 +397,9 @@
"placeholder": "Search" "placeholder": "Search"
} }
}, },
"footer": {
"build_on": "Build on <1> Answer </1>- the open source source software that power knowledge communities.<br />Made with love. © 2022 Answer."
},
"upload_img": { "upload_img": {
"name": "Change", "name": "Change",
"loading": "loading..." "loading": "loading..."

View File

@ -55,5 +55,8 @@
"different": "两次输入密码不一致" "different": "两次输入密码不一致"
} }
} }
},
"footer": {
"build_on": "由 <1> Answer </1>构建- 为知识社区提供动力的开源软件.<br />Made with love. © 2022 Answer ."
} }
} }