Skip to content

Commit

Permalink
126 branch2 blog overview (#166)
Browse files Browse the repository at this point in the history
* refactor(frontend): 🚑 Move changes from other branch 126 into new branch

* feat(frontend): 🎨 Moved Card displaying to new component to make main page less have less clustering

* style(frontend): ✨ Styling for responsiveness

* feat(frontend): ✨ add max-height to image

* feat(frontend): 🎨 prettier write
  • Loading branch information
Mads Hermansen authored and GitHub committed Mar 20, 2024
1 parent c5042db commit 2d4e5ae
Show file tree
Hide file tree
Showing 8 changed files with 302 additions and 92 deletions.
18 changes: 14 additions & 4 deletions backend/src/api/article/content-types/article/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"info": {
"singularName": "article",
"pluralName": "articles",
"displayName": "Article"
"displayName": "Article",
"description": ""
},
"options": {
"draftAndPublish": true
Expand All @@ -29,11 +30,12 @@
"required": true
},
"coverImage": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
]
},
"body": {
"type": "blocks",
Expand All @@ -44,6 +46,14 @@
"relation": "manyToOne",
"target": "api::author.author",
"inversedBy": "articles"
},
"Tag": {
"type": "enumeration",
"enum": [
"Featured",
"News",
"Updates"
]
}
}
}
2 changes: 2 additions & 0 deletions backend/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ export interface ApiArticleArticle extends Schema.CollectionType {
singularName: 'article';
pluralName: 'articles';
displayName: 'Article';
description: '';
};
options: {
draftAndPublish: true;
Expand All @@ -810,6 +811,7 @@ export interface ApiArticleArticle extends Schema.CollectionType {
'manyToOne',
'api::author.author'
>;
Tag: Attribute.Enumeration<['Featured', 'News', 'Updates']>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/__generated__/gql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2d4e5ae

Please sign in to comment.