Skip to content

Commit bc3aebd

Browse files
committed
fix layout
1 parent 0646187 commit bc3aebd

File tree

5 files changed

+31
-13
lines changed

5 files changed

+31
-13
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ Settings for Github Actions:
4040
- TWITTER_USER_NAME
4141
- YOUTUBE_API_KEY
4242
- YOUTUBE_PLAYLIST_ID
43+
- MASTODON_ACCESS_TOKEN
44+
- MASTODON_ID

components/TootCard/TootCard.module.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
div > a {
2323
display: block;
2424
margin-bottom: 0.5rem;
25+
overflow-x: hidden;
26+
text-overflow: ellipsis;
27+
28+
&:hover {
29+
text-decoration: underline;
30+
}
2531
}
2632

2733
@media (min-width: $main-width) {
@@ -34,12 +40,12 @@
3440
display: flex;
3541
gap: 0.7rem;
3642
cursor: default;
37-
align-items: start;
43+
align-items: flex-start;
3844

3945
> span {
4046
display: flex;
4147
gap: 0.3rem;
42-
align-items: start;
48+
align-items: flex-start;
4349
padding: 0.2rem;
4450
border-radius: 4px;
4551

components/UpcomingMeetupCard/UpcomingMeetupCard.module.scss

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
@import "../constants";
22

33
.upcoming-meetup-card {
4-
border-radius: 4px;
5-
background-color: $highlight-card-bg;
6-
padding: 1rem;
7-
text-align: center;
4+
display: block;
85

9-
&:hover {
10-
background-color: lighten($highlight-card-bg, 10%);
6+
section {
7+
border-radius: 4px;
8+
background-color: $highlight-card-bg;
9+
padding: 1rem;
10+
text-align: center;
11+
12+
&:hover {
13+
background-color: lighten($highlight-card-bg, 10%);
14+
}
1115
}
1216

13-
h2, h3 {
17+
h2,
18+
h3 {
1419
margin-top: 0;
1520
}
1621

@@ -19,16 +24,19 @@
1924
// padding: 1rem;
2025
// }
2126

22-
> p > a {
27+
section > p > button {
2328
display: inline-block;
2429
background-color: $orange;
2530
border-radius: 4px;
31+
border: none;
2632
padding: 8px;
33+
font-size: 16px;
2734
font-weight: bold;
2835
color: black;
2936
width: 100%;
3037
max-width: $aside-width;
3138
text-align: center;
39+
cursor: pointer;
3240

3341
@media (min-width: $main-width) {
3442
// width: $aside-width - 30px;

components/UpcomingMeetupCard/UpcomingMeetupCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const formatDate = (time: string) =>
1818
const UpcomingMeetupCard: FC<IUpcomingMeetupCardProps> = ({ meetup }) => {
1919
const { link, featured_photo, name, time } = meetup;
2020
return (
21-
<a href={link}>
22-
<section className={styles["upcoming-meetup-card"]}>
21+
<a href={link} className={styles["upcoming-meetup-card"]}>
22+
<section>
2323
<h2>MEETUP</h2>
2424
<h3>{name}</h3>
2525
{featured_photo && (
@@ -31,7 +31,7 @@ const UpcomingMeetupCard: FC<IUpcomingMeetupCardProps> = ({ meetup }) => {
3131
/>
3232
)}
3333
<p>
34-
<a href={link}>SIGN UP FOR {formatDate(time).toUpperCase()}</a>
34+
<button>SIGN UP FOR {formatDate(time).toUpperCase()}</button>
3535
</p>
3636
</section>
3737
</a>

components/UpcomingMeetupList/UpcomingMeetupList.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@import "../constants";
22

33
.upcoming-meetup-list {
4+
flex-direction: column;
5+
gap: 1rem;
46
padding: 1rem;
57
width: 100%;
68

0 commit comments

Comments
 (0)