Skip to content

Commit

Permalink
improve class naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoykumardas12 committed Oct 23, 2023
1 parent 2c91645 commit 8a20e7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions app/components/events.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<h2 data-test-events-section-header class='events-section__heading'>You can
check out all our events below!!</h2>
{{#each-in this.EVENTS_CATEGORIES as |category events|}}
<div class='events__category'>
<div class='events-section__category'>
<h3
data-test-events-category={{category}}
class='events__category-heading'
class='events-section__category-heading'
>{{category}}:</h3>
<div class='events__links-container'>
<div class='events-section__links-container'>
{{#each events as |event index|}}
{{#if (not-eq index 0)}}
<span>|</span>
{{/if}}
<a
data-test-events-link={{event.name}}
href={{event.link}}
class='events__link'
class='events-section__link'
>{{event.name}}</a>
{{/each}}
</div>
Expand Down
10 changes: 5 additions & 5 deletions app/styles/events.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
color: var(--color-black);
}

.events__category-heading {
.events-section__category-heading {
font-size: 1.1rem;
text-align: center;
color: var(--color-black);
}

.events__links-container {
.events-section__links-container {
margin-top: 1.25rem;
display: flex;
justify-content: center;
flex-flow: row wrap;
}

.events__links-container > * {
.events-section__links-container > * {
margin: 0 0.625rem;
padding: 0.5rem;
text-align: center;
Expand All @@ -35,13 +35,13 @@
text-decoration: none;
}

.events__link:hover {
.events-section__link:hover {
background: var(--color-soft-magenta);
border-radius: 1.25rem;
}

@media (max-width: 425px) {
.events__links-container > * {
.events-section__links-container > * {
width: 100%;
}
}

0 comments on commit 8a20e7a

Please sign in to comment.