个人简历css

这篇具有很好参考价值的文章主要介绍了个人简历css。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.css">
    <style>
        @import url("https://fonts.googleapis.com/css?family=Raleway&display=swap");
         :root {
            /* 主蓝色,按钮,社交图标 */
            --primary-color: #71b3dd;
            /* 主蓝色,深,导航 */
            --primary-dark-color: #4489b5;
            --text-color-gray: #8b979f;
            --text-color-light-gray: #c1c7cb;
            --text-color-dark-gray: #5a6f7c;
        }
        
        * {
            margin: 0;
            padding: 0;
            font-size: 14px;
            box-sizing: border-box;
            font-family: "Raleway", "PingFang SC", "Microsoft Yahei", sans-serif;
        }
        
        .wrapper {
            /* 栅格布局,居中卡片 */
            display: grid;
            align-items: center;
            justify-content: center;
            height: 100vh;
        }
        
        .profile-card {
            display: grid;
            /* 12格栅格 */
            grid-template-columns: repeat(12, 1fr);
            /* 每个列之间的空隙是12px */
            column-gap: 12px;
            /* 卡片总宽度为627px */
            width: 627px;
            /* 卡片总高度为374px */
            height: 374px;
            box-shadow: 0px 0px 22px 3px rgba(0, 0, 0, 0.18);
        }
        
        .profile-image {
            /* 图片占5 */
            grid-column: 8 / 13;
            max-width: 238px;
            height: 100%;
            /* 隐藏图片超出区域 */
            overflow: hidden;
            /* 垂直为靠上对齐 */
            align-self: start;
            /* 水平为靠右对齐 */
            justify-self: end;
        }
        
        .profile-image img {
            /* 图片放大,然后只显示一部分 */
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .content {
            /* 左边内容占7 */
            grid-column: 1 / 8;
            padding: 38px 28px 20px 33px;
            position: relative;
        }
        
        nav {
            margin-bottom: 24px;
            display: flex;
            position: relative;
        }
        
        nav a {
            color: var(--text-color-gray);
            text-decoration: none;
        }
        
        nav a.active {
            color: var(--primary-dark-color);
        }
        
        nav a:not(:last-child) {
            margin-right: 40px;
        }
        
        nav .indicator {
            height: 2px;
            background: var(--primary-dark-color);
            bottom: -7px;
            left: 0;
            position: absolute;
            transition: 0.4s;
        }
        
        .content section {
            /* 堆叠个人简介和工作经历部分 */
            position: absolute;
            /* 默认都不显示  */
            opacity: 0;
            /* 淡出淡入效果 */
            transition: 0.3s ease-out;
        }
        
        .content section.active-section {
            /* 显示active-section */
            opacity: 1;
        }
        /* 名字、身份与关注按钮左右布局,各占一列,子栅格不受父栅格影响,是个全新的栅格布局 */
        
        .personal-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }
        /* 名字 */
        
        .title h1 {
            font-size: 2em;
            font-weight: 500;
        }
        /* 身份 */
        
        .title p {
            color: var(--text-color-gray);
            font-size: 1em;
            margin: 6px 0 18px 0;
        }
        /* 关注按钮 */
        
        .follow-btn {
            justify-self: end;
            height: 30px;
            background: var(--primary-color);
            border: none;
            color: white;
            padding: 0 27px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 30px;
        }
        /* 关注按钮的加号 */
        
        .follow-btn .fas {
            font-size: 10px;
            margin-right: 6px;
        }
        /* 关于我部分 */
        
        .about-me {
            color: var(--text-color-dark-gray);
            font-weight: 300;
            text-align: justify;
        }
        /* 社交按钮部分 */
        
        footer {
            margin-top: 70px;
        }
        
        footer ul {
            display: flex;
        }
        
        footer ul li {
            list-style: none;
        }
        
        footer ul li:not(:last-child) {
            margin-right: 30px;
        }
        
        footer .fab {
            color: var(--primary-color);
            font-size: 24px;
        }
        /* ********************************* */
        /* 工作经历,一共3条工作经历,所以创建了3行栅格布局 */
        
        .work-exps {
            color: var(--text-color-gray);
            display: grid;
            grid-template-rows: repeat(3, minmax(80px, auto));
        }
        /* 每个工作经历为三列栅格布局,分别为职位,分隔线、公司名和工作时间部分 */
        
        .work-exp-item {
            display: grid;
            /* 列之间的比例 */
            grid-template-columns: 5fr 1fr 7fr;
            align-items: center;
            justify-content: center;
        }
        /* 职位 */
        
        .position {
            font-size: 18px;
            font-weight: 500;
        }
        /* 分隔线 */
        
        .seperator {
            height: 43px;
            /* width: 1px; */
            border-left: 2px dotted #eaeff2;
        }
        /* 工作时间 */
        
        .time {
            color: var(--text-color-light-gray);
        }
        /* 公司 */
        
        .company {
            font-size: 14px;
            color: var(--text-color-dark-gray);
            margin-top: 9px;
        }
    </style>
