Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed overflow and alignment issues on homepage #970

Merged
merged 1 commit into from
May 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions home/i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@
"slogan": {
"message": "Open Source Real-time Monitoring Tool"
},
"Who Use HertzBeat?": {
"message": "Who Use HertzBeat?"
"Who uses HertzBeat?": {
"message": "Who uses HertzBeat?"
},
"Dromara Friends": {
"message": "Dromara Friends"
Expand Down
13 changes: 7 additions & 6 deletions home/src/pages/components/DiaLog.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useCallback, useEffect, useState } from 'react';
import { Modal, Button } from '@douyinfe/semi-ui';
import Translate from '@docusaurus/Translate'
import Translate from '@docusaurus/Translate';
import styles from './DiaLog.module.css';

// from rainbond: https://github.com/goodrain/rainbond-docs/blob/main/src/components/DiaLog/index.tsx
export default function DiaLog() {
Expand All @@ -22,7 +23,7 @@ export default function DiaLog() {
<>
<Modal
title={
<p style={{ fontSize: "22px" }}><Translate>support hertzbeat</Translate></p>
<p style={{ fontSize: "22px" }}><Translate>Support HertzBeat</Translate></p>
}
visible={Visible}
// onOk={handleOk}
Expand All @@ -35,18 +36,18 @@ export default function DiaLog() {
<img src="/img/tancloud-logo.svg" alt="logo" />
}
footer={
<div>
<p style={{paddingRight: "20px"}}>
<div className={styles.goToGithubWrapper}>
<p >
👇 <b style={{ color: "#26B226"}}><Translate>click</Translate></b>
</p>
<a href="https://github.com/dromara/hertzbeat" target="_blank">
<Button type="primary" theme="solid">
<Translate>go github</Translate>
<Translate>Go to Github</Translate>
</Button>
</a>
</div>
}>
<p style={{lineHeight: 1.5}}>
<p style={{lineHeight: 1.5, textAlign: "center"}}>
<Translate>If you like HertzBeat, give us a star on GitHub</Translate>
</p>
<p style={{lineHeight: 1.5}}>
Expand Down
7 changes: 7 additions & 0 deletions home/src/pages/components/DiaLog.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.goToGithubWrapper{

display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
2 changes: 1 addition & 1 deletion home/src/pages/components/LogoCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const iconCommonUrl = '/img/icons/'
var settings = {
dots: false,
infinite: true,
speed: 800,
speed: 1200,
slidesToShow: 6,
slidesToScroll: 1,
autoplay: true,
Expand Down
4 changes: 2 additions & 2 deletions home/src/pages/components/LogoCarousel.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body .companyUsage h3 {
.logos ul {
display: flex;
justify-content: space-around;
/*width: 3200px;*/
/* width: 3200px; */
margin: 0;
transition: transform 1000ms ease;
}
Expand All @@ -26,7 +26,7 @@ body .companyUsage h3 {
}
.logos ul {
padding: 0;
width: 3000px;
/* width: 3000px; */
}
.logos ul li {
min-width: 125px;
Expand Down
11 changes: 6 additions & 5 deletions home/src/pages/components/Sponsor.module.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
.cardList {
margin: -0.35rem;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: center;
/* flex-wrap: wrap; */
/* align-items: flex-start; */
width: 100%;
}

.cardItem {
width: calc(33.33333% - .7rem);
/* width: calc(33.33333% - .7rem); */
margin: 0.35rem;
background: var(--bodyBg);
border-radius: 3px;
Expand All @@ -20,8 +21,8 @@

.cardItemTextBody {
flex: 1;
display: inline-block;
float: right;
/* display: inline-block; */
/* float: right; */
padding: 1rem 0;
}

Expand Down
2 changes: 1 addition & 1 deletion home/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function Home() {
{/*who is using*/}
<Section isDark>
<LogoCarousel logos={usersLink}
headerTitle={translate({ message: 'Who Use HertzBeat?' })}>
headerTitle={translate({ message: 'Who uses HertzBeat?' })}>
</LogoCarousel>
</Section>
{features && features.length > 0 && (
Expand Down