diff --git a/config.php b/config.php index 6bdfae2..1eede97 100644 --- a/config.php +++ b/config.php @@ -1,4 +1,7 @@ diff --git a/lang/en.php b/lang/en.php new file mode 100644 index 0000000..e35d93d --- /dev/null +++ b/lang/en.php @@ -0,0 +1,15 @@ + diff --git a/lang/ja.php b/lang/ja.php new file mode 100644 index 0000000..5214443 --- /dev/null +++ b/lang/ja.php @@ -0,0 +1,15 @@ + diff --git a/views/includes/footer.php b/views/includes/footer.php index 1e55daa..7a1bf16 100644 --- a/views/includes/footer.php +++ b/views/includes/footer.php @@ -1,7 +1,7 @@ diff --git a/views/includes/header.php b/views/includes/header.php index bec8749..26d6972 100644 --- a/views/includes/header.php +++ b/views/includes/header.php @@ -2,17 +2,14 @@ + + <?php echo $title; ?> - -

-
+

+ <?php echo LOC_LOGO; ?> +

+
diff --git a/views/index.php b/views/index.php index aff294f..d13fdfc 100644 --- a/views/index.php +++ b/views/index.php @@ -1,10 +1,20 @@ - URLをご入力下さい。 +

+ +

+
+
+ +
+

+
- +
+ +
diff --git a/views/submitted.php b/views/submitted.php index 8c86316..71dc8e7 100644 --- a/views/submitted.php +++ b/views/submitted.php @@ -1,6 +1,6 @@ - 下記のURLからアクセス出来ます。
+


- トップページに戻る + diff --git a/www/index.php b/www/index.php index d84b4b3..da4bf69 100644 --- a/www/index.php +++ b/www/index.php @@ -1,8 +1,17 @@ 500) { - $title = '076エラー - 不正なURL'; - $h1 = '【エラー】URLは長すぎ'; - $bg = 'daityan'; - $bgpos = 'top right 100px'; + $title .= '〜'.LOC_FUSEINA_URL; $err = 'URLは500文字以内です。'; include_once('../views/404.php'); exit; @@ -67,9 +70,8 @@ exit; } else if (!isset($_GET['url']) && isset($_GET['newurl'])) { + $title .= '〜'.LOC_TANSYUKUZUMI; $newurl = $_GET['newurl']; - $bg = 'kasen'; - $bgpos = 'top 10px left 120px'; include_once('../views/submitted.php'); } else if (isset($_GET['url']) && $_GET['url'] != '') { @@ -86,26 +88,19 @@ exit; } else { - $title = '076エラー - 未検出'; - $h1 = '【404】未検出'; - $bg = 'daityan'; - $bgpos = 'top right 100px'; - $err = 'このURLを見つけられませんでした。'; + $title .= '〜'.LOC_MIKENSYUTU; + $err = LOC_ERROR_URL_MITUKAREMASEN; include_once('../views/404.php'); } } } else if (!isset($_GET['url']) && $_SERVER['REQUEST_URI'] == '/') { - $bg = 'rumia'; - $bgpos = 'top -30px right 90px'; + $title .= '〜'.LOC_TOP; include_once('../views/index.php'); } else { - $title = '076エラー - 未検出'; - $h1 = '【404】未検出'; - $bg = 'daityan'; - $bgpos = 'top right 100px'; - $err = 'このURLを見つけられませんでした。'; + $title .= '〜'.LOC_MIKENSYUTU; + $err = LOC_ERROR_URL_MITUKAREMASEN; include_once('../views/404.php'); } ?> diff --git a/www/static/daityan.png b/www/static/daityan.png deleted file mode 100644 index c30d78a..0000000 Binary files a/www/static/daityan.png and /dev/null differ diff --git a/www/static/kasen.png b/www/static/kasen.png deleted file mode 100644 index 32902e6..0000000 Binary files a/www/static/kasen.png and /dev/null differ diff --git a/www/static/logo.jpg b/www/static/logo.jpg new file mode 100644 index 0000000..9b9eaac Binary files /dev/null and b/www/static/logo.jpg differ diff --git a/www/static/rumia.png b/www/static/rumia.png deleted file mode 100644 index 5dd5cda..0000000 Binary files a/www/static/rumia.png and /dev/null differ diff --git a/www/static/style.css b/www/static/style.css index 0a1a993..fea2ed9 100644 --- a/www/static/style.css +++ b/www/static/style.css @@ -14,29 +14,17 @@ hr { width: 100%; } -h1, .footer { - text-align: center; +.headerimg { + border: 1px solid #f2f; + box-shadow: 0px 0px 11px 5px #f0f; } -h1 { - padding-bottom: 60px; -} - -h1 > span { - background-color: rgba(35, 38, 41, 0.8); -} - -.nihongo { - background-color: rgba(33, 8, 43, 0.8); - border: 1px #f2f groove; - color: #d6a9d6; - max-width: 830px; - padding: 4px; - margin: 8px auto; -} - -.nihongo > a { - color: #ffeb3b; +.body { + margin: 0 auto; + max-width: 800px; + background-color: #21082b; + padding: 8px; + box-shadow: 0px 0px 11px 5px #f0f; } .form { @@ -45,14 +33,31 @@ h1 > span { } input[type="text"], input[type="submit"] { - background-color: #683c7a; - color: #fcfcfc; border: 1px #f9f groove; - border-radius: 2px; - margin: 4px; auto; + margin: 4px auto; } input[type="text"] { - width: 98%; - max-width: 820px; + width: 99%; + max-width: 700px; + border-color: #d6a9d6; +} + +input { + background-color: #683c7a; + font-size: 24px; + border-radius: 4px; +} + +.body, input { + color: #d6a9d6; + border: 1px #ff3b3b groove; +} + +.submit, .footer, h1, .switchlang { + text-align: center; +} + +.submit, .footer, h1 { + margin-top: 32px; }