</head>

<body>
    <!-- 个人卡片容器,居中卡片 -->
    <div class="wrapper">
        <!-- 个人卡片 -->
        <div class="profile-card">
            <!-- 卡片内容,导航,个人简介和工作经历 -->
            <div class="content">
                <!-- 导航 -->
                <nav id="nav-menu">
                    <!-- data-rel,在js里获取当前要展示哪个section,是个人简介还是工作经历 -->
                    <a class="active" href="#" data-rel="about-me-section">个人简介</a>
                    <a href="#" data-rel="work-exp-section">工作经历</a>
                    <!-- 当前选中菜单的指示条 -->
                    <div class="indicator"></div>
                </nav>
                <!-- 关于我部分 -->
                <section class="about-me-section active-section">
                    <!-- 名字和身份信息 -->
                    <div class="personal-info">
                        <div class="title">
                            <h1>张金虎</h1>
                            <p>前端工程师</p>
                        </div>
                        <!-- 关注按钮 -->
                        <button class="follow-btn">
                <i class="fas fa-plus"></i>关注
              </button>
                    </div>
                    <!-- 个人简介的内容 -->
                    <div class="about-me">
                        <p>
                            我是张金虎,我是一名前端工程师,毕业于美国斯蒂文斯理工学院,计算机科学硕士。曾在XX公司负责产品前端开发。擅长使用 React, Styled-components 开发可复用的视图组件。
                        </p>
                    </div>
                    <!-- 社交图标 -->
                    <footer>
                        <ul>
                            <li>
                                <a href="#"><i class="fab fa-weixin"></i></a>
                            </li>
                            <li>
                                <a href="#"><i class="fab fa-weibo"></i></a>
                            </li>
                            <li>
                                <a href="#"><i class="fab fa-github"></i></a>
                            </li>
                            <li>
                                <a href="#"><i class="fab fa-linkedin"></i></a>
                            </li>
                        </ul>
                    </footer>
                </section>
                <!-- 工作经历部分 -->
                <section class="work-exp-section">
                    <!-- 工作经历容器 -->
                    <div class="work-exps">
                        <!-- 每条工作经历 -->
                        <div class="work-exp-item">
                            <!-- 职位 -->
                            <div class="position">前端工程师</div>
                            <!-- 分隔线 -->
                            <div class="seperator"></div>
                            <!-- 公司信息 -->
                            <div class="work-info">
                                <!-- 工作时间 -->
                                <div class="time">
                                    2018.07 ~ 2019.08 <i class="far fa-calendar"></i>
                                </div>
                                <!-- 公司名称 -->
                                <div class="company">北京某某互联网金融公司</div>
                            </div>
                        </div>
                        <div class="work-exp-item">
                            <div class="position">软件工程师</div>
                            <div class="seperator"></div>
                            <div class="work-info">
                                <div class="time">
                                    2013.07 ~ 2016.07 <i class="far fa-calendar"></i>
                                </div>
                                <div class="company">北京某美国信息技术公司</div>
                            </div>
                        </div>
                        <div class="work-exp-item">
                            <div class="position">软件工程师</div>
                            <div class="seperator"></div>
                            <div class="work-info">
                                <div class="time">
                                    2010.07 ~ 2010.12 <i class="far fa-calendar"></i>
                                </div>
                                <div class="company">北京某大软件有限公司</div>
                            </div>
                        </div>
                    </div>
                </section>
            </div>
            <!-- 头像 -->
            <aside class="profile-image"><img src="https://img2.baidu.com/it/u=3879468893,1797088383&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750" alt="我" /></aside>
        </div>
    </div>
    <script>
        // 获取导航菜单项
        const navMenuItems = document.querySelectorAll("#nav-menu a");
        // 获取指示条实例,用来做动画
        const indicator = document.querySelector(".indicator");

        // 点击菜单项时的事件处理函数
        function handleMenuItemClick(target) {
            // 取消所有active状态和style样式,为了重新触发动画
            navMenuItems.forEach(item => {
                item.classList.remove("active");
                item.style = "";
            });
            target.classList.add("active");
            // 设置指示条为菜单项的宽度
            indicator.style.width = `${target.offsetWidth}px`;
            // 设置指示条位置为菜单项的起始位置
            indicator.style.left = `${target.offsetLeft}px`;

            // 改变section,旧的active的section移除active状态,并且淡出
            const currentSection = document.querySelector(".active-section");
            currentSection.classList.remove("active-section");

            // 获取点击的菜单项对应的分区实例,如个人简介或工作经历
            const newCurrentSection = document.querySelector(
                `.${target.getAttribute("data-rel")}`
            );
            newCurrentSection.classList.add("active-section");
        }

        navMenuItems.forEach(item => {
            // 每个菜单项点击时调用事件处理函数
            item.addEventListener("click", e => handleMenuItemClick(e.target));

            // 首次页面展示时,工作简介菜单是active的,先触发一次点击处理
            item.classList.contains("active") && handleMenuItemClick(item);
        });
    </script>
