-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix #4773: Add responsive behavior to the landing page #4801
Conversation
$scope.getStaticSubjectImageUrl = function(subjectName) { | ||
return UrlInterpolationService.getStaticImageUrl('/subjects/' + | ||
subjectName + '.svg'); | ||
}; | ||
|
||
$scope.onClickGetStartedButton = function(viewerType) { | ||
siteAnalyticsService.registerOpenFractionsFromLandingPageEvent( | ||
viewerType); | ||
$timeout(function() { | ||
$window.location = ' /collection/4UgTQUc1tala'; |
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 is there a leading space in the string?
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.
Oops fixed that.
|
||
$scope.onClickLearnMoreButton = function() { | ||
$timeout(function() { | ||
$window.location = 'https://www.oppia.org/splash'; |
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.
/splash
, otherwise it'll go to the wrong place when you're testing on the test server.
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.
Okay. fixed that
</div> | ||
<div class="col-sm-6"> | ||
<h2 class="oppia-fractions-landing-h2" style="color: #242424; text-align: right; right: 10%">With Oppia, we make it easy to go through the lessons and learn something new! | ||
<br><br>You will work to learn new concepts and help Matt become a great baker along the way. We make it fun and easy to get started. |
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.
Just realized something is off about the text on this page. Suggest:
You will work ... --> Students will work ...
Matt --> Matthew
(edit: please check the mocks again, this text is not correct)
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.
I had missed this when I finally pasted the student page to the teacher page. Fixed it now. Sorry about that
Also, please delete any image asset files that aren't used. |
Codecov Report
@@ Coverage Diff @@
## develop #4801 +/- ##
===========================================
- Coverage 44.72% 44.71% -0.01%
===========================================
Files 385 385
Lines 23473 23476 +3
Branches 3793 3793
===========================================
Hits 10498 10498
- Misses 12975 12978 +3
Continue to review full report at Codecov.
|
Deleted all the unused assets and also fixed the large screen styling. In my opinion the page looks nice upto laptop view and doesn't break at higher sizes but doesn't look as appealing 😅. Maybe it's just because I am viewing it at 50% zoom. |
</div> | ||
<div class="col-sm-6"> | ||
<h2 class="oppia-fractions-landing-h2" style="color: #242424; text-align: right; right: 80px">With Oppia, we make it easy to go through the lessons and learn something new! | ||
<br><br>Students get to work through stories and apply their knowledge of real-world problems. |
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.
Let's change this to "knowledge to".
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.
Changed 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.
Hi @nithusha21 -- thanks, looks good! One very small wording change and it's good to go.
Thanks, LGTM! |
@BenHenning, FYI -- this needs cherrypicking! |
* added new fractions landing pages and removed old landing pages * Fixed linting errors * made review changes * linting fixes * linting fixes * Some changes * made the landing page responsive * linting fixes * changed image for mobile display on teacher page * made review changes and bug fixes * changed of -> to
* upstream/develop: Fix part of oppia#3905: Add check for period at comment and docstring end (oppia#4759) Remove numpy as a dependency. (oppia#4808) Fix part of oppia#3905: Add check for keyword arguments (oppia#4752) Fix oppia#4056:There is no way to add an exploration/collection into "play-later" list for mobile users. (oppia#4709) Fixes part of oppia#4374: Add docstring to user_query_services.py & user_services.py (oppia#4796) Fix oppia#4776: possible race condition in audio preview in editor tab. (oppia#4802) Fix oppia#4773: Add responsive behavior to the landing page (oppia#4801) Fix part of oppia#4364 : Enhancements to the correctness footer (oppia#4770)
* added new fractions landing pages and removed old landing pages * Fixed linting errors * made review changes * linting fixes * linting fixes * Some changes * made the landing page responsive * linting fixes * changed image for mobile display on teacher page * made review changes and bug fixes * changed of -> to
Explanation
Fixes #4773 This PR adds responsive behavior to the landing page
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.