-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #827 from crane-cloud/ch/integrate-activity-api
chore: integrate activity feed endpoint in users dashboard
- Loading branch information
Showing
22 changed files
with
640 additions
and
154 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
.projectCard { | ||
position: relative; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
background-color: #ffff; | ||
padding: 20px; | ||
border-radius: 8px; | ||
margin: 10px 0; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.cardContent { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.title { | ||
font-size: 1em; | ||
font-weight: 600; | ||
margin: 0; | ||
/* color: var(--primary-color); */ | ||
} | ||
|
||
/* .title:hover { | ||
cursor: pointer; | ||
text-decoration: underline; | ||
transform: scale(1.05); | ||
} */ | ||
|
||
.description { | ||
color: var(--primary-color); | ||
display: -webkit-box; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
-webkit-line-clamp: 2; | ||
line-clamp: 2; | ||
min-height: 2.3em; | ||
margin: 5px 0 0 0; | ||
text-decoration: underline; | ||
} | ||
|
||
.description:hover { | ||
cursor: pointer; | ||
} | ||
|
||
.numberBox { | ||
position: absolute; | ||
top: 10px; | ||
right: 10px; | ||
background-color: #fafae5; | ||
padding: 2px; | ||
border-radius: 8px; | ||
min-width: 40px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.numberBox:hover { | ||
cursor: pointer; | ||
} | ||
|
||
.number { | ||
font-size: 1em; | ||
} | ||
|
||
.cardExtras { | ||
display: flex; | ||
padding-top: 0.3rem; | ||
} | ||
|
||
.membersIcon { | ||
width: 1rem; | ||
height: 1rem; | ||
} | ||
|
||
.memberCount { | ||
padding-left: 0.5rem; | ||
} | ||
|
||
.stats { | ||
display: flex; | ||
flex-direction: column; | ||
margin: 10px 0; | ||
} | ||
|
||
.statItem { | ||
background-color: #f0f0f0; | ||
border-radius: 8px; | ||
padding: 5px 10px; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.statItem p, | ||
.statItem span { | ||
margin: 0; | ||
font-size: 0.9em; | ||
} | ||
|
||
.cardSummary { | ||
display: flex; | ||
gap: 10px; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.appUrl { | ||
text-decoration: none; | ||
color: var(--primary-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react"; | ||
import styles from "./NewAppCard.module.css"; | ||
|
||
const NewAppCard = ({ name, url, image, port }) => { | ||
return ( | ||
<div className={styles.projectCard}> | ||
<div className={styles.cardContent}> | ||
<h3 className={styles.title}>{name}</h3> | ||
<p className={styles.description}> | ||
<a href={url} target="_blank" rel="noopener noreferrer" className={styles.appUrl}> | ||
{url} | ||
</a> | ||
</p> | ||
|
||
<div className={styles.cardExtras}> | ||
<div className={styles.cardSummary}> | ||
<div className={styles.statItem}> | ||
<span>Image: {image}</span> | ||
</div> | ||
<div className={styles.statItem}> | ||
<span>Port: {port}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NewAppCard; |
Oops, something went wrong.