Skip to content

Commit f8df759

Browse files
authored
Merge pull request #8 from jNullj/new_design
Improved site design, closes #8 , closes #7
2 parents 55aaa5b + 22bc171 commit f8df759

File tree

2 files changed

+62
-23
lines changed

2 files changed

+62
-23
lines changed

index.php

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,42 @@
77
<html>
88
<head>
99
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
10+
<link rel="stylesheet" type="text/css" href="style.css">
1011
<title>Null's Text Decorator</title>
1112
</head>
1213
<body>
13-
<h1>Null's Text Decorator</h1>
14+
<div id="header">
15+
<h1>Null's Text Decorator</h1>
16+
</div>
1417
<br />
15-
<form action="index.php" method="post">
1618
<br />
17-
<?php
18-
if (isset($_POST["step2"]))
19-
{
20-
?>
21-
Enter your text here → <input type="text" name="input" value="<?=$_POST["input"]; ?>" />
22-
<br />
23-
Circled text: <input type="text" name="cool1" value="<?=$dec->cycle($_POST["input"]); ?>" readonly />
24-
<br />
25-
Leet text: <input type="text" name="cool1" value="<?=$dec->leet($_POST["input"]); ?>" readonly />
26-
<?php
27-
}
28-
else
29-
{
30-
?>
31-
Enter your text here → <input type="text" name="input" />
32-
<?php
33-
}
34-
?>
35-
<br />
36-
<input type="submit" name="step2" />
37-
</form>
19+
<div id="main">
20+
<form action="index.php" method="post">
21+
<table>
22+
<?php
23+
if (isset($_POST["step2"]))
24+
{
25+
?>
26+
<tr><th>
27+
Enter your text here → </th><th><input type="text" name="input" value="<?=$_POST["input"]; ?>" /></th>
28+
</tr><tr><th>
29+
Circled text: </th><th><input type="text" name="cool1" value="<?=$dec->cycle($_POST["input"]); ?>" readonly /></th>
30+
</tr><tr><th>
31+
Leet text: </th><th><input type="text" name="cool1" value="<?=$dec->leet($_POST["input"]); ?>" readonly /></th>
32+
</tr>
33+
<?php
34+
}
35+
else
36+
{
37+
?>
38+
<tr><th>
39+
Enter your text here → </th><th><input type="text" name="input" /></th></tr>
40+
<?php
41+
}
42+
?>
43+
<tr><th colspan="2" class="submit"><input class="submitButton" type="submit" name="step2" value="Decorate" /></th></tr>
44+
</table>
45+
</form>
46+
</div>
3847
</body>
3948
</html>

style.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
Created on : 14/09/2016, 16:24:40
3+
Author : jNullj
4+
*/
5+
6+
7+
body{
8+
background-color: #545454;
9+
color: whitesmoke;
10+
}
11+
#header{
12+
text-align: center;
13+
}
14+
#header h1{
15+
color: white;
16+
text-shadow: white 0 0 12px;
17+
font-size: 300%;
18+
}
19+
#main{
20+
width: 100%;
21+
text-align: center;
22+
}
23+
#main table{
24+
text-align: left;
25+
margin-left: auto;
26+
margin-right: auto;
27+
}
28+
.submit{
29+
text-align: center;
30+
}

0 commit comments

Comments
 (0)