- Created responsive blog layout with hero section, navigation, and footer - Implemented modern CSS with gradients, animations, and mobile-first design - Added interactive JavaScript for mobile menu, smooth scrolling, and scroll effects - Created blog post structure with sample welcome post - Added Font Awesome icons and Google Fonts integration - Implemented modern blog card design with hover effects - Added about and contact sections for complete blog experience 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
439 lines
No EOL
7.6 KiB
CSS
439 lines
No EOL
7.6 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* Navigation */
|
|
.navbar {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
z-index: 1000;
|
|
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.nav-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 1rem 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-logo h2 {
|
|
color: #2563eb;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
list-style: none;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.nav-item {
|
|
list-style: none;
|
|
}
|
|
|
|
.nav-link {
|
|
text-decoration: none;
|
|
color: #333;
|
|
font-weight: 500;
|
|
transition: color 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: #2563eb;
|
|
}
|
|
|
|
.nav-link::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 2px;
|
|
bottom: -5px;
|
|
left: 0;
|
|
background-color: #2563eb;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.nav-link:hover::after {
|
|
width: 100%;
|
|
}
|
|
|
|
.hamburger {
|
|
display: none;
|
|
flex-direction: column;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.bar {
|
|
width: 25px;
|
|
height: 3px;
|
|
background-color: #333;
|
|
margin: 3px 0;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
/* Hero Section */
|
|
.hero {
|
|
height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero-bg {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0.1;
|
|
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-40v40zm40 0v-40h-40l40 40z'/%3E%3C/g%3E%3C/svg%3E");
|
|
}
|
|
|
|
.hero-content {
|
|
z-index: 2;
|
|
max-width: 600px;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 3.5rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
animation: fadeInUp 1s ease;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 1.2rem;
|
|
margin-bottom: 2rem;
|
|
opacity: 0.9;
|
|
animation: fadeInUp 1s ease 0.2s both;
|
|
}
|
|
|
|
.cta-button {
|
|
display: inline-block;
|
|
background: white;
|
|
color: #2563eb;
|
|
padding: 15px 30px;
|
|
text-decoration: none;
|
|
border-radius: 50px;
|
|
font-weight: 600;
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
animation: fadeInUp 1s ease 0.4s both;
|
|
}
|
|
|
|
.cta-button:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Sections */
|
|
.blog-section,
|
|
.about-section,
|
|
.contact-section {
|
|
padding: 80px 0;
|
|
}
|
|
|
|
.section-title {
|
|
text-align: center;
|
|
font-size: 2.5rem;
|
|
font-weight: 600;
|
|
margin-bottom: 3rem;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.section-title::after {
|
|
content: '';
|
|
display: block;
|
|
width: 50px;
|
|
height: 3px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
margin: 1rem auto;
|
|
}
|
|
|
|
/* Blog Grid */
|
|
.blog-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
gap: 2rem;
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
.blog-card {
|
|
background: white;
|
|
border-radius: 15px;
|
|
overflow: hidden;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.blog-card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.blog-image {
|
|
height: 200px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.placeholder-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 3rem;
|
|
}
|
|
|
|
.blog-content {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.blog-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.blog-date {
|
|
color: #6b7280;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.blog-tag {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.blog-content h3 {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.blog-content p {
|
|
color: #6b7280;
|
|
margin-bottom: 1rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.read-more {
|
|
color: #2563eb;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.read-more:hover {
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.read-more.disabled {
|
|
color: #9ca3af;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* About Section */
|
|
.about-section {
|
|
background: #f9fafb;
|
|
}
|
|
|
|
.about-content {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.about-text p {
|
|
font-size: 1.1rem;
|
|
color: #4b5563;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.about-links {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.social-link {
|
|
width: 50px;
|
|
height: 50px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
font-size: 1.2rem;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.social-link:hover {
|
|
transform: translateY(-3px) scale(1.1);
|
|
}
|
|
|
|
/* Contact Section */
|
|
.contact-section {
|
|
text-align: center;
|
|
}
|
|
|
|
.contact-text {
|
|
font-size: 1.1rem;
|
|
color: #4b5563;
|
|
margin-bottom: 2rem;
|
|
max-width: 500px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.contact-button {
|
|
display: inline-block;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 15px 30px;
|
|
text-decoration: none;
|
|
border-radius: 50px;
|
|
font-weight: 600;
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.contact-button:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background: #1f2937;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media screen and (max-width: 768px) {
|
|
.nav-menu {
|
|
position: fixed;
|
|
left: -100%;
|
|
top: 70px;
|
|
flex-direction: column;
|
|
background-color: white;
|
|
width: 100%;
|
|
text-align: center;
|
|
transition: 0.3s;
|
|
box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
.nav-menu.active {
|
|
left: 0;
|
|
}
|
|
|
|
.hamburger {
|
|
display: flex;
|
|
}
|
|
|
|
.hamburger.active .bar:nth-child(2) {
|
|
opacity: 0;
|
|
}
|
|
|
|
.hamburger.active .bar:nth-child(1) {
|
|
transform: translateY(8px) rotate(45deg);
|
|
}
|
|
|
|
.hamburger.active .bar:nth-child(3) {
|
|
transform: translateY(-8px) rotate(-45deg);
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.blog-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.container {
|
|
padding: 0 15px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 480px) {
|
|
.hero h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.blog-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.blog-card {
|
|
margin: 0 10px;
|
|
}
|
|
} |