Skip to content

Commit

Permalink
Merge pull request #12 from OpenTUT/dev/hori
Browse files Browse the repository at this point in the history
Dev/hori
  • Loading branch information
horih authored Sep 27, 2024
2 parents 32231a7 + 9156219 commit 23326f2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 23 deletions.
8 changes: 8 additions & 0 deletions src/components/GroupCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@
display: block;
width: 100%;
}
p {
justify-content: flex-start;
}
span {
display: flex;
align-items: center;
gap: 0.5rem;
}
}
54 changes: 31 additions & 23 deletions src/components/GroupCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const GroupCard: React.FC<GroupCardProps> = ({ group, setGroup }) => {
width: "100%",
backgroundColor: "#ffffff",
borderRadius: "1rem 1rem 0 0",
padding: "1rem",
padding: "0",
margin: "0 auto",
border: "solid 1px #aaa",
position: "relative",
Expand Down Expand Up @@ -47,6 +47,7 @@ const GroupCard: React.FC<GroupCardProps> = ({ group, setGroup }) => {
width: "100%",
height: "100%",
objectFit: "cover",
borderRadius: "1rem 1rem 0 0",
}}
/>
</div>
Expand All @@ -65,40 +66,47 @@ const GroupCard: React.FC<GroupCardProps> = ({ group, setGroup }) => {
style={{
fontSize: "1rem",
color: "#333",
margin: 0,
margin: "auto",
display: "flex",
justifyContent: "flex-end",
textAlign: "left",
alignItems: "center",
flexWrap: "wrap",
}}
>
<IconWorld strokeWidth={2} style={{ margin: "0 0.5rem 0 0" }} />
<a
href={group.url}
target="_blank"
rel="noopener noreferrer"
style={{
fontSize: "1rem",
color: "#1D4ED8",
textDecoration: "none",
wordBreak: "break-all",
}}
>
{group.url.length > 25
? `${group.url.slice(0, 25)}...`
: group.url}
</a>
<span style={{ display: "flex", alignItems: "center" }}>
<IconWorld strokeWidth={2} />
<a
href={group.url}
target="_blank"
rel="noopener noreferrer"
style={{
fontSize: "1rem",
color: "#1D4ED8",
textDecoration: "none",
wordBreak: "break-all",
}}
>
{group.url.length > 25
? `${group.url.slice(0, 25)}...`
: group.url}
</a>
</span>
<span className={classes.mobileBreak} />
<IconMapPin strokeWidth={2} style={{ margin: "0 0.5rem 0 0" }} />
{group.room}
<IconClock strokeWidth={2} style={{ margin: "0 0.5rem 0 0" }} />
{group.date}
<span style={{ display: "flex", alignItems: "center" }}>
<IconMapPin strokeWidth={2} />
{group.room}
</span>
<span style={{ display: "flex", alignItems: "center" }}>
<IconClock strokeWidth={2} />
{group.date}
</span>
</p>
<p
style={{
fontSize: "0.875rem",
color: "#666",
margin: 0,
marginTop: "1rem",
}}
>
{group.description}
Expand Down

0 comments on commit 23326f2

Please sign in to comment.