Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
237e6637
Commit
237e6637
authored
Oct 23, 2015
by
Matthew Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add registration component to `JOIN SCRATCH`
fixes #122
parent
be6358fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
src/components/intro/intro.jsx
src/components/intro/intro.jsx
+17
-1
No files found.
src/components/intro/intro.jsx
View file @
237e6637
...
@@ -5,6 +5,7 @@ var FormattedMessage = ReactIntl.FormattedMessage;
...
@@ -5,6 +5,7 @@ var FormattedMessage = ReactIntl.FormattedMessage;
var
FormattedHTMLMessage
=
ReactIntl
.
FormattedHTMLMessage
;
var
FormattedHTMLMessage
=
ReactIntl
.
FormattedHTMLMessage
;
var
Modal
=
require
(
'
../modal/modal.jsx
'
);
var
Modal
=
require
(
'
../modal/modal.jsx
'
);
var
Registration
=
require
(
'
../registration/registration.jsx
'
);
require
(
'
./intro.scss
'
);
require
(
'
./intro.scss
'
);
...
@@ -31,6 +32,17 @@ var Intro = React.createClass({
...
@@ -31,6 +32,17 @@ var Intro = React.createClass({
closeVideo
:
function
()
{
closeVideo
:
function
()
{
this
.
setState
({
videoOpen
:
false
});
this
.
setState
({
videoOpen
:
false
});
},
},
handleJoinClick
:
function
(
e
)
{
e
.
preventDefault
();
this
.
setState
({
'
registrationOpen
'
:
true
});
},
closeRegistration
:
function
()
{
this
.
setState
({
'
registrationOpen
'
:
false
});
},
completeRegistration
:
function
()
{
window
.
refreshSession
();
this
.
closeRegistration
();
},
render
:
function
()
{
render
:
function
()
{
var
frameSettings
=
{
var
frameSettings
=
{
width
:
570
,
width
:
570
,
...
@@ -77,7 +89,7 @@ var Intro = React.createClass({
...
@@ -77,7 +89,7 @@ var Intro = React.createClass({
defaultMessage=
'SEE EXAMPLES'
/>
defaultMessage=
'SEE EXAMPLES'
/>
</
div
>
</
div
>
</
a
>
</
a
>
<
a
className=
"sprite sprite-3"
href=
"#"
>
<
a
className=
"sprite sprite-3"
href=
"#"
onClick=
{
this
.
handleJoinClick
}
>
<
img
<
img
className=
"costume costume-1"
className=
"costume costume-1"
src=
"//cdn.scratch.mit.edu/scratchr2/static/images/gobo-a.png"
/>
src=
"//cdn.scratch.mit.edu/scratchr2/static/images/gobo-a.png"
/>
...
@@ -92,6 +104,10 @@ var Intro = React.createClass({
...
@@ -92,6 +104,10 @@ var Intro = React.createClass({
</
div
>
</
div
>
<
div
className=
"text subtext"
>
( it
’
s free )
</
div
>
<
div
className=
"text subtext"
>
( it
’
s free )
</
div
>
</
a
>
</
a
>
<
Registration
key=
"registration"
isOpen=
{
this
.
state
.
registrationOpen
}
onRequestClose=
{
this
.
closeRegistration
}
onRegistrationDone=
{
this
.
completeRegistration
}
/>
</
div
>
</
div
>
<
div
className=
"description"
>
<
div
className=
"description"
>
A creative learning community with
A creative learning community with
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment