Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hubs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
ar-noc
Hubs
Commits
31293a91
Commit
31293a91
authored
6 years ago
by
Greg Fodor
Browse files
Options
Downloads
Patches
Plain Diff
Show link for link code on homepage
parent
6c9e9a83
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/assets/stylesheets/index.scss
+49
-2
49 additions, 2 deletions
src/assets/stylesheets/index.scss
src/assets/translations.data.json
+2
-1
2 additions, 1 deletion
src/assets/translations.data.json
src/react-components/home-root.js
+14
-0
14 additions, 0 deletions
src/react-components/home-root.js
with
65 additions
and
3 deletions
src/assets/stylesheets/index.scss
+
49
−
2
View file @
31293a91
...
@@ -57,16 +57,20 @@ body {
...
@@ -57,16 +57,20 @@ body {
min-height
:
90px
;
min-height
:
90px
;
height
:
90px
;
height
:
90px
;
display
:
flex
;
display
:
flex
;
border-bottom
:
2
px
solid
#242424
;
border-bottom
:
1
px
solid
#242424
;
&
__title
{
&
__title
{
flex
:
10
;
display
:
flex
;
display
:
flex
;
flex
:
10
;
@media
(
max-width
:
768px
)
{
@media
(
max-width
:
768px
)
{
justify-content
:
center
;
justify-content
:
center
;
}
}
@media
(
max-width
:
1024px
)
{
flex
:
1
1
350px
;
}
&
__name
{
&
__name
{
width
:
200px
;
width
:
200px
;
}
}
...
@@ -77,12 +81,33 @@ body {
...
@@ -77,12 +81,33 @@ body {
}
}
}
}
&
__entry-code
{
@media
(
max-width
:
1024px
)
{
display
:
none
;
}
flex
:
10
;
padding
:
1
.5em
2
.5em
1
.5em
2
.5em
;
background-color
:
rgba
(
0
,
0
,
0
,
0
.85
);
text-align
:
center
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
align-items
:
center
;
&
__link
{
color
:
white
;
text-decoration-color
:
$light-grey
;
}
}
&
__experiment
{
&
__experiment
{
text-align
:
right
;
text-align
:
right
;
flex
:
1
1
350px
;
flex
:
1
1
350px
;
color
:
$grey-text
;
color
:
$grey-text
;
font-size
:
1
.0em
;
font-size
:
1
.0em
;
font-weight
:
lighter
;
font-weight
:
lighter
;
white-space
:
nowrap
;
@media
(
max-width
:
768px
)
{
@media
(
max-width
:
768px
)
{
display
:
none
;
display
:
none
;
...
@@ -117,6 +142,28 @@ body {
...
@@ -117,6 +142,28 @@ body {
}
}
}
}
.header-subtitle
{
@media
(
min-width
:
1024px
)
{
display
:
none
;
}
padding
:
1
.5em
2
.5em
1
.5em
2
.5em
;
background-color
:
rgba
(
0
,
0
,
0
,
0
.85
);
text-align
:
center
;
min-height
:
15px
;
height
:
15px
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
align-items
:
center
;
border-bottom
:
2px
solid
#242424
;
&
__link
{
color
:
white
;
text-decoration-color
:
$light-grey
;
}
}
.hero-content
{
.hero-content
{
flex
:
10
;
flex
:
10
;
min-height
:
740px
;
min-height
:
740px
;
...
...
This diff is collapsed.
Click to expand it.
src/assets/translations.data.json
+
2
−
1
View file @
31293a91
...
@@ -59,10 +59,11 @@
...
@@ -59,10 +59,11 @@
"home.made_with_love"
:
"made with 🦆 by "
,
"home.made_with_love"
:
"made with 🦆 by "
,
"home.environment_author_by"
:
" by "
,
"home.environment_author_by"
:
" by "
,
"home.dialog.close"
:
"CLOSE"
,
"home.dialog.close"
:
"CLOSE"
,
"home.have_entry_code"
:
"Have a link code?"
,
"mailing_list.privacy_label"
:
"I'm okay with Mozilla handling my info as explained in"
,
"mailing_list.privacy_label"
:
"I'm okay with Mozilla handling my info as explained in"
,
"mailing_list.privacy_link"
:
"this Privacy Notice"
,
"mailing_list.privacy_link"
:
"this Privacy Notice"
,
"link.in_your_browser"
:
"In your device's browser, go to:"
,
"link.in_your_browser"
:
"In your device's browser, go to:"
,
"link.enter_code"
:
"Then, enter this code:"
,
"link.enter_code"
:
"Then, enter this
link
code:"
,
"link.do_not_close"
:
"Keep this dialog open to use this code."
,
"link.do_not_close"
:
"Keep this dialog open to use this code."
,
"link.link_page_header"
:
"Enter your code:"
,
"link.link_page_header"
:
"Enter your code:"
,
"link.dont_have_a_code"
:
"Don't have a code?"
,
"link.dont_have_a_code"
:
"Don't have a code?"
,
...
...
This diff is collapsed.
Click to expand it.
src/react-components/home-root.js
+
14
−
0
View file @
31293a91
...
@@ -99,6 +99,13 @@ class HomeRoot extends Component {
...
@@ -99,6 +99,13 @@ class HomeRoot extends Component {
<
img
className
=
"
header-content__title__name
"
src
=
"
../assets/images/logo.svg
"
/>
<
img
className
=
"
header-content__title__name
"
src
=
"
../assets/images/logo.svg
"
/>
<
div
className
=
"
header-content__title__preview
"
>
preview
<
/div
>
<
div
className
=
"
header-content__title__preview
"
>
preview
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"
header-content__entry-code
"
>
<
div
>
<
a
className
=
"
header-content__entry-code__link
"
href
=
"
/link
"
>
<
FormattedMessage
id
=
"
home.have_entry_code
"
/>
<
/a
>
<
/div
>
<
/div
>
<
div
className
=
"
header-content__experiment
"
>
<
div
className
=
"
header-content__experiment
"
>
<
div
className
=
"
header-content__experiment__container
"
>
<
div
className
=
"
header-content__experiment__container
"
>
<
img
src
=
"
../assets/images/webvr_cube.svg
"
className
=
"
header-content__experiment__icon
"
/>
<
img
src
=
"
../assets/images/webvr_cube.svg
"
className
=
"
header-content__experiment__icon
"
/>
...
@@ -132,6 +139,13 @@ class HomeRoot extends Component {
...
@@ -132,6 +139,13 @@ class HomeRoot extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"
header-subtitle
"
>
<
div
>
<
a
className
=
"
header-subtitle__link
"
href
=
"
/link
"
>
<
FormattedMessage
id
=
"
home.have_entry_code
"
/>
<
/a
>
<
/div
>
<
/div
>
<
div
className
=
"
hero-content
"
>
<
div
className
=
"
hero-content
"
>
<
div
className
=
"
hero-content__attribution
"
>
<
div
className
=
"
hero-content__attribution
"
>
Medieval
Fantasy
Book
by
{
"
"
}
Medieval
Fantasy
Book
by
{
"
"
}
...
...
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