diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/VulnerabilityIntroductionComponent.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/VulnerabilityIntroductionComponent.kt index 9c258bacd7..13fbac433d 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/VulnerabilityIntroductionComponent.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/VulnerabilityIntroductionComponent.kt @@ -40,12 +40,18 @@ val vulnerabilityIntroductionComponent: FC = FC { } } div { - className = ClassName("card-body pt-0 pb-1") - markdown("addNewMd".t().trimMargin()) - } - div { - className = ClassName("card-body pt-0 pb-1") - markdown("howToMd".t().trimMargin()) + className = ClassName("card-body d-flex align-items-start") + div { + className = ClassName("card-img-right flex-column d-none d-md-block") + img { + className = ClassName("img-fluid") + src = "/img/undraw_important.svg" + } + } + div { + className = ClassName("card-body pt-0 pb-1") + markdown("addNewMd".t().trimMargin()) + } } div { className = ClassName("card-body pt-0 pb-1") diff --git a/cosv-frontend/src/main/resources/locales/cn/vulnerability-collection.json b/cosv-frontend/src/main/resources/locales/cn/vulnerability-collection.json index 66403b7098..1fffdee618 100644 --- a/cosv-frontend/src/main/resources/locales/cn/vulnerability-collection.json +++ b/cosv-frontend/src/main/resources/locales/cn/vulnerability-collection.json @@ -1,7 +1,6 @@ { "Introducing": "快速开始", "introMd": "|## 开源漏洞库\n |当前页面给出的是已公开的安全漏洞详情", - "addNewMd": "|### 新增漏洞\n |你可以在此添加你自己的漏洞 [新增漏洞](/vuln/create-vulnerability), 如果你在列表中没发现相同的漏洞\n |在被审核通过后,你将会在漏洞库中发现属于你自己的漏洞报告,并且有一个独一无二的漏洞ID", - "howToMd": "|### 如何添加漏洞报告?\n |1. 创建 saveourtool [组织](/create-organization) 和 [项目](/create-project);\n |2. 到你的项目的安全页面;\n |3. 创建新的问题以及你的漏洞编号;\n |\n |以防有错,请随时 [联系我们](https://github.com/saveourtool/save-cloud/issues/new).", + "addNewMd": "|### 新增漏洞\n |你可以在此添加你自己的漏洞 [新增漏洞](/vuln/create-vulnerability), 如果你在列表中没发现相同的漏洞\n |在被审核通过后,你将会在漏洞库中发现属于你自己的漏洞报告,并且有一个独一无二的漏洞ID.\n |\n |以防有错,请随时 [联系我们](https://github.com/saveourtool/save-cloud/issues/new).", "topRatingMd": "|### 贡献排名\n |每一个被审核并接受的漏洞都可以获得一定贡献分数. 在此你可以看到个人用户或组织的 [贡献排名](/vuln/top-rating)" } \ No newline at end of file diff --git a/cosv-frontend/src/main/resources/locales/en/vulnerability-collection.json b/cosv-frontend/src/main/resources/locales/en/vulnerability-collection.json index 0bf68a5018..d00832167c 100644 --- a/cosv-frontend/src/main/resources/locales/en/vulnerability-collection.json +++ b/cosv-frontend/src/main/resources/locales/en/vulnerability-collection.json @@ -1,7 +1,6 @@ { "Introducing": "Introducing", "introMd": "|## International Vulnerabilities Archive\n |Current page provides the list of publicly disclosed information security vulnerabilities and exposures.", - "addNewMd": "|### New vulnerability\n |You can propose your own [new vulnerability](/vuln/create-vulnerability), if you didn't find it one in our list.\n |After the review and approval, it will appear in the database under a special identifier.", - "howToMd": "|### How to add vulnerability in project?\n |1. Create saveourtool [organization](/create-organization) and [project](/create-project);\n |2. Go to your project's security tab;\n |3. Create new problem and add vulnerability number;\n |\n |In case of any error feel free to [contact us](https://github.com/saveourtool/save-cloud/issues/new).", + "addNewMd": "|### New vulnerability\n |You can propose your own [new vulnerability](/vuln/create-vulnerability), if you didn't find it one in our list.\n |After the review and approval, it will appear in the database under a special identifier.\n |\n |In case of any error feel free to [contact us](https://github.com/saveourtool/save-cloud/issues/new).", "topRatingMd": "|### Top rating\n |For each approved and accepted vulnerability you will get rating points. Here you can see the [top rating](/vuln/top-rating) of users and organizations." } \ No newline at end of file diff --git a/cosv-frontend/src/main/resources/locales/ru/vulnerability-collection.json b/cosv-frontend/src/main/resources/locales/ru/vulnerability-collection.json index 6d9c8d0c27..5aa9af6a35 100644 --- a/cosv-frontend/src/main/resources/locales/ru/vulnerability-collection.json +++ b/cosv-frontend/src/main/resources/locales/ru/vulnerability-collection.json @@ -1,7 +1,6 @@ { "Introducing": "Представляем", "introMd": "|## Международный Архив Уязвимостей\n |Данная страница предоставляет список публично раскрытых уязвимостей и инцидентов в области информационной безопасности.", - "addNewMd": "|### Новые уязвимости\n |Вы можете предложить свою [новую уязвимость](/vuln/create-vulnerability), если ее нет в нашем списке.\n |После подтверждения со стороны администрации, она появится в архиве под уникальным ID.", - "howToMd": "|### Как добавить уязвимость в проект?\n |1. Создайте saveourtool [организацию](/create-organization) и [проект](/create-project);\n |2. Откройте вкладку security вашего проекта;\n |3. Создайте новую проблему и добавьте ее уникальный ID;\n |\n |В случае любых ошибок не стесняйтесь [связываться с нами](https://github.com/saveourtool/save-cloud/issues/new).", + "addNewMd": "|### Новые уязвимости\n |Вы можете предложить свою [новую уязвимость](/vuln/create-vulnerability), если ее нет в нашем списке.\n |После подтверждения со стороны администрации, она появится в архиве под уникальным ID.\\n |\\n |В случае любых ошибок не стесняйтесь [связываться с нами](https://github.com/saveourtool/save-cloud/issues/new).\"", "topRatingMd": "|### Рейтинговая система\n |За каждую принятую уязвимость вы получаете очки рейтинга. Здесь вы можете ознакомиться с [рейтингом](/vuln/top-rating) пользователей и организаций." } \ No newline at end of file