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
111 changes: 100 additions & 11 deletions packages/home/src/views/tiny-vue-home/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
padding: 0;
background-color: var(--bg-color);

.feature-title {
margin-top: 20px;
font-size: 40px;
line-height:54px;
font-weight: 700;
}

.feature-text-description {
font-size: 16px;
line-height: 32px;
font-weight: 400;
letter-spacing: 0px;
color: #808080;
}

.container {
width: 100%;
overflow-x: hidden;
Expand Down Expand Up @@ -79,6 +94,58 @@
justify-content: center;
}

.mt-100 {
margin-top: 100px;
}

.mt-20 {
margin-top: 20px;
}

.mt-40 {
margin-top: 40px;
}

.mt-60 {
margin-top: 60px;
}

.mt-70 {
margin-top: 70px;
}

.mb-60 {
margin-bottom: 60px;
}

.mb-70 {
margin-bottom: 70px;
}

.mb-40 {
margin-bottom: 40px;
}

.mb-100 {
margin-bottom: 100px;
}

.pd-space {
padding: 16px 32px 40px;
}

.pd-space-title {
padding: 0px 32px;
}

.pb-130 {
padding-bottom: 130px;
}

.pb-100 {
padding-bottom: 100px;
}

.flex-row-column {
flex-direction: column;
}
Expand Down Expand Up @@ -181,7 +248,18 @@

.feature-sub-title {
font-size: 20px;
padding-bottom: 0;
letter-spacing: 1px;
padding: 16px 0 20px 0;
line-height: 28px;
font-weight: 300;
color: #808080;
}

.feature-desc-title {
color: #191919;
font-weight: 600;
font-size: 22px;
letter-spacing: 0;
}

.feature-header {
Expand All @@ -191,28 +269,30 @@
justify-content: center;
max-width: 1400px;
width: 100%;
margin-top: 10px;
}

.feature-content {
position: relative;
z-index: 1;
display: flex;
align-items: baseline;
justify-content: space-between;
max-width: 1400px;
width: 100%;
height: 100%;
gap: 40px;
}

.feature-text {
flex: 1;
padding: 0 20px;
padding: 0 32px;
}

.feature-visual {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}

.floating-img {
Expand All @@ -232,20 +312,29 @@
display: flex;
align-items: center;
gap: 8px;
padding-bottom: 20px;
padding-bottom: 16px;

img {
width: 24px;
height: 24px;
}
}

.title-logo-text {
font-size: 16px;
color: #808080;
font-size: 24px;
color: #595959;
letter-spacing: 0px;
line-height: 36px;
font-weight: 400;
}

.title-number {
font-size: 44px;
font-size: 52px;
font-weight: 600;
color: #1476ff;
line-height: 1.2;
padding-bottom: 20px;
letter-spacing: 0;
line-height: 74px;
padding-bottom: 8px;
}

/* ==================== 响应式适配 ==================== */
Expand Down Expand Up @@ -308,7 +397,7 @@
font-size: 14px;
}

.feature-sub-title {
.feature-sub-title, .feature-desc-title {
font-size: 18px;
padding-bottom: 0px;
}
Expand Down Expand Up @@ -346,7 +435,7 @@
font-size: 20px;
}

