前端项目 --- 博客系统

本文详细介绍了如何构建一个前端博客系统,包括导航栏的设计,博客主页、详情、登录和编辑界面的实现。在导航栏部分,提到了前端代码的实现;博客主页和详情页分别使用了不同的CSS样式;登录界面和编辑界面也进行了说明,编辑界面采用了开源的Markdown编辑器Editor.md。
摘要由CSDN通过智能技术生成

文章目录

1. 博客系统

本博客分为四个页面

  • 博客登录界面
    在这里插入图片描述

  • 博客主页界面
    在这里插入图片描述

  • 博客编辑界面
    在这里插入图片描述

  • 博客详情界面
    在这里插入图片描述

1.1 导航栏

可以看出文章界面中都有共同的导航栏.
导航栏的前端代码:

    <div class="nav">
        <img src="../image/头像.jpg" alt="头像">
        <span class="title">我的博客系统</span>
        <a href="home.html">主页</a>
        <a href="edit.html">创作</a>
        <a href="login.html">注销</a>
    </div>

common.css

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* background-image: url(../image/1.jpg); */
}
html,body{
    height: 100%;
    background-image: url(../image/1.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.nav {
    width: 100%;
    height: 50px;
    background-color: rgba(54, 54, 54,0.36);
    display: flex;
    justify-content: left;
    align-items: center;
}
.nav img {
    width: 40px;
    height: 40px;
    margin: 0 10px 0 20px;
    border-radius: 50%;
}
.nav .title{
    width:83%;
    color:white;
}
.nav a{
    width: 50px;
    color:white;
    text-decoration: none;
}

.parent{
    width: 1000px;
    height: calc(100% - 50px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.parent .left{
    height: 100%;
    width: 200px;
}
.parent .right {
    height: 100%;
    width: 795px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 10px;
}
.left .card{
    background-color: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 30px;
}
.left .card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 10px;
}
.left .card .name{
    display: block;

    font-size: 30px;
    font-weight: 700;
    text-align: center;
    padding: 5px;
}
.left .card a{
    display: block;
    width: 140px;
    text-decoration: none;
    color: gray;
    text-align: center;
    padding: 5px;
}
.left .card .one {
    display: flex;
    justify-content:  space-around;
    align-items: center;
    padding: 10px;
}

在这里插入图片描述

1.2 博客主页界面

home.html

<!DOCTYPE html>
<html lang="e
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值