添加了cloudbuild

This commit is contained in:
2025-09-08 21:23:43 +08:00
parent b33b48fb0f
commit 84e5770f97
15 changed files with 175 additions and 128 deletions

View File

@@ -1,156 +1,176 @@
<!-- docs/index.vue -->
<template>
<div id="header">
<h2>我们的产品</h2>
<div class="product-container">
<ol class="product-list">
<!-- 产品1 -->
<li class="product-item">
<div class="product-card">
<img src="/DevStar.png" alt="产品1" class="product-image">
<div class="product-info">
<h3 class="product-title">Devstar1</h3>
<p class="product-desc">DevStar Studio 是一个Gitea 发行版在Git代码仓库托管的基础上提供了开发环境DevEnv执行引擎与VS Code插件或自定义IDE深度融合形成灵活适配基础软件工具的生态平台从而为开发者用户提供智能代码大模型AI+安全完全云原生一站式开箱即用的CI/CD全生命周期研发平台</p>
<a href="/document/index" class="product-link">介绍文档</a>
</div>
<section class="tencent-showcase">
<div class="ten_main">
<div class="ten_links">
<!-- 公司简介卡片 -->
<a
href="/devstar"
class="ten_img"
@mouseenter="hoverItem = 'about'"
@mouseleave="hoverItem = null"
>
<img
src="/public/promotional-graphic-devstar.png"
alt="公司简介"
class="tencent-image"
:class="{ 'image-hover': hoverItem === 'about' }"
>
<div class="ten_img_txt" :class="{ 'text-hover': hoverItem === 'about' }">
<h2>Devstar Studio</h2>
</div>
</a>
<!-- 企业文化卡片 -->
<a
href="/cloudbuild"
class="ten_img"
@mouseenter="hoverItem = 'culture'"
@mouseleave="hoverItem = null"
>
<img
src="/public/promotional-graphic-cloudbuild.jpg"
alt="企业文化"
class="tencent-image"
:class="{ 'image-hover': hoverItem === 'culture' }"
>
<div class="ten_img_txt" :class="{ 'text-hover': hoverItem === 'culture' }">
<h2>Cloudbuild</h2>
</div>
</a>
<!-- 办公地点卡片 -->
<a
href="/simulator"
class="ten_img"
@mouseenter="hoverItem = 'office'"
@mouseleave="hoverItem = null"
>
<img
src="/public/promotional-graphic-simulator.jpg"
alt="办公地点"
class="tencent-image"
:class="{ 'image-hover': hoverItem === 'office' }"
>
<div class="ten_img_txt" :class="{ 'text-hover': hoverItem === 'office' }">
<h2>Simulator</h2>
</div>
</a>
</div>
</li>
<!-- 产品2 -->
<li class="product-item">
<div class="product-card">
<img src="/DevStar.png" alt="产品2" class="product-image">
<div class="product-info">
<h3 class="product-title">Devstar2</h3>
<p class="product-desc">DevStar Studio 是一个Gitea 发行版在Git代码仓库托管的基础上提供了开发环境DevEnv执行引擎与VS Code插件或自定义IDE深度融合形成灵活适配基础软件工具的生态平台从而为开发者用户提供智能代码大模型AI+安全完全云原生一站式开箱即用的CI/CD全生命周期研发平台</p>
<a href="/document/index" class="product-link">介绍文档</a>
</div>
</div>
</li>
<!-- 产品3 -->
<li class="product-item">
<div class="product-card">
<img src="/DevStar.png" alt="产品3" class="product-image">
<div class="product-info">
<h3 class="product-title">Devstar3</h3>
<p class="product-desc">DevStar Studio 是一个Gitea 发行版在Git代码仓库托管的基础上提供了开发环境DevEnv执行引擎与VS Code插件或自定义IDE深度融合形成灵活适配基础软件工具的生态平台从而为开发者用户提供智能代码大模型AI+安全完全云原生一站式开箱即用的CI/CD全生命周期研发平台</p>
<a href="/document/index" class="product-link">介绍文档</a>
</div>
</div>
</li>
</ol>
</div>
</div>
</div>
</section>
</template>
<script>
export default {
name: 'HomePage',
methods: {
handleClick() {
alert('按钮被点击!')
name: 'TencentShowcase',
data() {
return {
hoverItem: null
}
}
}
</script>
<style scoped>
h2 {
border-top: 0;
margin: 0 0 0 16px;
}
.product-container {
/* 基础布局 */
.tencent-showcase {
background: white;
}
.ten_main {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Flex布局产品列表 */
.product-list {
.ten_links {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 30px;
list-style: none;
padding: 0;
margin: 0;
}
/* 每个产品项 */
.product-item {
flex: 1 1 300px; /* 最小宽度300px可伸缩 */
}
/* 产品卡片 */
.product-card {
display: flex;
flex-direction: column;
align-items: center; /* 新增:使卡片内所有元素水平居中 */
height: 100%;
border: 1px solid #eaecef;
border-radius: 8px;
/* 卡片容器 */
.ten_img {
position: relative;
display: block;
flex: 1;
text-decoration: none;
overflow: hidden;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.product-card:hover {
.ten_img:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* 产品图片 */
.product-image {
width: 180px; /* 根据原图比例调整 */
height: 180px;
object-fit: contain; /* 完整显示标志 */
background: transparent; /* 去除白色背景 */
padding: 0; /* 去除内边距 */
border: none !important; /* 强制去除边框 */
/* 图片样式 - 严格按第一张图要求 */
.tencent-image {
width: 100%;
height: 200px;
object-fit: contain;
object-position: center;
background-color: #f5f7fa;
/* padding: 20px; */
box-sizing: border-box;
transition: all 0.5s ease;
}
/* 产品信息区域 */
.product-info {
.image-hover {
filter: brightness(0.95);
background-color: #e3f2fd;
}
/* 文字区域 - 按第三张图效果 */
.ten_img_txt {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 20px;
flex-grow: 1;
background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
height: 80px;
display: flex;
flex-direction: column;
align-items: flex-end;
transition: all 0.3s ease;
}
.product-title {
margin: 0 0 10px 0;
font-size: 1.2rem;
color: #333;
.text-hover {
background: linear-gradient(to top, rgba(0,90,180,0.7), transparent);
}
.product-desc {
margin: 0 0 15px 0;
color: #666;
flex-grow: 1;
}
.product-link {
display: inline-block;
padding: 8px 16px;
background-color: #3eaf7c;
.ten_img_txt h2 {
border-top: none;
color: white;
text-decoration: none;
border-radius: 4px;
text-align: center;
transition: background-color 0.3s;
font-size: 22px;
margin: 0;
position: relative;
padding-bottom: 8px;
}
.product-link:hover {
background-color: #2d9f6b;
/* 悬浮时显示的下划线 - 按第三张图要求 */
.text-hover h2::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 60px;
height: 2px;
background: white;
}
/* 响应式调整 */
/* 响应式设计 */
@media (max-width: 768px) {
.product-list {
gap: 20px;
.ten_links {
flex-direction: column;
}
.product-item {
flex: 1 1 100%;
.ten_img {
margin-bottom: 20px;
}
.tencent-image {
height: 180px;
}
}
</style>