HTML+CSS实现奇特的的企业官网效果

简介: HTML+CSS实现奇特的的企业官网效果

效果




完整代码

HTML部分

<div class="container">
        <header class="header">
            <div class="logo">某某某公司</div>
            <nav class="nav-menu">
                <a href="#" class="nav-item">项目资料</a>
                <a href="#" class="nav-item">商业资讯</a>
                <a href="#" class="nav-item">专家顾问</a>
                <a href="#" class="nav-item">服务介绍</a>
                <a href="#" class="nav-item">联系我们</a>
            </nav>
           
        </header>
        
        <div class="main-content">
            <section class="hero">
                <div class="hero-content">
                    <h1>您专属的融资中心</h1>
                    <p>一站式融资解决方案,精准政府、银行、资本市场三大资源渠道</p>
                    <div class="cta-buttons">
                        <a href="#" class="cta-button">产品服务手册</a>
                        <a href="#" class="cta-button">免费咨询</a>
                    </div>
                </div>
            </section>
            <section class="login-section">
                <form class="login-form">
                    <input type="text" placeholder="手机号/用户名">
                    <input type="password" placeholder="密码">
                    <button class="login-button">登 录</button>
                </form>
                <div class="social-login">
                    <a href="#">社交账号登录</a>
                    <a href="#">忘记密码?</a>
                </div>
            </section>
        </div>
        
        <div class="stats">
            <div class="stat-item">
                <div class="stat-number">2,903亿</div>
                <div class="stat-label">融资金额</div>
            </div>
            <div class="stat-item">
                <div class="stat-number">230+</div>
                <div class="stat-label">合作企业</div>
            </div>
            <div class="stat-item">
                <div class="stat-number">1,000+</div>
                <div class="stat-label">成功项目</div>
            </div>
        </div>
        
        <div class="icons">
            <div class="icon-item">
                <div class="icon-circle">
                    <img src="./img/0901.png" alt="扶持补贴">
                </div>
                <div class="icon-label">扶持补贴</div>
            </div>
            <div class="icon-item">
                <div class="icon-circle">
                    <img src="./img/0901.png" alt="专项资金">
                </div>
                <div class="icon-label">专项资金</div>
            </div>
            <div class="icon-item">
                <div class="icon-circle">
                    <img src="./img/0901.png" alt="政府资金">
                </div>
                <div class="icon-label">政府资金</div>
            </div>
        </div>
    </div>

CSS部分


@keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes slideIn {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        body, html {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            height: 100%;
        }
        .container {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .header {
            background-color: white;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e0e0e0;
            animation: fadeIn 0.5s ease-out;
        }
        .logo {
            color: #ff6600;
            font-size: 24px;
            font-weight: bold;
        }
        .nav-menu {
            display: flex;
        }
        .nav-item {
            margin-left: 20px;
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .nav-item:hover {
            color: #ff6600;
        }
        .user-actions {
            display: flex;
            align-items: center;
        }
        .user-actions a {
            margin-left: 20px;
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .user-actions a:hover {
            color: #ff6600;
        }
        .main-content {
            flex: 1;
            display: flex;
            background-image: url('./img/012.jpg');
            background-size: cover;
            background-position: center;
        }
        .hero {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-left: 50px;
            color: white;
        }
        .hero-content {
            animation: slideIn 0.8s ease-out;
        }
        .hero-content h1 {
            font-size: 36px;
            margin-bottom: 10px;
        }
        .hero-content p {
            font-size: 18px;
            margin-bottom: 20px;
            max-width: 600px;
        }
        .cta-buttons {
            display: flex;
            margin-bottom: 40px;
        }
        .cta-button {
            background-color: #ff6600;
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 4px;
            margin-right: 10px;
            transition: background-color 0.3s ease;
        }
        .cta-button:hover {
            background-color: #e55b00;
        }
        .login-section {
            width: 300px;
            background-color: rgba(255, 255, 255, 0.9);
            padding: 20px;
            align-self: center;
            margin-right: 50px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            animation: fadeIn 1s ease-out 0.5s both;
        }
        .login-form input {
            display: block;
            margin-bottom: 15px;
            padding: 10px;
            width: 100%;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .login-button {
            background-color: #ff6600;
            color: white;
            border: none;
            padding: 12px;
            width: 100%;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.3s ease;
        }
        .login-button:hover {
            background-color: #e55b00;
        }
        .social-login {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
        }
        .social-login a {
            color: #666;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }
        .social-login a:hover {
            color: #ff6600;
        }
        .stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            width: 1200px;
            margin: 0 auto;
            margin-top:-20px;
            background-color: #fff;
            padding: 25px 20px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .stat-item {
            text-align: center;
        }
        .stat-number {
            font-size: 24px;
            font-weight: bold;
            color: #ff6600;
        }
        .stat-label {
            font-size: 14px;
            color: #666;
        }
        .icons {
            display: flex;margin-top: 60px;;
            justify-content: space-around;
            text-align: center;
            
            padding-bottom: 40px;
        }
        .icon-item {
            width: 100px;
        }
        .icon-circle {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 2px solid #ccc;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
        }
        .icon-circle img {
            width: 40px;
            height: 40px;
        }
        .icon-label {
            font-size: 14px;
            color: #333;
        }
         /* 新增的关键帧动画 */
    @keyframes fadeInIcon {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    /* 修改 .icon-item 的样式 */
    .icon-item {
        width: 100px;
        animation: fadeInIcon 0.5s ease-in-out;
    }
    /* 为每个 .icon-item 设置不同的延迟时间 */
    .icon-item:nth-child(1) {
        animation-delay: 0.1s;
    }
    .icon-item:nth-child(2) {
        animation-delay: 0.3s;
    }
    .icon-item:nth-child(3) {
        animation-delay: 0.5s;
    }
相关文章
|
29天前
|
移动开发 前端开发 JavaScript
征信报告修改器,征信报告生成器,制作软件无痕修改软件【js+html+css】
本项目为信用评分模拟器教学工具,采用HTML5实现,仅供学习参考。核心功能通过JavaScript构建,包含虚拟数据生成、权重分配及信用因素分析(如还款记录、信用使用率等)。
|
29天前
|
存储 自然语言处理 前端开发
抖音快手小红书虚拟评论截图生成器,模拟对话制作工具,html+js+css
这是一款纯前端实现的多平台虚拟评论生成器,支持抖音、快手、小红书风格,适用于产品演示与UI设计。采用Vanilla JS与Flexbox布局,利用IndexedDB存储数据,CSS Variables切换主题。
|
29天前
|
前端开发 JavaScript
个人征信电子版无痕修改, 个人信用报告pdf修改,js+html+css即可实现【仅供学习用途】
本代码展示了一个信用知识学习系统的前端实现,包含评分计算、因素分析和建议生成功能。所有数据均为模拟生成
|
29天前
|
存储 前端开发 安全
病历单生成器在线制作,病历单生成器app,HTML+CSS+JS恶搞工具
本项目为医疗病历模拟生成器,旨在为医学教学和软件开发测试提供数据支持,严格遵守《医疗机构病历管理规定》。
|
28天前
|
存储 前端开发 JavaScript
仿真银行app下载安装, 银行卡虚拟余额制作app,用html+css+js实现逼真娱乐工具
这是一个简单的银行账户模拟器项目,用于学习前端开发基础。用户可进行存款、取款操作,所有数据存储于浏览器内存中
|
29天前
|
前端开发 容器
处方单图片生成器, 处方单在线制作免费,js+css+html恶搞神器
这是一个电子处方模拟生成系统,使用html2canvas库实现图片导出功能。系统生成的处方单包含多重防伪标识,并明确标注为模拟数据,仅供学习
|
29天前
|
前端开发
个人征信PDF无痕修改软件,个人征信模板可编辑,个人征信报告p图神器【js+html+css仅供学习用途】
这是一款信用知识学习系统,旨在帮助用户了解征信基本概念、信用评分计算原理及信用行为影响。系统通过模拟数据生成信用报告,涵盖还款记录
|
29天前
|
前端开发 JavaScript 容器
制作b超单生成器, 假怀孕b超单图片制作, p图医院证明【css+html+js装逼恶搞神器】
本资源提供一个适合用于熟人之间恶搞的工具,效果逼真,仅供学习参考与娱乐。包含前端技术学习要点:语义化布局、响应式设计、Flexbox、图片自适应
|
5月前
|
前端开发
【2025优雅草开源计划进行中01】-针对web前端开发初学者使用-优雅草科技官网-纯静态页面html+css+JavaScript可直接下载使用-开源-首页为优雅草吴银满工程师原创-优雅草卓伊凡发布
【2025优雅草开源计划进行中01】-针对web前端开发初学者使用-优雅草科技官网-纯静态页面html+css+JavaScript可直接下载使用-开源-首页为优雅草吴银满工程师原创-优雅草卓伊凡发布
141 1
【2025优雅草开源计划进行中01】-针对web前端开发初学者使用-优雅草科技官网-纯静态页面html+css+JavaScript可直接下载使用-开源-首页为优雅草吴银满工程师原创-优雅草卓伊凡发布

热门文章

最新文章