Connor Hudson
fee657977e
Use module.exports for banners, remove .default for banner imports in presentation
2018-07-16 09:17:26 -04:00
jokebookservice1
07202ff6ec
Remove unneeded testing file
2018-07-09 16:48:17 +03:00
Connor Hudson
5b520c21ef
Update copy from doc
2018-07-06 13:47:55 -04:00
Connor Hudson
a7aae29041
Tweak small top banner styles
2018-07-06 11:38:41 -04:00
Connor Hudson
917497ab66
Use localization strings for banner copy
2018-07-06 10:37:51 -04:00
Connor Hudson
565eeb776f
Make middle banner image resize properly and keep its aspect ratio
2018-07-06 10:37:10 -04:00
Connor Hudson
61aad76b68
Fix middle banner image styles
2018-07-06 09:52:24 -04:00
Connor Hudson
d1d7b2e711
Adjust middle banner width and margin to match other front page rows
2018-07-05 15:26:34 -04:00
Connor Hudson
4129a701e7
Second pass at responsive top banner
2018-07-03 16:18:11 -04:00
Connor Hudson
5ebb5fa8db
Fix image weirdness on chrome, safari
2018-07-03 15:02:00 -04:00
Connor Hudson
08178a58e5
Initial work on responsive middle banner
2018-07-03 14:48:20 -04:00
Connor Hudson
0eb12ae469
Style button on top banner
2018-07-03 13:16:01 -04:00
Connor Hudson
97cb50917f
Add initial pass at middle banner
2018-07-03 12:21:21 -04:00
Connor Hudson
142b46b138
Rename image container
2018-07-03 12:07:03 -04:00
Connor Hudson
655625568c
Add initial pass at top banner with assets
2018-07-03 12:03:22 -04:00
Connor Hudson
4eca432811
Style middle banner
2018-07-02 11:41:17 -04:00
Connor Hudson
251f7bf59d
Add middle banner in progress copy
2018-07-02 11:41:10 -04:00
Connor Hudson
dfaee503b8
Style top banner, add placeholder copy
2018-07-02 10:51:19 -04:00
Connor Hudson
5b5eb8cc5a
Tweak class for small top banner
2018-07-02 10:25:58 -04:00
Connor Hudson
cf48231284
Tweak class names, button padding for small top banner
2018-07-02 10:08:38 -04:00
Connor Hudson
918b4b5948
Style small top banner a little more
2018-07-02 09:59:22 -04:00
Connor Hudson
4c49ae1701
Create small top banner component
2018-06-29 09:28:11 -04:00
Connor Hudson
fd9c0df623
Add styles for banners
2018-06-29 09:28:03 -04:00
Connor Hudson
4ee6bfcad2
Add call to action link to banners
2018-06-29 09:27:54 -04:00
Connor Hudson
c469a0ed97
Show MiddleBanner if logged out
2018-06-28 13:58:23 -04:00
Connor Hudson
178ee415e7
Show top banner if logged in and on tablet or desktop
2018-06-28 13:51:51 -04:00
Connor Hudson
1371687a22
Add boilerplate code for beta banners
2018-06-28 13:50:18 -04:00
apple502j
070cbe091f
Change splash (GH-1916)
...
It uses "30000000 projects" by default now!
2018-06-13 17:32:35 +09:00
chrisgarrity
520bd21cf2
remove obsolete l10n message
2018-04-23 16:29:51 -04:00
chrisgarrity
8cd28baef4
Remove recently shared row
2018-04-20 17:33:38 -04:00
Ray Schamp
53d3bb94dc
Revert "Merge pull request #1787 from LLK/revert-1786-hotfix/es6-upgrade"
...
This reverts commit 5ce1a9f411
, reversing
changes made to 5be4c45f08
.
2018-01-30 10:33:15 -05:00
Ray Schamp
c7c92c49f7
Revert "[Master] Upgrade to ES6"
2018-01-30 09:53:25 -05:00
chrisgarrity
a7532c49db
Fix projects curated row
...
Changed the localization string to use a placeholder to allow translators to re-order if needed.
Also added preview-faq to the transifex config.
2018-01-29 14:22:23 -05:00
Ray Schamp
2ac6ed4c73
Use a prop for refreshSession
...
Since dispatch is not passed in anymore.
2018-01-29 14:16:59 -05:00
Matthew Taylor
6d1f2fbccd
initial es6 commit
2018-01-19 14:06:26 -05:00
Matthew Taylor
ade9ccef81
Add back in FPC and recently shared rows
...
There appears to have been a merge issue between the hotfixes around CSEdWeek and the implementation of the splash refactor, so this rectifies that error.
2018-01-10 17:43:14 -05:00
Matthew Taylor
080df8673b
fix typo in become curator import
2018-01-09 14:58:08 -05:00
Matthew Taylor
3e7bb349ba
match props to rows, rather than object
...
this was not detecting row updates well on re-render
2018-01-09 14:47:45 -05:00
Matthew Taylor
53acea2112
Merge pull request #1670 from mewtaylor/issue/whats-happening
...
Implement GH-1628: Use new activity endpoint
2017-12-18 14:59:10 -05:00
chrisgarrity
e0461ca77a
Merge pull request #1738 from LLK/hotfix/revert-HOC-banners
...
[DEVELOP] Hotfix/revert hoc banners
2017-12-15 15:51:10 -05:00
chrisgarrity
04e1e36978
revert 2017 HoC top and middle banners
2017-12-12 11:21:35 -05:00
Matthew Taylor
24e65e707f
Revert "[Master] temporarily take out curator row and recently shared row"
2017-12-11 08:40:16 -05:00
Matthew Taylor
9fbd5b691c
temporarily take out curator row and recently shared row
2017-12-01 15:12:49 -05:00
Matthew Taylor
6524856bf1
use parentheses around message values
...
for readability. thanks @rschamp!
2017-11-27 16:25:57 -05:00
Matthew Taylor
8ea1f621ef
use mapDispatchToProps
...
thanks @rschamp!
2017-11-27 16:25:19 -05:00
Matthew Taylor
91a0e865ad
Use new activity endpoint
...
This also moves homepage row retrieval into redux to further move towards using redux to handle functionality. This implements #1628 .
2017-11-15 12:49:23 -05:00
chrisgarrity
ef4f851e6d
Switch CTA button based on logged in state
...
Invite logged-out users to ‘Get Started with Coding!’, and make the whole Scratch animation clickable (goes to the Animate a Name tutorial).
See #1664
2017-11-08 16:53:42 -05:00
chrisgarrity
048d5c1383
Switch CTA button based on logged in state
...
Invite logged-out users to ‘Get Started with Coding!’, and make the whole Scratch animation clickable (goes to the Animate a Name tutorial).
See #1664
2017-11-08 16:50:14 -05:00
chrisgarrity
60a2a51bb5
minor formatting changes for consistency
2017-11-08 09:04:33 -05:00
chrisgarrity
4fe3997df4
Top and middle banners for HoC 2017
...
Css animated top banner
Middle banner of activities - responsive
https://github.com/LLK/scratchr2/issues/4869
Also updated ttt see-more/open- modal link to be consistent with the new icon from Carl.
2017-11-03 16:50:26 -04:00
The_Grits
cfa55d98e8
Fix gh-1588: Localize "it's free!" String ( #1594 )
...
* Add it's free string
* Add it's free string into page
* Update presentation.jsx
2017-10-23 11:11:33 -04:00
Matthew Taylor
3dd768f2f6
GH-1361: Implement Notifications Page ( #1487 )
...
* start work on www page
committing out of paranoia.
including changing splash page endpoints
* updates from feedback
thanks @rschamp! This includes:
1. splitting out messages list into a separate component (for clarity)
2. some comment/formatting adjustments for the api calls
3. removal of an extraneous property in emoji-text
* remove duplicate string declaration
* use object.assign instead of defaults deep
we don’t need deep defaults
* fix react warnings
2017-08-31 17:05:22 -04:00
Matthew Taylor
d0e7c29b5f
key api calls on username
check
...
`this.props.user` will now return `true` because there is a default user object that’s empty. So, instead, wait for an actual user object
2017-07-20 15:01:36 -04:00
Matthew Taylor
cb4ca51061
Add new carousel component
...
1. Moves carousel to `LegacyCarousel` since it currently is designed to handle JSON from proxy endpoints
2. Add separate `Carousel` endpoint to handle data from project models in scratch’s new api, the standard moving forward.
2017-07-20 13:47:14 -04:00
Matthew Taylor
36dc8283b8
move projects loved by following to new api endpoint
2017-07-19 11:25:39 -04:00
Matthew Taylor
753a3e1eed
Split splash into container/presentation component
...
This does a bit of upkeep based on recs from @rschamp that:
1. Splits splash into container/presentation components
2. Updates the default project count to 20 million
3. makes the api calls that get info from the api take in arguments rather than use the session
4. Updates `MapStateToProps` to be more specific in what it uses beyond just `session` and `permissions`
Thanks @rschamp!
2017-07-17 12:19:49 -04:00
Matthew Taylor
8c94a04e77
Move custom homepage row to new api endpoints
...
This goes along with https://github.com/LLK/scratch-api/pull/292 . This can be updated if we choose to migrate the `lovedByFollowing` endpoint off of proxy as well.
2017-07-13 15:35:18 -04:00
Matthew Taylor
ae53dcd746
Remove 10th banner
2017-05-15 11:08:15 -04:00
Matthew Taylor
00b80b40f3
Merge pull request #1295 from mewtaylor/issue/r2-4586
...
Implement r2-4586: Add anniversary banner
2017-05-01 07:35:31 -04:00
Matthew Taylor
d6f8b2fa9e
add card tutorial redirect
2017-04-28 13:43:18 -04:00
Matthew Taylor
a950c91725
Add studio link
2017-04-28 09:09:06 -04:00
Matthew Taylor
fc075aedaf
Add anniversary banner
2017-04-28 08:51:40 -04:00
Matthew Taylor
f2e4858868
Revert "[Master] Temp Hotfix: remove custom rows"
2017-04-18 06:36:39 -04:00
Matthew Taylor
5ca5c149f3
temporarily remove custom homepage rows
...
redis emptied when mc1 restarted, so this is all going to mysql at the moment
2017-04-11 09:27:19 -04:00
Matthew Taylor
9affc8441c
Revert "Merge pull request #1255 from LLK/release/branch"
...
This reverts commit c36bde2c30
, reversing
changes made to becae19f6f
.
2017-04-03 14:32:38 -04:00
Matthew Taylor
d8ef3110e2
don’t apply to top banners
2017-03-31 10:26:56 -04:00
Matthew Taylor
0e645ce954
Reset banner on new login
2017-03-31 10:00:40 -04:00
Matthew Taylor
d66e11fced
Banner updates
2017-03-31 09:02:54 -04:00
Matthew Taylor
3c3f1c2f8f
Remove HOC Banner
...
Reverts #1073
2016-12-15 15:58:29 -05:00
Matthew Taylor
eef7135a6d
Match tutorial ordering to ttt top row
...
Forgot to do this, sorry.
2016-12-01 08:35:44 -05:00
Matthew Taylor
55a73241d4
Merge pull request #1091 from mewtaylor/issue/hoc-event-row-tweaks
...
Turn off related videos in event row embed
2016-11-30 09:21:13 -05:00
Matthew Taylor
e9d6b58d5e
Turn off related videos in embed
...
See https://github.com/LLK/scratch-www/pull/1081#issuecomment-263746724 . Also adjusts padding to accommodate https://github.com/LLK/scratch-www/pull/1081#issuecomment-263747658 .
2016-11-30 08:33:15 -05:00
Matthew Taylor
435021658b
Move margin to flex-row element
...
so that the header elements are evently aligned vertically. fixes #1089
2016-11-30 08:28:05 -05:00
Matthew Taylor
f84df573a3
Add finalized video
...
but – let the record show: Who has two thumbs and is a Hufflepuff? I’M A HUFFLEPUFF!
2016-11-29 17:40:40 -05:00
Matthew Taylor
d63dcb19fd
Add event row text
...
somehow this got lost from the PR, not sure how.
2016-11-29 16:59:52 -05:00
Matthew Taylor
eb21456b51
Merge pull request #1081 from mewtaylor/feature/gh-982
...
Implement GH-982: Add hoc event row
2016-11-29 16:42:31 -05:00
Matthew Taylor
7e167cc441
Add temporary video for testing
2016-11-29 16:37:42 -05:00
Matthew Taylor
971c520f83
switch to column in tablet
...
since that’s whats in the specs, and it handles centering with `align-items`. Fixes #1083
2016-11-29 12:49:26 -05:00
Matthew Taylor
2daa882331
Add hoc event row
...
still missing the video for content, otherwise should be good to go
2016-11-29 11:13:00 -05:00
Matthew Taylor
636c27bdcb
Add “open” string to l10n.json
...
Fixes #1078 . This also fixes #1076 and https://github.com/LLK/scratch-www/issues/981#issuecomment-263301322 by updating the styling accordingly.
2016-11-29 08:59:14 -05:00
Matthew Taylor
c4f42b3673
Add hoc banner
2016-11-16 08:52:18 -05:00
Matthew Taylor
e65ba61e7a
Move padding to splash element
...
Having it in the nav was causing issues with positioning the banner, as evidenced by the teacher banner’s `-20px` setting
2016-11-16 08:51:57 -05:00
Matthew Taylor
24aa9be30d
fix for linting
2016-11-14 09:58:42 -05:00
Matthew Taylor
402efd8046
Some last tweaks
...
based on feedback from @rschamp, thanks!
1. make `ref` into method
2. remove accidental inclusion of prototype modal
3. use `omit` for props so that we don’t need a separate object for wrapped component properties
2016-11-10 17:13:44 -05:00
Matthew Taylor
d2474c87a5
Edits based on feedback
...
thanks @rschamp !
2016-11-10 15:00:33 -05:00
Matthew Taylor
c9de1d73d9
Refactor modal components
...
1. Split out base modal stylings from iframe modal stylings
2. Move iframe-specific stylings into a separate copmonent
3. Move width/height iframe stylings to scss
4. Change global stylings for modals to match #980
5. Update styles to use trello style guide
2016-11-08 14:44:03 -05:00
St19_Galla
bb20fa3375
single quotes whoops!
2016-10-13 17:31:57 -04:00
St19_Galla
5775cedc7a
add space
2016-10-13 17:26:46 -04:00
St19_Galla
d6680f129f
Update l10n.json
2016-10-13 17:25:44 -04:00
St19_Galla
e3452e3ea1
Add space in curator row
2016-10-13 15:51:17 -04:00
chrisgarrity
29b104741f
Added tests for duplicate strings in build-locales merge
...
Also took out default messages for strings that are in the l10n json files.
2016-10-12 09:41:06 -04:00
chrisgarrity
5b2ff1a4ca
Update md5map fixtures for tests
...
Also cleaned up comments from @mewtaylor
2016-10-11 19:28:13 -04:00
chrisgarrity
1339683a73
Fix #940
...
Most problems were due to strings being duplicated and overwriting each other. Updated the build-locales script to keep track of duplicates.
Project Curated by on the splash page was just missing the formatMessage call.
2016-10-11 12:33:31 -04:00
Ray Schamp
c0eb1608bd
Don't set state to undefined API response bodies
...
This resolves the "Cannot read property 'x' of undefined" errors that occur when the API returns non-JSON responses. For instance if the proxy endpoints return 500 error responses from scratchr2.
2016-09-08 17:23:49 -04:00
Matthew Taylor
4a0442695a
generalize “Educator Resources”
...
It was getting overwritten since it was defined in multiple places. fixes #840 .
2016-08-16 11:33:07 -04:00
Matthew Taylor
43add1ad35
Clean up some intl formatting
...
remove `defaultMessage` from inline, which we don’t use right now
2016-08-16 08:56:01 -04:00
Connor Hudson
f49d6e6a83
Merge pull request #767 from technoboy10/mobile-nav-footer
...
Fix GH-217: Implement responsive nav and footer (woohoo!)
2016-08-09 15:09:01 -04:00
Matthew Taylor
7cb14c17b9
Bind the api method to the splash page
...
otherwise, `this` is undefined. Fixes #673 .
2016-08-08 16:31:03 -04:00
Technoboy10
2a5f330884
hide intro if not desktop width
2016-07-26 11:29:45 -04:00
Technoboy10
daf803d4a3
experiment with the react-responsive library
2016-07-25 10:53:57 -04:00