Features of this About Us page:
1. Responsive Design: Works on mobile, tablet, and desktop
2. Clean Layout: Organized sections for story, team, and values
3. Interactive Elements:
- Back-to-top button that appears when scrolling
- Smooth animations for team members as they come into view
- Hover effects on team member cards
4. Professional Appearance**: Modern color scheme and typography
5. Easy to Customize: Replace placeholder images and text with your own content
To use this page:
1. Copy the entire code
2. Save it as `about.html`
3. Open in any web browser
4. Customize the text, images, and colors to match your brand
You can replace the placeholder image URLs with your own images by changing the `src` attributes in the `` tags.
/* CSS Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}
body {
background-color: #f8f9fa;
color: #333;
line-height: 1.6;
}
header {
background-color: #2c3e50;
color: white;
padding: 2rem 0;
text-align: center;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.subtitle {
font-size: 1.2rem;
opacity: 0.9;
}
.about-section {
padding: 4rem 0;
}
.about-content {
display: flex;
flex-wrap: wrap;
gap: 2rem;
align-items: center;
margin-bottom: 3rem;
}
.about-text {
flex: 1;
min-width: 300px;
}
.about-image {
flex: 1;
min-width: 300px;
text-align: center;
}
.about-image img {
max-width: 100%;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
h2 {
font-size: 2rem;
margin-bottom: 1.5rem;
color: #2c3e50;
}
p {
margin-bottom: 1.5rem;
}
.team-section {
background-color: white;
padding: 4rem 0;
}
.team-members {
display: flex;
flex-wrap: wrap;
gap: 2rem;
justify-content: center;
}
.team-member {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
width: 280px;
text-align: center;
transition: transform 0.3s ease;
}
.team-member:hover {
transform: translateY(-10px);
}
.member-image {
height: 200px;
overflow: hidden;
}
.member-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.member-info {
padding: 1.5rem;
}
.member-info h3 {
margin-bottom: 0.5rem;
color: #2c3e50;
}
.member-info p {
color: #7f8c8d;
font-style: italic;
}
.values-section {
padding: 4rem 0;
}
.values-list {
display: flex;
flex-wrap: wrap;
gap: 2rem;
}
.value-card {
flex: 1;
min-width: 250px;
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
text-align: center;
}
.value-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
color: #3498db;
}
footer {
background-color: #2c3e50;
color: white;
text-align: center;
padding: 2rem 0;
margin-top: 2rem;
}
.back-to-top {
display: none;
position: fixed;
bottom: 20px;
right: 20px;
background-color: #3498db;
color: white;
width: 50px;
height: 50px;
border-radius: 50%;
text-align: center;
line-height: 50px;
font-size: 1.5rem;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
z-index: 99;
}
.back-to-top:hover {
background-color: #2980b9;
}
@media (max-width: 768px) {
.about-content {
flex-direction: column;
}
.team-member {
width: 100%;
max-width: 350px;
}
}
// Back to top button functionality
const backToTopButton = document.getElementById('backToTop');
window.addEventListener('scroll', () => {
if (window.pageYOffset > 300) {
backToTopButton.style.display = 'block';
} else {
backToTopButton.style.display = 'none';
}
});
backToTopButton.addEventListener('click', () => {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// Simple animation for team members when they come into view
const teamMembers = document.querySelectorAll('.team-member');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = 1;
entry.target.style.transform = 'translateY(0)';
}
});
}, { threshold: 0.1 });
teamMembers.forEach(member => {
member.style.opacity = 0;
member.style.transform = 'translateY(20px)';
member.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
observer.observe(member);
});
إرسال تعليق
Thank you
Learning robo team