这是我的标题组件
import React from "react";
function Header() {
return (
<div classname = "header">
<nav classname = "navbar navbar-expand-sm navbar-dark bg-dark fixed-top">
<div classname = "container">
<button classname = "navbar-toggler" data-toggle="collapse" data-target = "#Navbar">
<span classname = "navbar-toggler-icon"></span>
</button>
<a href = "/#" classname = "navbar-brand"><h3>Portfolio</h3></a>
<div classname="btn-group">
<button type="button" classname="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
My networking
</button>
<div classname="dropdown-menu">
<a classname="dropdown-item" href="https://docs.google.com/document/d/1iJ1v7HyfodCWvg5OSQIXbUATrBM9mPwdqeIzKuld1qs/edit">Resume</a>
<a classname="dropdown-item" href="https://www.linkedin.com/in/tyler-goodman-39b289195/">LinkedIn</a>
<a classname="dropdown-item" href="https://github.com/KawaiiSlave">Github</a>
</div>
</div>
<div classname = "collapse navbar-collapse" id = "Navbar">
<ul classname = "navbar-nav ml-auto">
<li classname = "nav-item"><a href = "#About" classname = "nav-link">About Me</a></li>
<li classname = "nav-item"><a href = "#Skills" classname = "nav-link">Skills</a></li>
<li classname = "nav-item"><a href = "#Projects" classname = "nav-link">My Projects</a></li>
<li classname = "nav-item"><a href = "#Contact" classname = "nav-link">My Contact Info</a></li>
</ul>
</div>
</div>
</nav>
</div>
);
}
export default Header;
我已经有了要渲染的东西,但我对应该将 css 放在哪里感到困惑。它是否进入提供的 app.css 文件,或者最好放在活动组件中,因为该组件 css ?如果有人能用自己的 css 给出一个例子,那将会有很大帮助。我只是对反应开始有点不知所措。谢谢你!
桃花长相依
相关分类