</body>

</html>

效果图:
个人简历css,css,前端

个人简历css,css,前端文章来源地址https://www.toymoban.com/news/detail-820167.html

到了这里,关于个人简历css的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 2023个人简历的范文参考(合集)

        2023个人简历的范文参考【篇1】   基本信息   姓名:__   性别:__   出生日期:__   籍贯:__市   目前城市:__市   联系电话:__   E-mail:__   应聘方向   求职行业:金融/投资/证券,银行,保险   应聘职位:投资/基金项目经理,投资/理财顾问,客户主管/专

    2024年02月09日
    浏览(32)
  • VUE好看的个人简历模板

    作者:xcLeigh 文章地址:https://blog.csdn.net/weixin_43151418/article/details/135548970 VUE好看的个人简历模板 ,个人主页模板,模板源码包括首页、关于我、我的资历、项目经验、我的技能、联系我等模块,把自己优秀的一面和优秀的经历都展示出来,可以在这个模板下借用相关代码,代

    2024年01月19日
    浏览(33)
  • 安全运维工程师个人简历

    一份精心撰写的个人简历是迈向成功职业生涯的第一步。以下是小编精心整理的安全运维工程师简历案例,同时,幻主简历网提供海量优质简历模板和在线制作工具,助大家轻松撰写出专业、出色的安全运维工程师简历,欢迎大家来参考。 求职意向 求职类型:全职nbsp;nbsp;

    2024年03月28日
    浏览(30)
  • THREE.JS实现个人简历网站

    最近,在github上面找到了一个不错的技术介绍网站,主要使用 html+css+js 原生三件套写的。我在此基础之上利用three.js加了一点3D元素在里面,让这个网站看起来更炫酷。 改的时候,感觉原生还是比不上框架来的方便,后续有时间我会抽离一个 vue组件 的版本。 在线访问 :个人

    2024年02月01日
    浏览(31)
  • 展示用HTML编写的个人简历信息

    Document 求职意向:Java开发 联系电话:1982378xxxx 个人邮箱:2213189531@qq.com 我的Gitee 我的博客 2011-2017 小学 2017-2020 初中 2020-2023 高中 2023-2027 大学 计算机科学与技术 掌握Java编程 掌握数据结构 掌握前端相关的技能:html,css,JavaScript 留言墙 开发时间:2023年12月11日~2024年1月24日 功能介绍

    2024年02月20日
    浏览(32)
  • 程序员个人简历范本(精选5篇)

    HR浏览一份简历也就25秒左右,如果你连「好简历」都没有,怎么能找到好工作呢? 如果你不懂得如何在简历上展示自己,或者觉得怎么改简历都不出彩,那请你一定仔细读完。 性别 男 年龄 24 学历 本科 张三 专业 计算机科学与技术 毕业院校 清华大学 毕业院校 github.io 个人

    2024年02月03日
    浏览(33)
  • 云计算工程师个人简历(精选篇)

    对于这样一群云计算工程师精英而言,如何将自己的专业技能与丰富经验准确地呈现在简历上,就显得尤为重要。以下是小编精选的云计算工程师个人简历参考,同时,幻主简历网还提供精美简历模板以及简历在线制作工具,欢迎大家阅读收藏。 幻主简历huanzhucv.com案例: 求

    2024年04月25日
    浏览(30)
  • 微信小程序个人简历界面(编辑版)

    1、微信小程序实现简单的个人简历界面,包含基本信息、教育背景、获奖证书、兴趣爱好等,简历信息支持修改编辑内容。 2、通过此文章,希望能带给更多学习微信小程序的伙伴们一点点经验,示例简洁,布局简单,喜欢的小伙伴,可以进我主页,分享更多学习经验和示例

    2024年02月12日
    浏览(31)
  • 在Web开发中制作个人简历(超简单版)

    一、个人简历效果 二、部分代码解析 开头有部分代码以及在之前的文章中解析过,如果想看具体参数的可以,移步到下面这条链接在Web开发中简单的HTML标签的使用 在body中设置整个html在浏览器中显示的背景颜色为白色 设置页面大标题并且居中 第二段为姓名、性别、联系方

    2024年02月10日
    浏览(36)
  • 软件测试简历个人技能和项目经验怎么写?(附项目资料)

    目录 前言 个人技能 项目实战经验 项目名称:苏州银行项目(web+app) 项目描述: 项目名称:中国平安项目(web+app) 项目描述: 项目名称:苏宁易购项目(web+app) 项目描述: 总结 重点:配套学习资料和视频教学   最近很多人在找工作,投简历环节就遇到了困难。简历里

    2024年02月05日
    浏览(37)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包