Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15,271 changes: 15,271 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "4.0.2",
"remixicon": "^2.5.0",
"web-vitals": "^1.0.1"
},
"scripts": {
Expand Down
9 changes: 6 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import React from "react";
import Header from "./components/Header";
import Link from "./components/Link";
import SearchBar from "./components/SearchBar";
/* import Main from "./components/Main"; */

const App = () => {
return (
<>
<Header className="header" >
<Link/>
<p>Search</p>
<Link/>
<Link>Inicio</Link>
<Link>Hoy</Link>
<Link>Siguiendo</Link>
<SearchBar/>

</Header>
{/* <Main /> */}
</>
Expand Down
1 change: 1 addition & 0 deletions src/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "../stylesheets/Header.css";
import 'remixicon/fonts/remixicon.css';

const Header = ({className,children}) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Link.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import styles from "./Link.css"
import "../stylesheets/Link.css"

export default function Link({href, children, ...props}) {
return (
Expand Down
12 changes: 12 additions & 0 deletions src/components/SearchBar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import "../stylesheets/SearchBar.css";

const SearchBar = () => {
return (
<div className="searchbar">
<i className="ri-search-line"></i>
<input placeholder="Buscar" />
</div>
);
};

export default SearchBar;
File renamed without changes.
26 changes: 26 additions & 0 deletions src/stylesheets/SearchBar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.searchbar {
max-width: 944px;
padding: 16px;
background: var(--background-search);
border-radius: 24px;
display: flex;
gap: 8px;
}

.searchbar i {
color: var(--font-dark-gray);
font-weight: bold;
}

.searchbar input {
width: 100%;
height: 100%;
border: none;
background: var(--background-search);
color: var(--font-dark-gray);
font-size: 16px;
}

.searchbar input:focus{
outline: none;
}