chore: initialize tuhui repository
This commit is contained in:
474
frontend/src/pages/WorkDetail.css
Normal file
474
frontend/src/pages/WorkDetail.css
Normal file
@@ -0,0 +1,474 @@
|
||||
.work-detail-page {
|
||||
min-height: 100vh;
|
||||
background: #f5f5f5;
|
||||
padding-top: 70px;
|
||||
}
|
||||
|
||||
.work-detail-container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* 面包屑 */
|
||||
.breadcrumb {
|
||||
padding: 16px 0;
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
color: #666;
|
||||
cursor: pointer;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.breadcrumb a:hover {
|
||||
color: #ff5a5a;
|
||||
}
|
||||
|
||||
.breadcrumb .current {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 主要内容区 */
|
||||
.work-detail-content {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
/* 左侧作品展示 */
|
||||
.work-main {
|
||||
flex: 1;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.work-image-wrapper {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.work-image {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* 相关标签 */
|
||||
.related-tags {
|
||||
margin-top: 32px;
|
||||
padding-top: 24px;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.related-tags h4 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 16px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.tags-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.work-tag {
|
||||
padding: 6px 16px;
|
||||
background: #f5f5f5;
|
||||
border: 1px solid #e8e8e8;
|
||||
border-radius: 20px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.work-tag:hover {
|
||||
background: #fff0f0;
|
||||
border-color: #ff5a5a;
|
||||
color: #ff5a5a;
|
||||
}
|
||||
|
||||
/* 猜你喜欢 */
|
||||
.related-works {
|
||||
margin-top: 32px;
|
||||
padding-top: 24px;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.related-works h3 {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 20px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.related-works-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.related-work-card {
|
||||
cursor: pointer;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
transition: transform 0.3s;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.related-work-card:hover {
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.related-work-image {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-top: 150%;
|
||||
overflow: hidden;
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
.related-work-image img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.related-work-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.related-work-card:hover .related-work-overlay {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.related-work-info {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.related-work-info h4 {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 8px;
|
||||
color: #333;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.related-work-designer {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.designer-level {
|
||||
color: #ff5a5a;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.designer-level-name {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.designer-name {
|
||||
margin-top: 4px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/* 右侧信息栏 */
|
||||
.work-sidebar {
|
||||
width: 380px;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
padding: 24px;
|
||||
position: sticky;
|
||||
top: 80px;
|
||||
}
|
||||
|
||||
/* 作品编号 */
|
||||
.work-id-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px;
|
||||
background: #f5f5f5;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.work-id {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* 作品标题 */
|
||||
.work-title {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* 作品信息列表 */
|
||||
.work-info-list {
|
||||
border-top: 1px solid #f0f0f0;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
padding: 16px 0;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.work-info-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 8px 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 操作按钮 */
|
||||
.work-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto auto;
|
||||
gap: 12px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.download-btn {
|
||||
background: linear-gradient(135deg, #ff5a5a 0%, #ff8080 100%);
|
||||
border: none;
|
||||
height: 44px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
box-shadow: 0 4px 12px rgba(255, 90, 90, 0.3);
|
||||
}
|
||||
|
||||
.download-btn:hover {
|
||||
background: linear-gradient(135deg, #ff7070 0%, #ff9090 100%) !important;
|
||||
}
|
||||
|
||||
.collect-btn,
|
||||
.share-btn {
|
||||
height: 44px;
|
||||
width: 44px;
|
||||
padding: 0;
|
||||
border-color: #e8e8e8;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.collect-btn.collected {
|
||||
color: #ff5a5a;
|
||||
border-color: #ff5a5a;
|
||||
}
|
||||
|
||||
.collect-btn:hover,
|
||||
.share-btn:hover {
|
||||
color: #ff5a5a;
|
||||
border-color: #ff5a5a;
|
||||
}
|
||||
|
||||
/* 设计师卡片 */
|
||||
.designer-card {
|
||||
padding: 20px;
|
||||
background: #fafafa;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.designer-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.designer-avatar {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
border: 2px solid #fff;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.designer-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.designer-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.designer-name-level {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.designer-level-badge {
|
||||
background: #ff5a5a;
|
||||
color: white;
|
||||
padding: 2px 8px;
|
||||
border-radius: 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.designer-level-text {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.designer-card .designer-name {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.designer-stats {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 16px 0;
|
||||
border-top: 1px solid #e8e8e8;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.designer-stats .stat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.follow-btn {
|
||||
height: 40px;
|
||||
background: #ff5a5a;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.follow-btn:hover {
|
||||
background: #ff7070 !important;
|
||||
}
|
||||
|
||||
.follow-btn.followed {
|
||||
background: #e8e8e8;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.follow-btn.followed:hover {
|
||||
background: #d0d0d0 !important;
|
||||
}
|
||||
|
||||
/* 搜索画板 */
|
||||
.board-search {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.board-search h4 {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.board-search-input {
|
||||
height: 40px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
/* 浏览统计 */
|
||||
.work-stats {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.work-stats .stat-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.work-stats .stat-item .anticon {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* 响应式 */
|
||||
@media (max-width: 1200px) {
|
||||
.work-detail-content {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.work-sidebar {
|
||||
width: 100%;
|
||||
position: static;
|
||||
}
|
||||
|
||||
.related-works-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.work-detail-container {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.related-works-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.work-actions {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.collect-btn,
|
||||
.share-btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user