Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Daily Thought App
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COM3014-Coursework
Daily Thought App
Commits
40cd3722
Commit
40cd3722
authored
2 years ago
by
Matt Kirby
Browse files
Options
Downloads
Patches
Plain Diff
Simplified feed page
parent
c52191c3
No related branches found
Branches containing commit
No related tags found
1 merge request
!8
create "Basic components"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daily-thought-frontend/src/components/post/Post.tsx
+2
-9
2 additions, 9 deletions
daily-thought-frontend/src/components/post/Post.tsx
daily-thought-frontend/src/pages/feed.tsx
+0
-6
0 additions, 6 deletions
daily-thought-frontend/src/pages/feed.tsx
with
2 additions
and
15 deletions
daily-thought-frontend/src/components/post/Post.tsx
+
2
−
9
View file @
40cd3722
...
...
@@ -16,7 +16,7 @@ const Post:FC<PropsWithChildren<PostProps>> = ({
<>
<
div
className
=
"flex w-full py-4 flex-col"
>
<
div
className
=
"flex m-2 items-center
bg-white
"
>
<
div
className
=
"flex m-2 items-center"
>
<
div
className
=
"flex h-12 w-12 max-w-xs items-center justify-center rounded-full bg-c-pink text-sm focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-pink-400 mr-2"
>
<
img
className
=
"h-12 w-12 rounded-full"
src
=
{
post
.
User
.
Avatar
}
alt
=
""
/>
</
div
>
...
...
@@ -30,17 +30,10 @@ const Post:FC<PropsWithChildren<PostProps>> = ({
</
div
>
<
div
className
=
"flex-1 rounded-3xl bg-c-pink font-white md:ml-16"
>
<
div
className
=
"m-2 text-sm px-2 font-bold text-c-green"
>
This is my amazing question of the day?
</
div
>
<
div
className
=
"flex-1 rounded-3xl font-white md:ml-16"
>
<
AnswerCard
post
=
{
post
}
/>
</
div
>
<
div
className
=
"md:ml-16 m-2"
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
daily-thought-frontend/src/pages/feed.tsx
+
0
−
6
View file @
40cd3722
...
...
@@ -26,12 +26,6 @@ const Feed = () => {
<
div
className
=
{
`p-8 bg-c-pink`
}
>
<
h1
className
=
"text-4xl font-bold tracking-tight text-c-green text-center"
>
This is my question of the day
</
h1
>
</
div
>
<
p
className
=
"text-c-green"
>
Most recent answer
</
p
>
<
div
className
=
"rounded-full my-4 w-xl"
>
<
div
className
=
"flex w-full justify-center flex-col items-center mx-auto p-3 sm:px-6 lg:px-8 max-w-4xl"
>
<
AnswerCard
post
=
{
{
User
:
user
,
Content
:
"
This is my post
"
}
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment