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
1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ const App = () => {
};

export default App;

25 changes: 25 additions & 0 deletions src/components/Link.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

.link {
box-sizing: border-box;
padding: 16px;
border-radius: 24px;
text-align: center;
display: inline-block;
font-family: 'Roboto', arial, monospace;
background-color: white;
color: black;
cursor: pointer;
text-decoration: none;
outline: none;
}

.link:hover {
background-color: black;
color: white;
}

.link:active {
background-color: white;
color: black;
}
15 changes: 8 additions & 7 deletions src/components/Link.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from "react";
import styles from "./Link.css"

const Link = () => {
export default function Link({href, children, ...props}) {
return (
<a>Link</a>

);
};

export default Link;
<a className={`link`} href={href}>
{children}
</a>
)
}