Skip to content

Commit

Permalink
Remove resources tab
Browse files Browse the repository at this point in the history
- It does not pull its weight, move the useful stuff to the footer
  • Loading branch information
henrikhorluck committed Jul 29, 2024
1 parent a725059 commit a36af5e
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 153 deletions.
1 change: 1 addition & 0 deletions public/img/social/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/core/appUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ export const getProfileMembershipUrl = () => url`/profile/settings/membership`;
export const getProfileStatisticsUrl = () => url`/profile/statistics`;
export const getProfileStatisticsEventsUrl = () => url`/profile/statistics/events`;
export const getProfileSearchUrl = () => url`/profile/search`;
export const getResourcesUrl = () => url`/resources`;
7 changes: 6 additions & 1 deletion src/core/components/Footer/SocialLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ const SOCIAL: ISocialLink[] = [
link: 'https://onlinentnu.slack.com/',
icon: '/img/social/slack.svg',
},
{
name: 'discord',
link: 'https://discordapp.com/invite/2XB9egU',
icon: '/img/social/discord.svg',
},
];

const SocialLink = ({ name, link, icon }: ISocialLink) => (
Expand All @@ -38,7 +43,7 @@ const SocialLink = ({ name, link, icon }: ISocialLink) => (
);

const SocialLinks = () => (
<div>
<div className={style.socialContainer}>
{SOCIAL.map((platform) => (
<SocialLink key={platform.name} {...platform} />
))}
Expand Down
32 changes: 23 additions & 9 deletions src/core/components/Footer/footer.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
max-width: @owDesktopMaxWidth - @paddingHorizontal * 2;
}

.mailinglists {
grid-column: span 3;
display: grid;
justify-content: center;
margin: 0;
}

.footerContent {
display: grid;

Expand Down Expand Up @@ -76,6 +83,21 @@
display: inline-block;
}

.socialContainer {
display: grid;
grid-template-columns: 48px 48px 48px;
grid-row: 48px;
align-items: center;
gap: 1em;
height: fit-content;
align-self: center;

img {
height: 48px;
width: 48px;
}
}

.social,
.sponsor {
filter: brightness(0.4);
Expand All @@ -84,12 +106,4 @@
&:hover {
filter: brightness(0.2);
}

img {
height: 32px;
}
}

.social:not(:last-child) {
margin-right: 5px;
}
}

Check failure on line 109 in src/core/components/Footer/footer.less

View workflow job for this annotation

GitHub Actions / stylelint

src/core/components/Footer/footer.less#L109

Unexpected missing end-of-source newline (no-missing-end-of-source-newline)
3 changes: 3 additions & 0 deletions src/core/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const Footer = () => (
</p>
<SocialLinks />
<ContactInfo />
<p className={style.mailinglists}>
<a href="https://online.ntnu.no/resourcecenter/mailinglists/">E-postlister for linjeforeninger</a>
</p>
</div>
</footer>
);
Expand Down
3 changes: 0 additions & 3 deletions src/core/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ class Header extends Component<{}, IState> {
<Link {...appUrls.getCareerOpportunitiesUrl()}>
<a>Karriere</a>
</Link>
<Link {...appUrls.getResourcesUrl()}>
<a>Ressurser</a>
</Link>
<Link {...appUrls.getHobbyGroupsUrl()}>
<a>Interessegrupper</a>
</Link>
Expand Down
9 changes: 0 additions & 9 deletions src/pages/resources/index.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/resources/api/index.ts

This file was deleted.

26 changes: 0 additions & 26 deletions src/resources/components/Resource.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions src/resources/components/ResourceList.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions src/resources/components/resources.less

This file was deleted.

14 changes: 0 additions & 14 deletions src/resources/containers/ResourcesContainer.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/resources/index.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions src/resources/models/Resource.ts

This file was deleted.

0 comments on commit a36af5e

Please sign in to comment.