suna/agentpress/examples/example_agent/workspace/styles.css

237 lines
4.0 KiB
CSS
Raw Normal View History

2024-11-13 21:28:28 +08:00
:root {
2024-11-18 06:36:37 +08:00
--primary-color: #3498db;
--secondary-color: #2ecc71;
--text-color: #333;
--background-color: #f4f4f4;
2024-11-13 21:28:28 +08:00
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
2024-11-13 21:28:28 +08:00
line-height: 1.6;
2024-11-18 06:36:37 +08:00
color: var(--text-color);
background-color: var(--background-color);
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
header {
position: fixed;
width: 100%;
background-color: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 1000;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
nav {
2024-11-13 21:28:28 +08:00
display: flex;
justify-content: space-between;
align-items: center;
2024-11-18 06:36:37 +08:00
padding: 1rem 5%;
max-width: 1200px;
margin: 0 auto;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
nav .logo {
font-size: 1.5rem;
2024-11-13 21:28:28 +08:00
font-weight: bold;
2024-11-18 06:36:37 +08:00
color: var(--primary-color);
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
nav ul {
2024-11-13 21:28:28 +08:00
display: flex;
list-style: none;
}
2024-11-18 06:36:37 +08:00
nav ul li {
margin-left: 1.5rem;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
nav ul li a {
2024-11-13 21:28:28 +08:00
text-decoration: none;
2024-11-18 06:36:37 +08:00
color: var(--text-color);
2024-11-13 21:28:28 +08:00
transition: color 0.3s ease;
}
2024-11-18 06:36:37 +08:00
nav ul li a:hover {
color: var(--primary-color);
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
main {
max-width: 1200px;
margin: 0 auto;
padding: 0 5%;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.hero {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
text-align: center;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.hero-content h1 {
font-size: 3rem;
margin-bottom: 1rem;
color: var(--primary-color);
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.hero-content p {
font-size: 1.2rem;
margin-bottom: 2rem;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.cta-button {
display: inline-block;
padding: 0.75rem 1.5rem;
background-color: var(--primary-color);
color: white;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.cta-button:hover {
background-color: #2980b9;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.features {
padding: 4rem 0;
}
2024-11-18 06:36:37 +08:00
.feature-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
2024-11-18 06:36:37 +08:00
.feature {
text-align: center;
padding: 2rem;
background-color: white;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
2024-11-18 06:36:37 +08:00
.feature h3 {
margin-bottom: 1rem;
color: var(--primary-color);
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.about, .contact {
padding: 4rem 0;
text-align: center;
}
2024-11-13 21:28:28 +08:00
2024-11-18 06:36:37 +08:00
.contact-form {
max-width: 500px;
margin: 0 auto;
}
2024-11-13 21:28:28 +08:00
2024-11-18 06:36:37 +08:00
.contact-form input,
.contact-form textarea {
width: 100%;
padding: 0.75rem;
margin-bottom: 1rem;
border: 1px solid #ddd;
border-radius: 5px;
}
2024-11-13 21:28:28 +08:00
2024-11-18 06:36:37 +08:00
.contact-form button {
background-color: var(--secondary-color);
color: white;
border: none;
2024-11-18 06:36:37 +08:00
padding: 0.75rem 1.5rem;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
2024-11-13 21:28:28 +08:00
2024-11-18 06:36:37 +08:00
.contact-form button:hover {
background-color: #27ae60;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
footer {
background-color: var(--text-color);
color: white;
text-align: center;
padding: 1rem;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
@media screen and (max-width: 768px) {
.menu-toggle {
display: block;
cursor: pointer;
}
2024-11-18 06:36:37 +08:00
.nav-menu {
display: none;
flex-direction: column;
width: 100%;
position: absolute;
top: 60px;
left: 0;
background-color: white;
padding: 1rem;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
2024-11-13 21:28:28 +08:00
2024-11-18 06:36:37 +08:00
.nav-menu.active {
display: flex;
}
2024-11-18 06:36:37 +08:00
.nav-menu li {
margin: 0.5rem 0;
text-align: center;
}
2024-11-18 06:36:37 +08:00
.feature-grid {
grid-template-columns: 1fr;
}
2024-11-18 06:36:37 +08:00
.hero-content h1 {
font-size: 2rem;
}
}
2024-11-18 06:36:37 +08:00
.menu-toggle {
display: none;
flex-direction: column;
width: 25px;
}
2024-11-18 06:36:37 +08:00
.menu-toggle span {
height: 3px;
width: 100%;
background-color: var(--text-color);
margin: 3px 0;
transition: 0.4s;
}
2024-11-18 06:36:37 +08:00
.feature-icon {
width: 50px;
height: 50px;
stroke: var(--primary-color);
margin-bottom: 1rem;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
2024-11-18 06:36:37 +08:00
.feature {
animation: fadeIn 0.5s ease-out;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.feature:nth-child(2) {
animation-delay: 0.2s;
}
2024-11-18 06:36:37 +08:00
.feature:nth-child(3) {
animation-delay: 0.4s;
2024-11-13 21:28:28 +08:00
}