Skip to content

Commit

Permalink
Merge branch 'main' into feat/playground
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyutaotao committed Oct 17, 2024
2 parents caa7e93 + f312cec commit 2eb57b4
Show file tree
Hide file tree
Showing 42 changed files with 2,340 additions and 1,609 deletions.
14 changes: 11 additions & 3 deletions apps/site/rspress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,24 @@ export default defineConfig({
dark: '/midscene_with_text_dark.png',
},
themeConfig: {
darkMode: false,
darkMode: true,
socialLinks: [
{
icon: 'github',
mode: 'link',
content: 'https://github.com/web-infra-dev/midscene',
},
],
footer: {
message: `
<footer class="footer">
<div class="footer-content">
<img src="/midscene-icon.png" alt="Midscene.js Logo" class="footer-logo" />
<p class="footer-text">&copy; 2024 Midscene.js. All Rights Reserved.</p>
</div>
</footer>
`,
},
locales: [
{
lang: 'en',
Expand All @@ -37,14 +47,12 @@ export default defineConfig({
locales: [
{
lang: 'en',
// The label in nav bar to switch language
label: 'English',
title: 'Midscene.js',
description: 'Midscene.js',
},
{
lang: 'zh',
// The label in nav bar to switch language
label: '简体中文',
title: 'Midscene.js',
description: 'Midscene.js',
Expand Down
61 changes: 56 additions & 5 deletions apps/site/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,68 @@

.dark {
--rp-c-text-1: rgba(255, 255, 255, 1);
}

:root {
--rp-c-text-1: #000;
--rp-code-block-bg: #efefef;
--rp-c-text-code:#2d4956;
--rp-c-text-code: #2d4956;
--rp-home-feature-bg: #F1F1f1;
}

@media (min-width: 768px) {
/* Footer styles */
.footer {
background-color: transparent;
color: #333;
text-align: center;

}

.footer::before,
.footer::after {
content: none;
border: none;
}

.footer-content {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 15px;
border: none;
}

.footer-logo {
width: 40px;
border: none;
}

.footer-text {
margin: 0;
font-size: 14px;
color: #333;
border: none;
white-space: nowrap;
}

@media (max-width: 768px) {
.md\:text-6xl {
font-size: 3.3rem;
line-height: 1;
font-size: 3.3rem;
line-height: 1;
}
}

.footer-content {
flex-direction: column;
align-items: center;
text-align: center;
}

.footer-logo {
margin-bottom: 10px;
}

.footer-bottom {
text-align: center;
}
}
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
"**/midscene_run",
".nx",
"**/dist",
"**/test-data/**",
"test-data/**",
"dist",
"__ai_responses__",
"ai-data/**",
"**/doc_build",
"*-dump.json",
"test-results/**",
"script_get_all_texts.tmp.js",
"**/playwright-report/**",
"**/todo-report.spec.ts-snapshots/**"
Expand Down
Loading

0 comments on commit 2eb57b4

Please sign in to comment.