File tree Expand file tree Collapse file tree 2 files changed +99
-0
lines changed Expand file tree Collapse file tree 2 files changed +99
-0
lines changed Original file line number Diff line number Diff line change
1
+ < html lang ="en ">
2
+ < head >
3
+ < meta charset ="UTF-8 ">
4
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
5
+ < link rel ="stylesheet " href ="styles.css ">
6
+ < script defer src ="script.js "> </ script >
7
+ < title > Custom URL Shortener </ title >
8
+ </ head >
9
+ < body >
10
+ < header >
11
+ < h1 >
12
+ Custom URL Shortener for The Software Clones Repo
13
+ </ h1 >
14
+ </ header >
15
+ < main >
16
+ < form method ="post ">
17
+ < div class ="card ">
18
+ < div class ="form-control ">
19
+ < label for ="url ">
20
+ URL: Enter the (https://) URL you want to generate a shorter URL for
21
+ </ label >
22
+ < input type ="text " name ="url " id ="url ">
23
+ </ div >
24
+ < div class ="form-control ">
25
+ < label for ="url ">
26
+ Slug (optional): This slug will be appended to the custom URL. Leave blank to generate automatically
27
+ </ label >
28
+ < input type ="text " name ="slug " id ="slug ">
29
+ </ div >
30
+ < div class ="action ">
31
+ < button onclick ="e.preventDefault() " type ="submit " > Generate</ button >
32
+ </ div >
33
+ < div class ="copyright ">
34
+ © < a href ="https://github.com/Software-clones "> Software Clones </ a >
35
+ </ div >
36
+ </ div >
37
+ </ form >
38
+ </ main >
39
+ </ body >
40
+ </ html >
Original file line number Diff line number Diff line change
1
+ * {
2
+ margin : 0 ;
3
+ padding : 0 ;
4
+ box-sizing : border-box;
5
+ font-family : inherit;
6
+ }
7
+
8
+ body {
9
+ font-family : 'Courier New' , Courier, monospace;
10
+ padding-left : 2rem ;
11
+ padding-right : 2rem ;
12
+ }
13
+
14
+ header h1 {
15
+ text-align : center;
16
+ }
17
+
18
+ @media screen and (max-width : 767px ){
19
+ h1 {
20
+ font-size : 1.5rem ;
21
+ }
22
+ }
23
+
24
+ .card {
25
+ border : 1px solid darkgray;
26
+ border-radius : 8px ;
27
+ padding : 1.5rem ;
28
+ max-width : 500px ;
29
+ margin : 20vh auto;
30
+
31
+ }
32
+ /* form items */
33
+ .form-control > * {
34
+ display : block;
35
+ padding : 2rem 0 ;
36
+ width : 100% ;
37
+ }
38
+ .form-control input {
39
+ min-height : 3rem ;
40
+ padding : inherit;
41
+ padding-left : 1rem ;
42
+ font-size : inherit;
43
+ }
44
+ .action {
45
+ margin : 2rem 0 ;
46
+ }
47
+ button [type = "submit" ]{
48
+ width : 100% ;
49
+ font-size : 1.5rem ;
50
+ padding : 20px ;
51
+ cursor : pointer;
52
+ }
53
+ .copyright {
54
+ padding-top : 1rem ;
55
+ text-align : right;
56
+ }
57
+ .copyright a {
58
+ text-decoration : none;
59
+ }
You can’t perform that action at this time.
0 commit comments