Skip to content

Commit

Permalink
Merge pull request #29 from nilab-khwaja/missions
Browse files Browse the repository at this point in the history
Missions🥼
  • Loading branch information
nilab-khwaja authored Oct 5, 2023
2 parents eaed061 + 3ecbda5 commit c4d4cda
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 2 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.5.1",
"axios-mock-adapter": "^1.22.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.1.3",
Expand Down
71 changes: 71 additions & 0 deletions src/Styles/Missions.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.mission-page {
display: flex;
align-items: center;
justify-content: center;
}

.missionTable {
width: 95%;
border-collapse: collapse;
text-align: left;
}

.missionTable,
td,
th {
border: 1px solid;
}

.missionTable td,
.missionTable th {
border: 1px solid #ddd;
padding: 0.5rem;
}

.mission-name {
vertical-align: top;
}

.description {
padding-bottom: 1rem;
}

.mission-btn {
text-align: center;
}

.missionTable tr:nth-child(odd) { background-color: #f2f2f2; }

.active-member {
background-color: #2ea8d1;
color: white;
text-align: center;
border-radius: 0.2rem;
padding: 0.2rem;
}

.not-member {
background-color: gray;
color: white;
text-align: center;
border-radius: 0.2rem;
padding: 0.2rem;
}

.leave-mission {
width: 8rem;
padding: 0.5rem;
background-color: transparent;
border: 1px solid red;
color: red;
border-radius: 0.3rem;
cursor: pointer;
}

.join-mission {
width: 8rem;
padding: 0.5rem;
border-radius: 0.3rem;
cursor: pointer;
}

0 comments on commit c4d4cda

Please sign in to comment.