Skip to content

Commit ff9d3d0

Browse files
feat(lab): new lab landing (#682)
* new lab landing * Build frontend * upd css * Build frontend --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ad16e64 commit ff9d3d0

File tree

21 files changed

+19982
-1362
lines changed

21 files changed

+19982
-1362
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ version: '2'
22

33
services:
44
mysql:
5-
image: 'mysql:8'
5+
image: 'mysql:8.0'
66
restart: on-failure
7+
command: --default-authentication-plugin=mysql_native_password
78
volumes:
89
- './dump/mysql:/dump'
910
- 'mysql-data:/var/lib/mysql'

www/application/classes/Controller/Landings.php

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -90,41 +90,14 @@ public function action_reactions()
9090
/**
9191
* Codex Editor Landing page
9292
* https://codex.so/editor
93+
* Redirects to https://editorjs.io
9394
*/
9495
public function action_editor()
9596
{
96-
$this->title = 'CodeX Editor';
97-
$this->description = 'Block style visual editor for beautiful pages';
98-
$this->view['version'] = $this->getEditorVersion();
99-
100-
/**
101-
* Detect visits from Product Hunt
102-
*/
103-
$isFromPH = $this->request->query('ref') === 'producthunt';
104-
105-
if ($isFromPH) {
106-
Cookie::set('from', 'producthunt', Date::YEAR * 3);
107-
}
108-
109-
$this->view['isFromPH'] = $isFromPH;
110-
111-
$landing = View::factory('templates/landings/editor', $this->view);;
112-
11397
/**
114-
* On editorjs.io we inject landing as an iframe
115-
* where we does not need a site header
98+
* Redirect to editorjs.io
11699
*/
117-
if ($this->request->query('frame') === '1') {
118-
$landing .= '
119-
<style>
120-
.site-header {
121-
display: none;
122-
}
123-
</style>
124-
';
125-
}
126-
127-
$this->template->content = $landing;
100+
$this->redirect('https://editorjs.io');
128101
}
129102

130103
/**

www/application/classes/Controller/Pages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function action_process_join_form()
107107

108108
if (!$fields['email'] && !$this->user->id) {
109109
$this->sendAjaxResponse(array(
110-
'message' => 'Log in or enter your email so that we can contact you.',
110+
'message' => 'Enter your contact information so that we can reach you.',
111111
'success' => 0
112112
));
113113
return;

www/application/views/templates/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</a>
3131
</div>
3232
<? else: ?>
33-
<a class="site-header__right fl_r" href="/auth/github" rel="nofollow">
33+
<a class="site-header__right site-header__login fl_r" href="/auth/github" rel="nofollow">
3434
<i class="site-header__github-icon icon-github-circled"></i>
3535
Login
3636
</a>

www/application/views/templates/landings/lab.php

Lines changed: 387 additions & 125 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)