.feature-sub-title {
.feature-sub-title, .feature-desc-title {
font-size: 16px;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ const anchorData = reactive([
</script>

<template>
<section class="feature-section section bg-tech-2 bg-color-1">
<section class="feature-section section bg-tech-2 bg-color-1 pb-100">
<div class="feature-header fade-in-up">
<h2 class="title feature-title">丰富的组件</h2>
<p class="description">持续更新迭代,满足企业级应用需求。</p>
<h2 class="feature-title mt-60">丰富的组件</h2>
<p class="description feature-sub-title text-center">持续更新迭代,满足企业级应用需求。</p>
</div>
<div
class="flex-row"
class="flex-row mt-100 mb-60"
:style="{ width: isMobile ? '100%' : '550px', gap: isMobile ? '20px' : '120px' }"
>
<div class="flex-row-column">
Expand Down Expand Up @@ -443,12 +443,12 @@ const anchorData = reactive([
padding: 30px 25px;
background: #fff;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
box-shadow: 2px 2px 16px 8px rgba(126, 141, 145, 0.09);
flex: 1;

&:hover {
transform: scale(1.05);
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
transform: scale(1.02);
box-shadow: 0 8px 32px 0 rgba(126, 141, 145, 0.09);
}

.tiny-tree-menu:before {
Expand All @@ -472,11 +472,11 @@ const anchorData = reactive([
}

.component-demo-title {
font-size: 20px;
font-weight: 600;
font-size: 18px;
font-weight: 700;
color: #191919;
letter-spacing: 2px;
line-height: 1.2;
letter-spacing: 0px;
line-height: 32px;
padding-bottom: 20px;
}

Expand All @@ -494,6 +494,12 @@ const anchorData = reactive([
width: 100%;
}

@media (max-width: 1670px) {
.component-demo-container {
zoom: 0.9;
}
}

/* 响应式适配 */
@media (max-width: 1024px) {
.component-demo-container {
Expand Down Expand Up @@ -556,10 +562,6 @@ const anchorData = reactive([
max-width: 100%;
text-align: center;
}

.component-demo-title {
font-size: 18px;
}
}

@media (max-width: 480px) {
Expand All @@ -576,10 +578,6 @@ const anchorData = reactive([
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
}
}

.component-demo-title {
font-size: 18px;
}
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ const isMobile = inject("isMobile");

<template>
<section class="feature-section section bg-tech-1 min-h75">
<div class="feature-header pad-t40 fade-in-up">
<h2 class="title feature-title">配置式组件</h2>
<p class="description">
<div class="feature-header pad-t40 fade-in-up mb-40">
<h2 class="feature-title">配置式组件</h2>
<p class="feature-sub-title text-center">
支持模板式和配置式两种使用方式, 配置式组件让复杂场景的开发更简单高效。
</p>
</div>
<div class="feature-content pad-t40 fade-in-up">
<div class="flex-row gap-30 config-content">
<div class="flex-row gap-30 config-content pb-130">
<div
v-for="(item, index) in items"
:key="index"
class="flex-row flex-row-column gap-30 config-item"
class="flex-row flex-row-column config-item"
>
<img :src="item.icon" :alt="item.title" />
<div class="title feature-sub-title pad-0-30 pad-t40">{{ item.title }}</div>
<div class="description feature-text-description pad-0-30">
<img :src="item.icon" :alt="item.title" class="feature-icon"/>
<div class="feature-desc-title pd-space-title">{{ item.title }}</div>
<div class="feature-text-description pd-space">
{{ item.description }}
</div>
</div>
Expand All @@ -65,15 +65,13 @@ const isMobile = inject("isMobile");

.config-item {
background-color: #fff;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.05);
align-items: baseline;
gap: 20px;
border-radius: 20px;

&:hover {
transform: translateY(-5px);
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
transform: scale(1.02);
box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.05);
}

.description {
Expand All @@ -84,10 +82,11 @@ const isMobile = inject("isMobile");
}

img {
width: 100%;
width: stretch;
height: auto;
border-radius: 20px 20px 0 0;
object-fit: cover;
margin-bottom: 48px;
}

.title {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const features = [
<template>
<section class="feature-section section bg-tech-1 pad-t40 content-around">
<div class="feature-header pad-t40 fade-in-up">
<h2 class="title feature-title">跨端跨框架</h2>
<h2 class="feature-title">跨端跨框架</h2>
<p class="description feature-sub-title text-center">
相同的组件代码可在不同的Vue版本和设备平台上运行,显著降低了企业应用的维护成本,无需重复开发,大幅提升开发效率
</p>
Expand All @@ -35,9 +35,9 @@ const features = [
<div v-for="(item, index) in features" :key="index" class="feature-text">
<div class="title-logo">
<img :src="item.icon" class="feature-icon" />
<h2 class="title feature-sub-title">{{ item.title }}</h2>
<h2 class="feature-desc-title">{{ item.title }}</h2>
</div>
<p class="description feature-text-description">{{ item.description }}</p>
<p class="feature-text-description">{{ item.description }}</p>
</div>
</div>
<div class="feature-visual pad-t40 fade-in-up">
Expand Down
Loading
Loading