-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Design a 404 page for default redirects #57
Conversation
You should have used AuthRoutes IMO! |
Done @bismitaguha please review |
src/components/ErrorPage.js
Outdated
|
||
function ErrorPage() { | ||
return ( | ||
<> <Navbar /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AuthRoute already contains the Navbar, so this wasn't needed. Reusing components is always preferable. That's why I suggested AuthRoute.
) | ||
} | ||
|
||
export default ErrorPage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throughout the application class method has been used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aaishpra Make these changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already done @bismitaguha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bismitaguha is this correct now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Changed the files @bismitaguha |
@bismitaguha please review the changes |
@abha224 can u review the pull request as @bismitaguha seems not to be available |
I had requested changes @Aaishpra .Please make them! |
@bismitaguha can u please check my latest commits i guess i changed the file as u requested. |
@Aaishpra I didn't ask you to remove classes. The code already written is in exporting a class component not by exporting default function methods |
@Aaishpra is the 404 text color the same as the color of Open Source Programs header? If not, I suggest switching to that color. |
@sidvenu the color is the same maybe it looks a bit different because the text 404 is much bolder than Open source programs header. |
@bismitaguha is the latest commit ok now? |
@bismitaguha please review the changes |
@Aaishpra Either me or someone else will surely review your PR, from time to time. Considering my situation, I am running busy lately, and so are many other members of the community too. Please have patience and don't worry at all. Your PRs will surely be reviewed. Although, if a week or more passes surely ping/mention any of us on Github/Zulip. |
No Problem @bismitaguha got your point. |
@sidvenu can you please review this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@anitab-org/qa-team @anitab-org/open-source-progs-maintainers @anitab-org/open-source-progs-developers Can anyone test this PR out? |
Hey,@bismitaguha and @sidvenu can you suggest someone that can test this PR out so that i can personally tag them here, or you people can help with it. Actually a lot of time has already passed since the last review, and no one has come to see this here. |
@rpattath @bismitaguha if possible, could you test this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aaishpra please squash your commits into one. It's always better to have one commit per change to keep the history clean
src/styles/ErrorPage.css
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why two blank lines are here? We only need one
@Aaishpra You added custom css for all your styling. Styling is promising but this project is already using Semantic-UI as UI framework. I added some comments inside your css with some semantic-ui links which you can use in your component. |
@INNOVATIVEGAMER good point, could you please create a issue for us to add this to the guidelines please? |
I created the issue for this #65. You can check on that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vj-codes @isabelcosta I am not sure about coding practices and all.
But when I tested it locally, the UI changes looks good to me
The changes made in this PR is tested locally, following are the results:-
-
Code Review - Not Done
-
All possible responses were tested as below:
@devkapilbansal that is just awesome! thank you so much! |
Thanks for the suggestion, I will update soon with the changes. |
Merge branch 'Aaishpra-patch-1' of https://github.com/Aaishpra/open-source-programs-web into Aaishpra-patch-1
@isabelcosta I have modified the files according to the suggestion, without any change in designs. Here, I would like to mention one thing earlier I tried using Hope this is good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested Locally @isabelcosta @Aaishpra @vj-codes
Details of the test mentioned below:
Code-Review: Not Done.
Tests:
- The 404 error page for invalid URL when not logged in.
Screenshot:
-
404 Error page not showing when logged in it redirects to home page maybe this is due to AuthRoute.
GIF:
-
The scaling works perfect but for smaller width and height I observed this:
Screenshot:
Also, Please squash your commits @Aaishpra .
I can squash so no need to squash @Aaishpra :) |
} | ||
|
||
.errorPage { | ||
position: absolute; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aaishpra Can I ask why are you using absolute positioning when this can be achieved with relative positioning as well. This way the overlapping issue on small screens mentioned by @codesankalp will also resolve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relative
is not gonna work on larger screen
This is what i see on my screen when changing |
@Aaishpra Not just doing |
Not working |
I have tested the PR. LGTM!! keep it up @Aaishpra |
.errorPage_content p { | ||
font-size: 1.4em; | ||
color: gray; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use className (err-num and err-text) instead of style={{}}
for Header in ErrorPage.js
and add the styles in ErrorPage.css
as mentioned below?
} | |
} | |
.ui.header.err-num { | |
color: #2185D0; | |
font-size: 10vw; | |
font-weight: bolder; | |
line-height: 1em; | |
text-transform: uppercase; | |
} | |
.ui.header.err-text { | |
font-size: 2em; | |
margin-bottom: 20px; | |
text-transform: uppercase; | |
max-width: 600px; | |
color: #0d0d0d; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any specific reason @codesankalp ? Is this a common convention?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review is done.
LGTM 👍
Thank you all for the reviews :) I will merge it, and some comments about styling can be done at a later issue. |
Description
Solves the Following.
Design a 404 page
Change route URL to Redirect to /404 on wrong URLs
Fixes #33
Type of Change:
Code
User Interface
Code/Quality Assurance Only
How Has This Been Tested?
ScreenShot for Reference
Checklist:
My PR follows the style guidelines of this project
I have performed a self-review of my own code or materials
I have commented my code or provided relevant documentation, particularly in hard-to-understand areas
I have made corresponding changes to the documentation
Any dependent changes have been merged
I have written Kotlin Docs whenever is applicable
Code/Quality Assurance Only
Additional Context
I initially wanted to add a button to go back to the home page but since it doesn't Exist hence skipped that part. More suggestions and Additions are welcome for any other Feature within the page