Skip to content

Commit

Permalink
137 style individual project page 1 (#160)
Browse files Browse the repository at this point in the history
* style(frontend): 💄 Add styling for image text, remove unused pages and add featured satellites

* style(frontend): 💄 Changed image styling on project page to keep aspect ratio

* fix(frontend): 🐛 Fixed eslint error with img tag in the navnbar

* fix(frontend): 🐛 Fixed avatar url paths on blog page

* fix(frontend): Fix bug with satellite filter from satelliteName to name

---------

Co-authored-by: Jakob Grøtan Gregusson <jakobgg@stud.ntnu.no>
  • Loading branch information
2 people authored and GitHub committed Mar 20, 2024
1 parent 40411a8 commit 22f8a3d
Show file tree
Hide file tree
Showing 15 changed files with 210 additions and 935 deletions.
32 changes: 6 additions & 26 deletions frontend/src/__generated__/gql.ts

Large diffs are not rendered by default.

532 changes: 49 additions & 483 deletions frontend/src/__generated__/graphql.ts

Large diffs are not rendered by default.

57 changes: 0 additions & 57 deletions frontend/src/app/(about)/contact/page.tsx

This file was deleted.

87 changes: 0 additions & 87 deletions frontend/src/app/(about)/partners/page.tsx

This file was deleted.

193 changes: 0 additions & 193 deletions frontend/src/app/(about)/team/page.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/src/app/(about)/test/page.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions frontend/src/app/blog/[articleSlug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ export default async function Page({
) {
return <div>Article not found</div>;
}

let avatarURL =
graphqlData.data.articles?.data[0]?.attributes?.author?.data?.attributes
?.avatar?.data[0]?.attributes?.url;
?.avatar?.data?.attributes?.url;

if (HOST_URL && avatarURL != undefined) {
avatarURL = HOST_URL + avatarURL;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default async function BlogPage() {
{graphqlData.data.articles.data.map((article) => {
let avatarURL =
article?.attributes?.author?.data?.attributes?.avatar
?.data?.[0]?.attributes?.url;
?.data?.attributes?.url;

if (HOST_URL && avatarURL != undefined) {
avatarURL = HOST_URL + avatarURL;
Expand Down
Loading

0 comments on commit 22f8a3d

Please sign in to comment.