s
This commit is contained in:
1 parent
3dbcb6b309
commit
46334326ae
2 files changed
+127
-52
No files matched your search
+48
-29
@@ -3,18 +3,18 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<div class="container">
|
||||
<h1>My Modern Blog</h1>
|
||||
<h1>My Hub</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#home">Home</a></li>
|
||||
<li><a href="#about">About</a></li>
|
||||
<li><a href="#posts">Posts</a></li>
|
||||
<li><a href="#landing">Landing</a></li>
|
||||
<li><a href="#portfolio">Portfolio</a></li>
|
||||
<li><a href="#blog">Blog</a></li>
|
||||
<li><a href="#contact">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -22,44 +22,63 @@
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<section id="home" class="hero-section">
|
||||
<h2>Latest Articles</h2>
|
||||
<div class="post-grid">
|
||||
<article class="post-card">
|
||||
<h3>First Post Title</h3>
|
||||
<p>Dive into the latest insights and discoveries. This is placeholder content for the most recent article.</p>
|
||||
<small class="meta">Published on: October 26, 2026</small>
|
||||
</article>
|
||||
<article class="post-card">
|
||||
<h3>Another Placeholder Article</h3>
|
||||
<p>Explore deeper topics and gain new perspectives. This section holds more detailed information.</p>
|
||||
<small class="meta">Published on: October 25, 2026</small>
|
||||
</article>
|
||||
<!-- 1. Landing Page Section -->
|
||||
<section id="landing" class="content-section hero-section">
|
||||
<h2>Welcome to My Digital Space</h2>
|
||||
<p>This is the main landing area. Discover my projects, read my latest articles, and see my professional work.</p>
|
||||
<a href="#portfolio" class="btn">View Portfolio</a>
|
||||
</section>
|
||||
|
||||
<!-- 2. Portfolio Page Section -->
|
||||
<section id="portfolio" class="content-section portfolio-section">
|
||||
<h2>My Portfolio</h2>
|
||||
<div class="portfolio-grid">
|
||||
<div class="project-card">
|
||||
<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>
|
||||
</section>
|
||||
|
||||
<section id="about" class="content-section">
|
||||
<h2>About Me</h2>
|
||||
<p>Welcome to my corner of the internet! I share thoughts on technology, life, and creative pursuits. Feel free to explore!</p>
|
||||
</section>
|
||||
|
||||
<section id="posts" class="content-section">
|
||||
<h2>All Posts</h2>
|
||||
<!-- 3. Blog Page Section -->
|
||||
<section id="blog" class="content-section blog-section">
|
||||
<h2>My Blog</h2>
|
||||
<div class="post-list">
|
||||
<!-- More posts will be listed here -->
|
||||
<p>No other posts found yet.</p>
|
||||
<h3>Latest Articles</h3>
|
||||
<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>
|
||||
</section>
|
||||
|
||||
<!-- Contact 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>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>© 2026 My Modern Blog. All rights reserved.</p>
|
||||
<p>© 2026 My Modern Hub. All rights reserved.</p>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
+79
-23
@@ -31,7 +31,7 @@ body {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap; /* For responsiveness */
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
@@ -58,14 +58,14 @@ nav ul li a:hover {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* --- Main Content --- */
|
||||
/* --- Main Content Sections --- */
|
||||
main {
|
||||
padding: 30px 0;
|
||||
min-height: 60vh;
|
||||
min-height: 80vh; /* Increased height for better section separation */
|
||||
}
|
||||
|
||||
.content-section {
|
||||
margin-bottom: 40px;
|
||||
margin-bottom: 50px;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
@@ -73,47 +73,104 @@ main {
|
||||
color: #2c3e50;
|
||||
border-bottom: 3px solid #3498db; /* Highlight color */
|
||||
padding-bottom: 10px;
|
||||
margin-bottom: 20px;
|
||||
font-size: 2rem;
|
||||
margin-bottom: 25px;
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
/* Landing Page Specific Styles */
|
||||
.hero-section {
|
||||
text-align: center;
|
||||
padding: 40px 0;
|
||||
padding: 60px 0;
|
||||
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;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 25px;
|
||||
}
|
||||
|
||||
.post-card {
|
||||
background-color: white;
|
||||
.project-card {
|
||||
background-color: #f4f4f9;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 8px;
|
||||
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;
|
||||
}
|
||||
|
||||
.post-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
|
||||
.project-card:hover {
|
||||
transform: translateY(-8px);
|
||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.post-card h3 {
|
||||
color: #2980b9;
|
||||
.project-card h3 {
|
||||
color: #2c3e50;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.meta {
|
||||
display: block;
|
||||
margin-top: 15px;
|
||||
font-size: 0.9em;
|
||||
color: #7f8c8d;
|
||||
/* Blog Specific Styles */
|
||||
.blog-section {
|
||||
background-color: #ffffff;
|
||||
border-radius: 10px;
|
||||
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 --- */
|
||||
@@ -122,7 +179,6 @@ main {
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 1.5rem 0;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.footer .container {
|
||||
|
||||
Reference in new issue
Block a user