项目启动流程和资产浏览器功能
This commit is contained in:
183
packages/editor-app/src/styles/StartupPage.css
Normal file
183
packages/editor-app/src/styles/StartupPage.css
Normal file
@@ -0,0 +1,183 @@
|
||||
.startup-page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
||||
color: #e0e0e0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.startup-header {
|
||||
text-align: center;
|
||||
padding: 60px 20px 40px;
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
|
||||
}
|
||||
|
||||
.startup-title {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.startup-subtitle {
|
||||
font-size: 1.2rem;
|
||||
color: #a0a0a0;
|
||||
margin: 10px 0 0;
|
||||
}
|
||||
|
||||
.startup-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.startup-actions {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
|
||||
.startup-action-btn {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
padding: 40px 60px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 2px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12px;
|
||||
color: #e0e0e0;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.startup-action-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.startup-action-btn.primary {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.startup-action-btn.primary:hover {
|
||||
background: linear-gradient(135deg, #7a8ef0 0%, #8a5cb2 100%);
|
||||
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
stroke-width: 2;
|
||||
}
|
||||
|
||||
.startup-recent {
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
.recent-title {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
margin: 0 0 20px;
|
||||
color: #f0f0f0;
|
||||
}
|
||||
|
||||
.recent-empty {
|
||||
text-align: center;
|
||||
color: #808080;
|
||||
padding: 40px;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.recent-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.recent-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
padding: 15px 20px;
|
||||
margin-bottom: 10px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.recent-item:hover,
|
||||
.recent-item.hovered {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-color: rgba(102, 126, 234, 0.5);
|
||||
transform: translateX(4px);
|
||||
}
|
||||
|
||||
.recent-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
color: #667eea;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.recent-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.recent-name {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 500;
|
||||
color: #f0f0f0;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.recent-path {
|
||||
font-size: 0.9rem;
|
||||
color: #808080;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.startup-footer {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.startup-version {
|
||||
color: #606060;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.startup-actions {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.startup-action-btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.startup-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user