Skip to content

Commit 3592b71

Browse files
committed
Added style sheet and styles, separated js sheet
1 parent c7829ac commit 3592b71

File tree

3 files changed

+64
-19
lines changed

3 files changed

+64
-19
lines changed

style.css renamed to CSS/style.css

+51-15
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,50 @@
33
margin: 0;
44
padding:0;
55
box-sizing: border-box;
6+
scroll-behavior: smooth;
67
}
78
body{
8-
font-family: 'Roboto',sans-serif;
9-
background-color: #eee;
9+
font-family: 'Lato',sans-serif;
10+
background: linear-gradient( to right, #256e4c5b, #3c968e59, #0076864f, #28575354, #184b3350), url(../img/Abstract_Background.jpg);
11+
font-weight: 400;
12+
font-size: 16px;
13+
line-height: 1.7;
14+
color: rgb(85, 84, 84);
1015
margin-top:3px;
1116
}
12-
h1{
17+
18+
19+
.heading-primary-sub {
20+
font-family: 'Maiandra GD',sans-serif;
1321
font-weight: 400;
1422
font-size: 2.5rem;
1523
text-align: center;
1624
padding: 5px;
1725
margin: 10px;
1826
margin-top: 0px;
19-
text-decoration: underline;
20-
color: rgb(65, 63, 63);
27+
color: rgb(251, 255, 0);
28+
text-shadow: 0 0 8px rgb(39, 39, 30);
29+
display: block;
30+
animation: moveInRight 2s ease-in-out;
31+
animation-delay: 0.01s;
32+
animation-fill-mode: backwards;
2133
}
34+
35+
.glow {
36+
text-shadow: 0 0 10px #FCF6BA, 0 0 50px #FCF6BA;
37+
}
38+
2239
.main-container{
23-
box-shadow: 30px 0 40px rgba(0, 0, 0, 0.2), -30px 0 40px rgba(0, 0, 0, 0.2);
40+
box-shadow: 10px 10px 20px rgb(0, 0, 0);
2441
height: 80%;
25-
width:50%;
26-
padding: 20px;
27-
padding-left: 50px;
42+
width:65%;
43+
padding: 5%;
44+
padding-left: 3%;
2845
margin: auto;
29-
background: #fff;
46+
background: linear-gradient( to right,#3dd3c6, #89fbffda, #3f8882ab);
3047
align-items: center;
3148
border: 0.8px solid rgba(0, 0, 0, 0.3);
32-
border-radius: 15px;
49+
border-radius: 10px;
3350
}
3451

3552
.form1{
@@ -81,7 +98,7 @@ h1{
8198
.form2 tr th,
8299
.form2 tr td{
83100
padding:2px;
84-
padding-right: 7px;
101+
padding-right: 20px;
85102
}
86103
.form2 tr td input{
87104
padding: 4px;
@@ -94,9 +111,11 @@ h1{
94111
.submit{
95112
padding: 10px 20px;
96113
margin: 10px;
97-
border-radius:30px;
98-
border: 1px solid #000;
99-
background: rgb(219, 218, 218);
114+
border-radius:40%;
115+
border-right: 3px black outset;
116+
border-bottom: 3px black outset;
117+
background: linear-gradient( to right, rgba(255, 255, 255, 0.842), rgba(223, 224, 161, 0.829), rgba(255, 251, 0, 0.842));
118+
color: rgb(51, 51, 51);
100119
font-size: 20px;
101120
font-weight:lighter;
102121

@@ -108,3 +127,20 @@ h1{
108127
width: 80%;
109128
}
110129
}
130+
131+
@keyframes moveInRight {
132+
0% {
133+
opacity: 0;
134+
transform: translateX(100px);
135+
}
136+
50% {
137+
transform: translateX(-40px);
138+
}
139+
80% {
140+
transform: translateX(20px);
141+
}
142+
100% {
143+
opacity: 1;
144+
transform: translate(0);
145+
}
146+
}

img/Abstract_Background.jpg

715 KB
Loading

index.html

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
3+
34
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
9+
<link href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900" rel="stylesheet">
10+
11+
<link rel="stylesheet" href="CSS/style.css">
12+
413
<title>CGPA Calculator</title>
5-
<link rel="stylesheet" href="style.css">
6-
14+
715
</head>
16+
817
<body>
918
<div class="main-container">
10-
<h1>CGPA Estimator</h1>
19+
<span class="heading-primary-sub glow">CGPA Estimator</span>
1120
<form name="PresentCG" class="form1">
1221
<div class="form1-div">
1322
<label>Current CGPA </label><input type="number" step="any" name="current_cg" id="current_cg">

0 commit comments

Comments
 (0)