This commit is contained in:
Alvin-Zilverstand committed 2026-10-26 23:40:31 +01:00
1 parent 3dbcb6b309
commit 46334326ae
2 files changed
+127 -52

No files matched your search

+48 -29
View File
@@ -3,18 +3,18 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Blog - My Name</title> <title>My Portfolio & Blog</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
</head> </head>
<body> <body>
<header class="header"> <header class="header">
<div class="container"> <div class="container">
<h1>My Modern Blog</h1> <h1>My Hub</h1>
<nav> <nav>
<ul> <ul>
<li><a href="#home">Home</a></li> <li><a href="#landing">Landing</a></li>
<li><a href="#about">About</a></li> <li><a href="#portfolio">Portfolio</a></li>
<li><a href="#posts">Posts</a></li> <li><a href="#blog">Blog</a></li>
<li><a href="#contact">Contact</a></li> <li><a href="#contact">Contact</a></li>
</ul> </ul>
</nav> </nav>
@@ -22,44 +22,63 @@
</header> </header>
<main class="container"> <main class="container">
<section id="home" class="hero-section"> <!-- 1. Landing Page Section -->
<h2>Latest Articles</h2> <section id="landing" class="content-section hero-section">
<div class="post-grid"> <h2>Welcome to My Digital Space</h2>
<article class="post-card"> <p>This is the main landing area. Discover my projects, read my latest articles, and see my professional work.</p>
<h3>First Post Title</h3> <a href="#portfolio" class="btn">View Portfolio</a>
<p>Dive into the latest insights and discoveries. This is placeholder content for the most recent article.</p> </section>
<small class="meta">Published on: October 26, 2026</small>
</article> <!-- 2. Portfolio Page Section -->
<article class="post-card"> <section id="portfolio" class="content-section portfolio-section">
<h3>Another Placeholder Article</h3> <h2>My Portfolio</h2>
<p>Explore deeper topics and gain new perspectives. This section holds more detailed information.</p> <div class="portfolio-grid">
<small class="meta">Published on: October 25, 2026</small> <div class="project-card">
</article> <h3>Project Alpha</h3>
<p>A brief description of a key project. Link to live demo/repo here.</p>
<a href="#">View Details</a>
</div>
<div class="project-card">
<h3>Project Beta</h3>
<p>Another impressive project showcasing my skills in [Skill 1] and [Skill 2].</p>
<a href="#">View Details</a>
</div>
<div class="project-card">
<h3>Project Gamma</h3>
<p>A third example demonstrating creative problem-solving.</p>
<a href="#">View Details</a>
</div>
</div> </div>
</section> </section>
<section id="about" class="content-section"> <!-- 3. Blog Page Section -->
<h2>About Me</h2> <section id="blog" class="content-section blog-section">
<p>Welcome to my corner of the internet! I share thoughts on technology, life, and creative pursuits. Feel free to explore!</p> <h2>My Blog</h2>
</section>
<section id="posts" class="content-section">
<h2>All Posts</h2>
<div class="post-list"> <div class="post-list">
<!-- More posts will be listed here --> <h3>Latest Articles</h3>
<p>No other posts found yet.</p> <article class="post-summary">
<h4>First Post Title</h4>
<p>Dive into the latest insights and discoveries. (October 26, 2026)</p>
<a href="#">Read More</a>
</article>
<article class="post-summary">
<h4>Another Placeholder Article</h4>
<p>Explore deeper topics and gain new perspectives. (October 25, 2026)</p>
<a href="#">Read More</a>
</article>
</div> </div>
</section> </section>
<!-- Contact Section -->
<section id="contact" class="content-section"> <section id="contact" class="content-section">
<h2>Get In Touch</h2> <h2>Contact Me</h2>
<p>I'm always open to new ideas. Reach me at <a href="mailto:your_email@example.com">your_email@example.com</a> or connect on social media.</p> <p>I'm always open to new ideas. Reach me at <a href="mailto:your_email@example.com">your_email@example.com</a> or connect on social media.</p>
</section> </section>
</main> </main>
<footer class="footer"> <footer class="footer">
<div class="container"> <div class="container">
<p>&copy; 2026 My Modern Blog. All rights reserved.</p> <p>&copy; 2026 My Modern Hub. All rights reserved.</p>
</div> </div>
</footer> </footer>
</body> </body>
+79 -23
View File
@@ -31,7 +31,7 @@ body {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
flex-wrap: wrap; /* For responsiveness */ flex-wrap: wrap;
} }
.header h1 { .header h1 {
@@ -58,14 +58,14 @@ nav ul li a:hover {
border-radius: 4px; border-radius: 4px;
} }
/* --- Main Content --- */ /* --- Main Content Sections --- */
main { main {
padding: 30px 0; padding: 30px 0;
min-height: 60vh; min-height: 80vh; /* Increased height for better section separation */
} }
.content-section { .content-section {
margin-bottom: 40px; margin-bottom: 50px;
padding: 20px 0; padding: 20px 0;
} }
@@ -73,47 +73,104 @@ main {
color: #2c3e50; color: #2c3e50;
border-bottom: 3px solid #3498db; /* Highlight color */ border-bottom: 3px solid #3498db; /* Highlight color */
padding-bottom: 10px; padding-bottom: 10px;
margin-bottom: 20px; margin-bottom: 25px;
font-size: 2rem; font-size: 2.2rem;
} }
/* Landing Page Specific Styles */
.hero-section { .hero-section {
text-align: center; text-align: center;
padding: 40px 0; padding: 60px 0;
background-color: #ecf0f1; background-color: #ecf0f1;
border-radius: 8px; border-radius: 10px;
margin-bottom: 30px;
} }
.post-grid { .hero-section p {
font-size: 1.1rem;
margin-bottom: 20px;
}
.btn {
display: inline-block;
background-color: #3498db;
color: white;
padding: 12px 25px;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s;
}
.btn:hover {
background-color: #2980b9;
}
/* Portfolio Specific Styles */
.portfolio-section {
background-color: #ffffff;
border-radius: 10px;
padding: 30px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.portfolio-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px; gap: 25px;
} }
.post-card { .project-card {
background-color: white; background-color: #f4f4f9;
border: 1px solid #ddd; border: 1px solid #ddd;
border-radius: 8px; border-radius: 8px;
padding: 20px; padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease; transition: transform 0.3s ease;
} }
.post-card:hover { .project-card:hover {
transform: translateY(-5px); transform: translateY(-8px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
} }
.post-card h3 { .project-card h3 {
color: #2980b9; color: #2c3e50;
margin-top: 0; margin-top: 0;
} }
.meta { /* Blog Specific Styles */
display: block; .blog-section {
margin-top: 15px; background-color: #ffffff;
font-size: 0.9em; border-radius: 10px;
color: #7f8c8d; padding: 30px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.post-list {
display: flex;
flex-direction: column;
gap: 20px;
}
.post-summary {
border-bottom: 1px solid #eee;
padding-bottom: 15px;
}
.post-summary h4 {
color: #3498db;
margin-top: 0;
}
.post-summary p {
color: #666;
}
.post-summary a {
color: #2c3e50;
text-decoration: none;
font-weight: bold;
} }
/* --- Footer --- */ /* --- Footer --- */
@@ -122,7 +179,6 @@ main {
color: white; color: white;
text-align: center; text-align: center;
padding: 1.5rem 0; padding: 1.5rem 0;
margin-top: 30px;
} }
.footer .container { .footer .container {