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

295 lines
4.9 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
}
2024-11-18 08:38:31 +08:00
*,
*::before,
*::after {
2024-11-13 21:28:28 +08:00
margin: 0;
padding: 0;
box-sizing: border-box;
2024-11-18 08:38:31 +08:00
scroll-behavior: smooth;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.8s ease-out forwards;
opacity: 0;
2024-11-13 21:28:28 +08:00
}
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%;
2024-11-18 08:38:31 +08:00
top: 0;
left: 0;
2024-11-18 06:36:37 +08:00
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 08:38:31 +08:00
.logo {
2024-11-18 06:36:37 +08:00
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 08:38:31 +08:00
.nav-links {
2024-11-13 21:28:28 +08:00
display: flex;
2024-11-18 08:38:31 +08:00
align-items: center;
gap: 1.5rem;
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
.nav-links 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 08:38:31 +08:00
.nav-links a:hover {
2024-11-18 06:36:37 +08:00
color: var(--primary-color);
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
.cta-button {
background-color: var(--primary-color);
color: white;
padding: 0.5rem 1rem;
border-radius: 4px;
}
.mobile-menu {
display: none;
flex-direction: column;
cursor: pointer;
}
.mobile-menu span {
width: 25px;
height: 3px;
background-color: var(--text-color);
margin: 2px 0;
transition: 0.4s;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.hero {
2024-11-18 08:38:31 +08:00
height: 100vh;
2024-11-18 06:36:37 +08:00
display: flex;
align-items: center;
2024-11-18 08:38:31 +08:00
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
2024-11-18 06:36:37 +08:00
text-align: center;
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
.hero-content {
max-width: 800px;
margin: 0 auto;
padding: 0 5%;
}
.hero h1 {
2024-11-18 06:36:37 +08:00
font-size: 3rem;
margin-bottom: 1rem;
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
.hero p {
2024-11-18 06:36:37 +08:00
font-size: 1.2rem;
margin-bottom: 2rem;
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
.primary-button {
2024-11-18 06:36:37 +08:00
display: inline-block;
2024-11-18 08:38:31 +08:00
background-color: white;
color: var(--primary-color);
2024-11-18 06:36:37 +08:00
padding: 0.75rem 1.5rem;
text-decoration: none;
2024-11-18 08:38:31 +08:00
border-radius: 4px;
font-weight: bold;
2024-11-18 06:36:37 +08:00
transition: background-color 0.3s ease;
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
.primary-button:hover {
background-color: #f4f4f4;
2024-11-13 21:28:28 +08:00
}
2024-11-18 06:36:37 +08:00
.features {
2024-11-18 08:38:31 +08:00
padding: 4rem 5%;
background-color: white;
}
2024-11-18 06:36:37 +08:00
.feature-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
2024-11-18 08:38:31 +08:00
max-width: 1200px;
margin: 0 auto;
}
2024-11-18 06:36:37 +08:00
.feature {
text-align: center;
padding: 2rem;
2024-11-18 08:38:31 +08:00
background-color: var(--background-color);
border-radius: 8px;
transition: transform 0.3s ease;
}
2024-11-18 08:38:31 +08:00
.feature:hover {
transform: translateY(-10px);
}
.feature-icon {
width: 64px;
height: 64px;
fill: var(--primary-color);
2024-11-18 06:36:37 +08:00
margin-bottom: 1rem;
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
footer {
background-color: var(--text-color);
color: white;
padding: 2rem;
}
2024-11-13 21:28:28 +08:00
2024-11-18 08:38:31 +08:00
.footer-content {
max-width: 1200px;
2024-11-18 06:36:37 +08:00
margin: 0 auto;
2024-11-18 08:38:31 +08:00
display: flex;
flex-direction: column;
align-items: center;
}
2024-11-13 21:28:28 +08:00
2024-11-18 08:38:31 +08:00
.footer-links {
display: flex;
gap: 1.5rem;
2024-11-18 06:36:37 +08:00
margin-bottom: 1rem;
}
2024-11-13 21:28:28 +08:00
2024-11-18 08:38:31 +08:00
.footer-links a {
2024-11-18 06:36:37 +08:00
color: white;
2024-11-18 08:38:31 +08:00
text-decoration: none;
transition: color 0.3s ease;
}
2024-11-13 21:28:28 +08:00
2024-11-18 08:38:31 +08:00
.footer-links a:hover {
color: var(--primary-color);
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
.about {
padding: 4rem 5%;
background-color: white;
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
.about-content {
max-width: 1200px;
margin: 0 auto;
}
2024-11-18 08:38:31 +08:00
.about-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: center;
}
2024-11-13 21:28:28 +08:00
2024-11-18 08:38:31 +08:00
.about-text p {
margin-bottom: 1rem;
line-height: 1.6;
}
2024-11-18 08:38:31 +08:00
.about-image img {
width: 100%;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
2024-11-18 08:38:31 +08:00
.contact {
background-color: var(--background-color);
padding: 4rem 5%;
}
2024-11-18 08:38:31 +08:00
.contact-container {
max-width: 600px;
margin: 0 auto;
text-align: center;
}
2024-11-18 08:38:31 +08:00
.contact-form {
display: flex;
2024-11-18 06:36:37 +08:00
flex-direction: column;
2024-11-18 08:38:31 +08:00
gap: 1rem;
background-color: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
2024-11-18 08:38:31 +08:00
.contact-form input,
.contact-form textarea {
padding: 0.75rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}
2024-11-18 08:38:31 +08:00
.contact-form textarea {
min-height: 150px;
resize: vertical;
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
.submit-button {
background-color: var(--primary-color);
color: white;
border: none;
padding: 0.75rem;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
2024-11-18 08:38:31 +08:00
.submit-button:hover {
background-color: #2980b9;
2024-11-13 21:28:28 +08:00
}
2024-11-18 08:38:31 +08:00
@media screen and (max-width: 768px) {
.nav-links {
display: none;
}
.mobile-menu {
display: flex;
}
.feature-grid,
.about-grid {
grid-template-columns: 1fr;
}
2024-11-18 08:38:31 +08:00
.hero h1 {
font-size: 2rem;
}
.about-image {
margin-top: 1rem;
}
2024-11-13 21:28:28 +08:00
}