suna/backend/agent/workspace/styles.css

230 lines
4.0 KiB
CSS
Raw Normal View History

2025-04-01 09:26:52 +08:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: #f5f5f5;
2025-04-01 09:26:52 +08:00
display: flex;
justify-content: center;
2025-04-01 09:26:52 +08:00
align-items: center;
min-height: 100vh;
color: #333;
2025-04-01 09:26:52 +08:00
}
.container {
2025-04-01 09:26:52 +08:00
display: flex;
flex-direction: column;
align-items: center;
gap: 30px;
2025-04-01 09:26:52 +08:00
}
.card-container {
width: 350px;
height: 200px;
perspective: 1000px;
2025-04-01 09:26:52 +08:00
}
.card {
position: absolute;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.8s;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
padding: 20px;
2025-04-01 09:26:52 +08:00
}
.card.front {
background-color: var(--primary-color, #1a237e);
2025-04-01 10:36:26 +08:00
color: white;
display: flex;
flex-direction: column;
justify-content: space-between;
backface-visibility: hidden;
2025-04-01 09:26:52 +08:00
}
.card.back {
background-color: white;
transform: rotateY(180deg);
backface-visibility: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
2025-04-01 09:26:52 +08:00
}
.card-container.flipped .card.front {
transform: rotateY(180deg);
2025-04-01 09:26:52 +08:00
}
.card-container.flipped .card.back {
transform: rotateY(0deg);
2025-04-01 09:26:52 +08:00
}
.logo {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
2025-04-01 09:26:52 +08:00
}
.logo-symbol {
width: 40px;
height: 40px;
background-color: white;
color: var(--primary-color, #1a237e);
border-radius: 50%;
2025-04-01 09:26:52 +08:00
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
font-size: 24px;
font-family: 'Playfair Display', serif;
2025-04-01 09:26:52 +08:00
}
.logo-text {
font-size: 24px;
font-weight: 700;
letter-spacing: 2px;
2025-04-01 09:26:52 +08:00
}
.tagline {
font-size: 14px;
font-weight: 300;
letter-spacing: 1px;
margin-top: -5px;
2025-04-01 09:26:52 +08:00
}
.pattern {
position: absolute;
bottom: 0;
right: 0;
width: 150px;
height: 80px;
background: linear-gradient(135deg, transparent 25%, rgba(255, 255, 255, 0.1) 25%,
rgba(255, 255, 255, 0.1) 50%, transparent 50%,
transparent 75%, rgba(255, 255, 255, 0.1) 75%);
background-size: 20px 20px;
border-radius: 0 0 10px 0;
2025-04-01 09:26:52 +08:00
}
.info {
padding: 10px 0;
2025-04-01 09:26:52 +08:00
}
.name {
font-size: 18px;
font-weight: 600;
color: var(--primary-color, #1a237e);
letter-spacing: 1px;
2025-04-01 09:26:52 +08:00
}
.title {
font-size: 14px;
color: #666;
margin-bottom: 15px;
2025-04-01 09:26:52 +08:00
}
.divider {
width: 40px;
height: 3px;
background-color: var(--primary-color, #1a237e);
margin-bottom: 15px;
2025-04-01 09:26:52 +08:00
}
.contact {
font-size: 12px;
line-height: 1.6;
2025-04-01 09:26:52 +08:00
}
.contact p {
display: flex;
align-items: center;
gap: 8px;
2025-04-01 09:26:52 +08:00
}
.contact i {
color: var(--primary-color, #1a237e);
width: 15px;
2025-04-01 09:26:52 +08:00
}
.social-icons {
2025-04-01 09:26:52 +08:00
display: flex;
gap: 15px;
margin-top: 10px;
justify-content: flex-end;
padding: 0 10px 10px 0;
2025-04-01 09:26:52 +08:00
}
.social-icons i {
color: var(--primary-color, #1a237e);
font-size: 16px;
cursor: pointer;
transition: transform 0.3s;
2025-04-01 09:26:52 +08:00
}
.social-icons i:hover {
transform: translateY(-3px);
2025-04-01 09:26:52 +08:00
}
.controls {
2025-04-01 09:26:52 +08:00
display: flex;
flex-direction: column;
2025-04-01 09:26:52 +08:00
align-items: center;
gap: 15px;
2025-04-01 09:26:52 +08:00
}
#flip-btn {
background-color: var(--primary-color, #1a237e);
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-family: 'Montserrat', sans-serif;
font-weight: 500;
transition: background-color 0.3s;
2025-04-01 09:26:52 +08:00
}
#flip-btn:hover {
background-color: #0d1642;
2025-04-01 09:26:52 +08:00
}
.color-options {
2025-04-01 09:26:52 +08:00
display: flex;
2025-04-01 10:36:26 +08:00
gap: 10px;
2025-04-01 09:26:52 +08:00
}
.color-option {
width: 25px;
height: 25px;
2025-04-01 09:26:52 +08:00
border-radius: 50%;
cursor: pointer;
transition: transform 0.3s;
border: 2px solid white;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
2025-04-01 09:26:52 +08:00
}
.color-option:hover {
transform: scale(1.1);
2025-04-01 10:36:26 +08:00
}
@media (max-width: 400px) {
.card-container {
width: 300px;
height: 180px;
2025-04-01 10:36:26 +08:00
}
.logo-symbol {
width: 35px;
height: 35px;
font-size: 20px;
2025-04-01 09:26:52 +08:00
}
.logo-text {
font-size: 20px;
2025-04-01 09:26:52 +08:00
}
}