Skip to content

Commit 355fd90

Browse files
committed
Microsoft Logo Added
1 parent 6c037e5 commit 355fd90

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
| 36 | [Skills Bar](https://github.com/sahilatahar/HTML-CSS-JavaScript/tree/main/skills-bar) | [Live Demo](https://sahilatahar.github.io/HTML-CSS-JavaScript/skills-bar/) |
4545
| 37 | [Custom Date Input](https://github.com/sahilatahar/HTML-CSS-JavaScript/tree/main/custom-date-input) | [Live Demo](https://sahilatahar.github.io/HTML-CSS-JavaScript/custom-date-input/) |
4646
| 38 | [Social Media Card](https://github.com/sahilatahar/HTML-CSS-JavaScript/tree/main/social-media-card) | [Live Demo](https://sahilatahar.github.io/HTML-CSS-JavaScript/social-media-card/) |
47+
| 39 | [Microsoft Logo](https://github.com/sahilatahar/HTML-CSS-JavaScript/tree/main/microsoft-logo) | [Live Demo](https://sahilatahar.github.io/HTML-CSS-JavaScript/microsoft-logo/) |
4748

4849
### Disclaimer Regarding Ownership of this repository
4950

microsoft-logo/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Microsoft Logo</title>
8+
<link rel="stylesheet" href="style.css">
9+
</head>
10+
11+
<body>
12+
<main>
13+
<div class="logo">
14+
<span class="square"></span>
15+
<span class="square"></span>
16+
<span class="square"></span>
17+
<span class="square"></span>
18+
</div>
19+
<h1 class="brand-name">Microsoft</h1>
20+
</main>
21+
</body>
22+
23+
</html>

microsoft-logo/style.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
* {
2+
padding: 0;
3+
margin: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
min-height: 100vh;
9+
display: flex;
10+
justify-content: center;
11+
align-items: center;
12+
background-color: white;
13+
}
14+
15+
.logo {
16+
width: min(95vw, 400px);
17+
aspect-ratio: 1;
18+
display: flex;
19+
flex-wrap: wrap;
20+
justify-content: space-evenly;
21+
gap: .8rem;
22+
padding: .8rem;
23+
background-color: white;
24+
box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, .1);
25+
}
26+
27+
.square {
28+
width: 48%;
29+
aspect-ratio: 1;
30+
}
31+
32+
.square:nth-child(1) {
33+
background-color: #f65314;
34+
}
35+
36+
.square:nth-child(2) {
37+
background-color: #7cbb00;
38+
}
39+
40+
.square:nth-child(3) {
41+
background-color: #00a1f1;
42+
}
43+
44+
.square:nth-child(4) {
45+
background-color: #ffbb00;
46+
}
47+
48+
.brand-name {
49+
width: 100%;
50+
text-align: center;
51+
font-size: 5.5rem;
52+
font-weight: 600;
53+
color: #666;
54+
margin-top: .5rem;
55+
}
56+
57+
@media screen and (max-width: 500px) {
58+
.brand-name {
59+
font-size: 3.5rem;
60+
}
61+
}

0 commit comments

Comments
 (0)