Skip to content

Commit c1c46fe

Browse files
Merge pull request #1499 from ak-sh-at/main
Github Profile Wrapper (overflow problem solved , added some CSS also)
2 parents 0adaf4b + 38f7930 commit c1c46fe

2 files changed

Lines changed: 61 additions & 10 deletions

File tree

Projects/Github Profile Wrapper/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
<meta charset="UTF-8">
44
<meta http-equiv="X-UA-Compatible" content="IE=edge">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link rel="preconnect" href="https://fonts.googleapis.com">
7+
<link rel="preconnect" href="https://fonts.googleapis.com">
8+
<link rel="preconnect" href="https://fonts.googleapis.com">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=Courgette&display=swap" rel="stylesheet">
11+
<link rel="preconnect" href="https://fonts.googleapis.com">
12+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13+
<link href="https://fonts.googleapis.com/css2?family=Kalam&display=swap" rel="stylesheet">
14+
615
<link rel="stylesheet" href="style.css">
716
<title>Github Profile Wrapper</title>
817
</head>
@@ -11,7 +20,7 @@
1120
<div class="container">
1221
<div class="main">
1322
<div class="srch">
14-
<h1>Github Profile Wrapper</h1>
23+
<h2>Github Profile Wrapper</h2>
1524

1625
</div>
1726
<div class="search-container">

Projects/Github Profile Wrapper/style.css

Lines changed: 51 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
@import url('https://fonts.googleapis.com/css2?family=DynaPuff&display=swap');
32
@import url('https://fonts.googleapis.com/css2?family=DynaPuff&family=Mukta:wght@300&display=swap');
43
::-webkit-scrollbar {
@@ -28,7 +27,14 @@ body {
2827
background-image: url("bg.png");
2928
color: rgb(212 212 212);
3029
}
31-
30+
h2{
31+
font-family: 'Kalam', cursive;
32+
}
33+
@media (min-width: 470px) {
34+
#search-btn {
35+
width:50px;
36+
}
37+
}
3238
.container {
3339
width: 100%;
3440
height: 100%;
@@ -39,8 +45,8 @@ body {
3945
}
4046
.main {
4147
padding: 5%;
42-
width: 30%;
43-
height: 30%;
48+
width: 32%;
49+
height: 32%;
4450
display: flex;
4551
flex-direction: column;
4652
justify-content: center;
@@ -73,7 +79,7 @@ body {
7379
}
7480

7581
.search-container:hover > #search-input {
76-
width: 400px;
82+
width: 300px;
7783
}
7884

7985
.search-container #search-input {
@@ -92,9 +98,10 @@ body {
9298

9399
#search-btn {
94100
font-size: 15px;
95-
font-family: Arial;
101+
font-family: 'Kalam', cursive;
102+
letter-spacing: 1px;
96103
width: 140px;
97-
height: 50px;
104+
height: 40px;
98105
border-width: 1px;
99106
color: #fff;
100107
border-color: rgba(29, 30, 29, 1);
@@ -107,6 +114,40 @@ body {
107114
text-shadow: 1px 1px 0px rgba(15, 15, 15, 1);
108115
background-color: transparent;
109116
}
117+
#search-btn:hover{
118+
background-color: bisque;
119+
color: #000000;
120+
box-shadow: 2px 3px grey;
121+
}
122+
@media (max-width: 470px) {
123+
#search-btn {
124+
width:70px;
125+
height:25px;
126+
font-size: small;
127+
}
128+
}
129+
@media (max-width: 299px) {
130+
h2{
131+
font-size:small ;
132+
}
133+
#search-btn {
134+
width:50px;
135+
height:25px;
136+
font-size: small;
137+
}
138+
}
139+
@media (max-width: 182px) {
140+
h2{
141+
font-size:x-small ;
142+
}
143+
#search-btn {
144+
width:25px;
145+
height:20px;
146+
font-size:x-small;
147+
letter-spacing: 0;
148+
}
149+
150+
}
110151
.card{
111152

112153

@@ -139,7 +180,8 @@ body {
139180
align-items: center;
140181
}
141182
.round{
142-
183+
height:88%;
184+
width: 88%;
143185
align-items: center;
144186
border: 1px solid #03BFCB;
145187
border-radius: 50%;
@@ -171,4 +213,4 @@ body {
171213
color: aliceblue;
172214
text-decoration: none;
173215
font-size: large;
174-
}
216+
}

0 commit comments

Comments
 (0)