Skip to content
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
28 changes: 8 additions & 20 deletions website/theme/components/Copyright.module.scss
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
.copyRight {
bottom: 0;
width: 100%;
margin-top: 3rem;
padding: 2rem 1.5rem;
border-top: 1px solid var(--rp-c-divider-light);

@media (min-width: 640px) {
padding: 2rem;
}
}

.copyRightInner {
width: 100%;
margin: 0 auto;
text-align: center;
}

.copyRightText {
margin: 0;
color: var(--rp-c-text-2);
font-size: 0.875rem;
font-weight: 400;
line-height: 1.8;

p {
margin: 0;
a {
color: inherit;
white-space: nowrap;

&:hover {
text-decoration: underline;
Comment thread
chenjiahan marked this conversation as resolved.
}
}
}
21 changes: 10 additions & 11 deletions website/theme/components/Copyright.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ import styles from './Copyright.module.scss';

export const CopyRight = () => {
return (
<footer className={styles.copyRight}>
<div className={styles.copyRightInner}>
<div className={styles.copyRightText}>
<p>
Rstack CLI is free and open source software released under the MIT
license.
</p>
<p>© 2026 Rstack contributors.</p>
</div>
</div>
</footer>
<p className={styles.copyRight}>
© 2026 Rstack contributors ·{' '}
<a
href="https://github.com/rstackjs/rstack-cli/blob/main/LICENSE"
target="_blank"
rel="noopener noreferrer"
>
MIT License
</a>
</p>
);
};
25 changes: 12 additions & 13 deletions website/theme/components/HomeFooter.module.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
.footer {
display: none;
flex-direction: column;
align-items: center;
width: 100%;
max-width: 72rem;
margin: 0 auto;
padding: 5rem 2rem 3rem;

@media (min-width: 640px) {
display: flex;
@media (max-width: 640px) {
padding-inline: 1.25rem;
}
}

.container {
display: flex;
.links {
display: none;
justify-content: space-between;
gap: 2rem;
width: 100%;
max-width: 72rem;
padding: 3rem 2rem 1rem;
margin-bottom: 5rem;

@media (max-width: 640px) {
padding-inline: 1.25rem;
@media (min-width: 640px) {
display: flex;
}
}

Expand All @@ -27,7 +26,7 @@
align-items: flex-start;

h2 {
margin: 1rem 0;
margin: 0 0 1rem;
font-size: 1.125rem;
font-weight: 600;
line-height: 1.75rem;
Expand Down
8 changes: 5 additions & 3 deletions website/theme/components/HomeFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useI18n, useLang } from '@rspress/core/runtime';
import { Link } from '@rspress/core/theme-original';
import { memo } from 'react';
import { CopyRight } from './Copyright';
import styles from './HomeFooter.module.scss';

function useFooterData() {
Expand Down Expand Up @@ -116,8 +117,8 @@ export const HomeFooter = memo(() => {
const footerData = useFooterData();

return (
<div className={styles.footer}>
<div className={styles.container}>
<footer className={styles.footer}>
<div className={styles.links}>
{footerData.map((item) => (
<div key={item.title} className={styles.column}>
<h2>{item.title}</h2>
Expand All @@ -133,6 +134,7 @@ export const HomeFooter = memo(() => {
</div>
))}
</div>
</div>
<CopyRight />
</footer>
);
});
2 changes: 0 additions & 2 deletions website/theme/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Commands } from '../components/Commands';
import { CopyRight } from '../components/Copyright';
import { GetStarted } from '../components/GetStarted';
import { Hero } from '../components/Hero';
import { HomeFooter } from '../components/HomeFooter';
Expand All @@ -11,7 +10,6 @@ export function HomeLayout() {
<Commands />
<GetStarted />
<HomeFooter />
<CopyRight />
</>
);
}