Skip to content

Commit

Permalink
fix: improve the home chips
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Oct 5, 2021
1 parent dd729c8 commit f69c0d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const profiles = files.map((file) => {
// generate list file
const writeDirectoryPath = path.join(__dirname, 'public', 'list.json')
const output = profiles.map((profile) => ({
name: profile.name,
username: profile.username,
avatar: profile.avatar,
}))
Expand Down
15 changes: 10 additions & 5 deletions src/Components/Home/Home.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
a{
a {
text-decoration: none;
}
.p-chip{

.p-chip {
transition: transform 0.33s;
padding: 0.2rem 0.6rem;
}
.p-chip:hover{

.p-chip:hover {
transform: scale(1.1);
}
.p-chip-text{

.p-chip-text {
color: black;
}
.p-chip img{

.p-chip img {
height: 2.5rem;
width: 2.5rem;
}
6 changes: 1 addition & 5 deletions src/Components/Home/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ function User({ list }) {
<>
{list.map((user, key) => (
<a href={`${user.username}`} key={`avatar-${key}`}>
<Chip
image={user.avatar}
className="p-m-2"
label={user.username}
/>
<Chip image={user.avatar} className="p-m-2" label={user.name} />
</a>
))}
</>
Expand Down

0 comments on commit f69c0d1

Please sign in to comment.