Skip to content

Commit

Permalink
delete no_js files
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbyrne committed Sep 23, 2024
1 parent f99acd0 commit 3a69bf6
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 85 deletions.
4 changes: 0 additions & 4 deletions app/controllers/static_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ class StaticController < ApplicationController
def index
end

def no_js
render(layout: "layouts/no_js")
end

private

def redirect_if_current_publisher
Expand Down
21 changes: 0 additions & 21 deletions app/views/layouts/no_js.html.slim

This file was deleted.

63 changes: 62 additions & 1 deletion app/views/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1,62 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="https://creators.brave.com/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="manifest" href="https://creators.brave.com/manifest.json"/><title>Earn more for content you publish to the web - Brave Creators</title><meta property="og:title" content="Earn more for content you publish to the web - Brave Creators"/><meta property="og:description" content="Viewers who use the Brave Browser may have contributed money to you while surfing the web through Brave Creators. Simply sign up as a verified content creator on Brave Creators to start collecting your contributions."/><meta property="og:image" content="https://creators.brave.com/preview.png"/><meta property="og:type" content="website"/><meta property="og:url" content="https://creators.brave.com"/><script defer="defer" src="/static/js/main.e7e2a61a.js" defer></script><link href="/static/css/main.4cb5f7de.css" rel="stylesheet"></head><body><noscript><meta http-equiv="refresh" content="0;url=no_js"/></noscript><div id="root"><div class="full-page-loader"><picture><source srcset="./brave-logo-lion.webp" type="image/webp"/><source srcset="./brave-logo-lion.png" type="image/png"/><img width="80" src="./brave-logo-lion.png" alt="Brave"/></picture></div></div><style>.full-page-loader{display:flex;align-items:center;flex-direction:column;justify-content:center;position:absolute;top:0;right:0;left:0;bottom:0;background:linear-gradient(-45deg,#2a1fad 0,#a91b78 100%);background-size:150% 150%}</style></body></html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link
rel="shortcut icon"
href="https://creators.brave.com/favicon.ico"
/>
<meta
name="viewport"
content="width=device-width,initial-scale=1,shrink-to-fit=no"
/>
<link rel="manifest" href="https://creators.brave.com/manifest.json" />
<title>
Earn more for content you publish to the web - Brave Creators
</title>
<meta
property="og:title"
content="Earn more for content you publish to the web - Brave Creators"
/>
<meta
property="og:description"
content="Viewers who use the Brave Browser may have contributed money to you while surfing the web through Brave Creators. Simply sign up as a verified content creator on Brave Creators to start collecting your contributions."
/>
<meta
property="og:image"
content="https://creators.brave.com/preview.png"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://creators.brave.com" />
<script defer="defer" src="/static/js/main.e7e2a61a.js" defer></script>
<link href="/static/css/main.4cb5f7de.css" rel="stylesheet" />
</head>
<body>
<div id="root">
<div class="full-page-loader">
<picture
><source
srcset="./brave-logo-lion.webp"
type="image/webp" />
<source srcset="./brave-logo-lion.png" type="image/png" />
<img width="80" src="./brave-logo-lion.png" alt="Brave"
/></picture>
</div>
</div>
<style>
.full-page-loader {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: linear-gradient(-45deg, #2a1fad 0, #a91b78 100%);
background-size: 150% 150%;
}
</style>
</body>
</html>
30 changes: 0 additions & 30 deletions app/views/static/no_js.html.slim

This file was deleted.

13 changes: 0 additions & 13 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -972,19 +972,6 @@ en:
alert: Could not verify at this moment. Please check you've updated details correctly, wait a bit and try again.
success: Channel verified!
awaiting_admin_approval: Verification is almost complete! We've notified an admin who will review and finalize your channel.
static:
no_js:
welcome: Welcome to
header: Brave Creators
body_html: |
<p class="leadin">Are you a social media creator interested in monetizing
your content? Verify your site and unlock your contributions!</p>
<p>Brave Creators lets Brave users contribute tokens to you. Simply follow the steps to register with us.</p>
new:
header: New to Brave Creators?
body: Start verification by entering your email.
login:
body: Log in to your dashboard.
two_factor_authentications:
totp:
heading: Two-factor Authentication
Expand Down
12 changes: 0 additions & 12 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -908,18 +908,6 @@ ja:
alert: 現在、検証できませんでした。 詳細を正しく更新したことを確認し、少し待ってからもう一度お試しください。
success: チャンネルの検証が完了しました
awaiting_admin_approval: 検証はほぼ完了しています。レビューと最終承認を確認する担当者に通知しました。
static:
no_js:
welcome: ようこそ
header: Brave Creatorsへ
body_html: |
<p class="leadin">ウェブサイトをお持ちですか?または <strong>YouTube</strong>にチャンネルをお持ちでコンテンツの収益化にご興味がありますか?サイトを認証することで送られた支援を受け取ることができます。</p>
<p>Brave Creatorsを通じてBraveを使っているユーザからトークンで応援を受け取ることができます。以下の簡単なステップで登録を完了しましょう!たくさんのユーザから支援を受けられる可能性があります。</p>
new:
header: Brave Creatorsを利用するのははじめてですか?
body: メールを入力して認証を開始します。
login:
body: ダッシュボードにログインします。
two_factor_authentications:
totp:
heading: 二要素認証
Expand Down
1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
resources :faqs, only: [:index]

root "static#index"
get "no_js", controller: "static"
get "sign-up", to: "static#index"
get "log-in", to: "static#index"

Expand Down
3 changes: 0 additions & 3 deletions public/creators-landing/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
</head>

<body>
<noscript>
<meta http-equiv="refresh" content="0;url=no_js" />
</noscript>
<div id="root">
<div class="full-page-loader">
<picture>
Expand Down

0 comments on commit 3a69bf6

Please sign in to comment.