Skip to content

Commit 6d99773

Browse files
committed
form css created
1 parent 7bb9fcb commit 6d99773

File tree

3 files changed

+73
-4
lines changed

3 files changed

+73
-4
lines changed

create.html

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Create Blog</title>
7+
<link rel="stylesheet" href="style.css" />
8+
<script src="./js/create.js" defer></script>
79
</head>
8-
<body></body>
10+
<body>
11+
<nav class="navbar container">
12+
<div class="brand">
13+
<a href="./index.html"> Blog </a>
14+
</div>
15+
<div class="menu">
16+
<a href="./index.html">Home</a>
17+
<a href="./create.html">Create</a>
18+
</div>
19+
</nav>
20+
<section class="form container">
21+
<h1>Create A Blog</h1>
22+
<form id="blogForm" method="post">
23+
<label for="author">Author : </label>
24+
<input type="text" name="author" id="author" autocomplete="off" />
25+
<label for="title">Title : </label>
26+
<input type="text" name="title" id="title" autocomplete="off" />
27+
<label for="body">Body : </label>
28+
<input type="text" name="body" id="body" autocomplete="off" />
29+
<button type="submit">Create Blog</button>
30+
</form>
31+
</section>
32+
</body>
933
</html>

details.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Blog Details</title>
7+
<link rel="stylesheet" href="style.css" />
8+
<script src="./js/details.js" defer></script>
79
</head>
8-
<body></body>
10+
<body>
11+
<nav class="navbar container">
12+
<div class="brand">
13+
<a href="./index.html"> Blog </a>
14+
</div>
15+
<div class="menu">
16+
<a href="./index.html">Home</a>
17+
<a href="./create.html">Create</a>
18+
</div>
19+
</nav>
20+
</body>
921
</html>

style.css

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ h1 {
4949
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.16);
5050
padding: 20px 40px;
5151
margin-bottom: 30px;
52-
transition: 0.05s;
52+
transition: 0.1s;
53+
border-left: 5px rgba(0, 0, 0, 0) solid;
5354
}
5455

5556
.card:hover {
56-
transform: scale(1.01);
57+
border-left: 5px red solid;
5758
}
5859

5960
.card h3 {
@@ -64,3 +65,35 @@ h1 {
6465
.card .author {
6566
text-align: end;
6667
}
68+
69+
#blogForm,
70+
button {
71+
font-size: 25px;
72+
margin: 10px;
73+
}
74+
75+
#blogForm label {
76+
color: rgb(83, 27, 133);
77+
}
78+
#blogForm button {
79+
font-size: 20px;
80+
color: white;
81+
background-color: blueviolet;
82+
padding: 10px 20px;
83+
border-radius: 9999px;
84+
}
85+
#blogForm button:focus {
86+
outline: none;
87+
}
88+
#blogForm button:hover {
89+
background-color: rgb(104, 32, 170);
90+
}
91+
#blogForm input {
92+
font-size: 20px;
93+
display: block;
94+
margin: 16px 0;
95+
margin-bottom: 45px;
96+
padding: 6px 10px;
97+
width: 100%;
98+
border: 1px solid #ddd;
99+
}

0 commit comments

Comments
 (0)