Skip to content

Commit 846a2e2

Browse files
committed
Modified blog
1 parent 21d73be commit 846a2e2

3 files changed

Lines changed: 221 additions & 3 deletions

File tree

src/contexts/LanguageContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export const translations = {
269269
},
270270
// Redstone Section
271271
redstone: {
272-
sectionTitle: '深入',
272+
sectionTitle: '引进',
273273
technicalWord: '技術',
274274
subtitle: '由紅石驅動',
275275
belief: '我們的地圖完全由紅石驅動。無模組、無命令方塊,體驗純原版競速。',

src/index.css

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3796,4 +3796,124 @@ ul {
37963796
/* Footer links for Chinese */
37973797
[data-lang="zh"] .footer-links a {
37983798
font-family: 'Noto Sans TC', 'Noto Sans', sans-serif !important;
3799+
}
3800+
3801+
/* ============================================
3802+
Subsection Carousel Styles
3803+
============================================ */
3804+
.subsection-carousel {
3805+
display: flex;
3806+
align-items: stretch;
3807+
gap: var(--space-sm);
3808+
margin: var(--space-md) 0;
3809+
background: rgba(255, 255, 255, 0.05);
3810+
border: 1px solid rgba(255, 255, 255, 0.1);
3811+
border-radius: var(--radius-md);
3812+
padding: var(--space-md);
3813+
}
3814+
3815+
.carousel-btn {
3816+
flex-shrink: 0;
3817+
width: 48px;
3818+
height: 100%;
3819+
min-height: 120px;
3820+
background: rgba(255, 255, 255, 0.1);
3821+
border: 1px solid rgba(255, 255, 255, 0.2);
3822+
border-radius: var(--radius-sm);
3823+
color: var(--white);
3824+
font-size: 2rem;
3825+
cursor: pointer;
3826+
transition: all 0.3s ease;
3827+
display: flex;
3828+
align-items: center;
3829+
justify-content: center;
3830+
}
3831+
3832+
.carousel-btn:hover {
3833+
background: rgba(255, 255, 255, 0.2);
3834+
border-color: var(--frost-light);
3835+
color: var(--frost-light);
3836+
}
3837+
3838+
.carousel-content {
3839+
flex: 1;
3840+
display: flex;
3841+
flex-direction: column;
3842+
min-width: 0;
3843+
}
3844+
3845+
.carousel-card {
3846+
flex: 1;
3847+
padding: var(--space-md);
3848+
background: rgba(255, 255, 255, 0.05);
3849+
border-radius: var(--radius-sm);
3850+
}
3851+
3852+
.carousel-card h4 {
3853+
color: var(--frost-light);
3854+
font-size: 1.1rem;
3855+
margin-bottom: var(--space-sm);
3856+
font-weight: 600;
3857+
}
3858+
3859+
.carousel-card p {
3860+
color: var(--grey-light);
3861+
font-size: 0.95rem;
3862+
line-height: 1.7;
3863+
margin: 0;
3864+
}
3865+
3866+
.carousel-indicators {
3867+
display: flex;
3868+
justify-content: center;
3869+
gap: var(--space-xs);
3870+
margin-top: var(--space-sm);
3871+
padding-top: var(--space-sm);
3872+
}
3873+
3874+
.carousel-dot {
3875+
width: 10px;
3876+
height: 10px;
3877+
border-radius: 50%;
3878+
background: rgba(255, 255, 255, 0.3);
3879+
border: none;
3880+
cursor: pointer;
3881+
transition: all 0.3s ease;
3882+
padding: 0;
3883+
}
3884+
3885+
.carousel-dot:hover {
3886+
background: rgba(255, 255, 255, 0.5);
3887+
}
3888+
3889+
.carousel-dot.active {
3890+
background: var(--frost-light);
3891+
transform: scale(1.2);
3892+
}
3893+
3894+
/* Mobile responsive carousel */
3895+
@media (max-width: 768px) {
3896+
.subsection-carousel {
3897+
flex-direction: column;
3898+
padding: var(--space-sm);
3899+
}
3900+
3901+
.carousel-btn {
3902+
width: 100%;
3903+
height: auto;
3904+
min-height: 44px;
3905+
font-size: 1.5rem;
3906+
}
3907+
3908+
.carousel-prev {
3909+
order: 0;
3910+
}
3911+
3912+
.carousel-content {
3913+
order: 1;
3914+
}
3915+
3916+
.carousel-next {
3917+
order: 2;
3918+
}
37993919
}

0 commit comments

Comments
 (0)