Skip to content

Commit a78f01f

Browse files
MN GAMERMN GAMER
MN GAMER
authored and
MN GAMER
committed
Added 'cloning the main page of Instagram.com' project
1 parent 805b21f commit a78f01f

31 files changed

+1191
-0
lines changed

Diff for: 1-exercise-solutions/instagram-project/icons/Instagram_Stories_ring.svg

+61
Loading
12.5 KB
Binary file not shown.
14.5 KB
Loading
21.3 KB
Loading
17.3 KB
Loading
2.34 KB
Loading
Loading
Loading
Loading
7.97 KB
Loading
4.43 KB
Loading
Loading
6.05 KB
Loading
Loading
5.11 KB
Loading
Loading

Diff for: 1-exercise-solutions/instagram-project/icons/tab.png

3.31 KB
Loading
18.7 KB
Loading
12.2 KB
Loading
38 KB
Binary file not shown.
Loading
237 KB
Loading
22.2 KB
Loading

Diff for: 1-exercise-solutions/instagram-project/index.html

+509
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
2+
body {
3+
padding-bottom: 2000px;
4+
margin: 0;
5+
font-family: Roboto;
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
.middle-page {
2+
position: relative;
3+
padding-left: 231px;
4+
}
5+
.stories {
6+
padding-top: 45px;
7+
padding-left: 0px;
8+
width: 720px;
9+
height: 120px;
10+
display: flex;
11+
justify-content: center;
12+
}
13+
.story {
14+
padding: 0px 10px 0px 10px;
15+
position: relative;
16+
width: 60px;
17+
display: flex;
18+
align-items: center;
19+
flex-direction: column;
20+
}
21+
.story-ring {
22+
width: 60px;
23+
}
24+
.profile-picture {
25+
position: absolute;
26+
width: 53px;
27+
top: 4px;
28+
border-radius: 25px;
29+
}
30+
.profile-name {
31+
padding-top: 6px;
32+
font-size: 13px;
33+
}
34+
/* Again, since the elements have the same class name, i put 'style="position: relative;"' only inside the last HTML element that includes the icon, aka 'more stories' */
35+
.more-stories {
36+
position: absolute;
37+
background-color: rgba(255, 255, 255, 0.89);
38+
color: rgba(0, 0, 0, 0.336);
39+
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
40+
top: 20px;
41+
right: 25px;
42+
padding: 1px 4.75px;
43+
border-radius: 10px;
44+
}
45+
46+
.spacing {
47+
margin-top: 1px;
48+
margin-bottom: 1px;
49+
}
50+
51+
.posts-container {
52+
width: 490px;
53+
margin-left: 115px;
54+
position: relative;
55+
border-bottom: 1px solid rgb(214, 212, 212);
56+
padding-bottom: 15px;
57+
padding-top: 20px;
58+
}
59+
.post-header {
60+
width: 490px;
61+
height: 45px;
62+
display: flex;
63+
justify-content: space-between;
64+
}
65+
.left-section {
66+
position: relative;
67+
top: 3px;
68+
left: 3px;
69+
display: flex;
70+
flex-direction: column;
71+
}
72+
.post-ring {
73+
position: absolute;
74+
width: 38px;
75+
border-radius: 32px;
76+
}
77+
.posts-profile-picture {
78+
position: absolute;
79+
width: 34px;
80+
border-radius: 32px;
81+
top: 2.4px;
82+
left: 2.1px;
83+
}
84+
.post-author {
85+
margin-left: 45px;
86+
/*
87+
display: grid;
88+
grid-template-columns: 120px 150px; */
89+
}
90+
#single-post-author {
91+
margin-top: 10px;
92+
}
93+
.optional-tag {
94+
margin-left: 45px;
95+
}
96+
.right-section img {
97+
width: 16px;
98+
position: absolute;
99+
top: 34px;
100+
right: 8px;
101+
}
102+
#favourite {
103+
position: absolute;
104+
right: 40px;
105+
}
106+
.post-content {
107+
margin-top: 7px;
108+
width: 490px;
109+
}
110+
111+
.post-image img {
112+
border-radius: 5px;
113+
width: 490px;
114+
object-fit: cover;
115+
height: 500px;
116+
}
117+
118+
.post-actions-icons {
119+
padding-top: 6px;
120+
width: 490px;
121+
}
122+
123+
.post-actions-icons {
124+
display: flex;
125+
justify-content: space-between;
126+
}
127+
128+
.post-actions-icons img {
129+
width: 20px;
130+
}
131+
132+
.likes-summary {
133+
padding-top: 10px;
134+
display: flex;
135+
width: 235px;
136+
}
137+
138+
.likes-summary div {
139+
font-size: 12px;
140+
}
141+
142+
.likes-summary img {
143+
width: 17px;
144+
border-radius: 10px;
145+
margin-right: 10px;
146+
}
147+
148+
.post-description {
149+
display: flex;
150+
flex-direction: column;
151+
margin-top: 11px;
152+
}
153+
154+
.post-description a {
155+
border: none;
156+
width: 45px;
157+
background-color: none;
158+
text-decoration: none;
159+
color: rgb(180, 180, 180);
160+
}
161+
162+
.view-comments, .add-comment {
163+
padding-top: 11px;
164+
}
165+
.view-comments a {
166+
text-decoration: none;
167+
color: rgb(180, 180, 180);
168+
font-size: 14px;
169+
}
170+
171+
.add-comment {
172+
color: rgb(180, 180, 180);
173+
font-size: 14px;
174+
display: flex;
175+
justify-content: space-between;
176+
}
177+
.add-comment a {
178+
text-decoration: none;
179+
color: rgb(180, 180, 180);
180+
font-size: 14px;
181+
}
182+
.add-comment img {
183+
width: 15px;
184+
}
185+
186+
.all-caught-up-container {
187+
padding-bottom: 50px;
188+
margin-top: 40px;
189+
width: 490px;
190+
margin-left: 115px;
191+
border-bottom: 1px solid rgb(214, 212, 212);
192+
}
193+
.all-caught-up {
194+
line-height: 25px;
195+
text-align: center;
196+
align-items: center;
197+
display: flex;
198+
flex-direction: column;
199+
}
200+
.all-caught-up img {
201+
width: 100px;
202+
margin-bottom: 15px;
203+
}
204+
/* all-caught-up */ #headline {
205+
font-size: 19px;
206+
}
207+
/* all-caught-up */ #text {
208+
font-size: 15px;
209+
color: grey;
210+
}
211+
.all-caught-up a {
212+
color: rgb(0, 149, 246);
213+
text-decoration: none;
214+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.footer {
2+
border-top: 1px solid rgb(214, 212, 212);
3+
background-color: white;
4+
z-index: 400;
5+
height: 50px;
6+
position: fixed;
7+
bottom: 0;
8+
right: 0;
9+
left: 0;
10+
display: flex;
11+
justify-content: space-between;
12+
align-items: center;
13+
}
14+
.footer-images {
15+
margin-right: 20px;
16+
margin-left: 20px;
17+
}
18+
.footer-images img {
19+
width: 25px;
20+
}
21+
@media (min-width: 805px) {
22+
.footer {
23+
display: none;
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
.header {
3+
z-index: 200;
4+
width: 100%;
5+
background-color: white;
6+
top: 0;
7+
right: 0;
8+
left: 0;
9+
position: fixed;
10+
height: 60px;
11+
display: flex;
12+
justify-content: space-between;
13+
align-items: center;
14+
border-bottom: 1px solid rgb(214, 212, 212);;
15+
}
16+
.instagram-mobile-logo img {
17+
width: 110px;
18+
}
19+
.icon img {
20+
width: 27px;
21+
margin-right: 15px;
22+
}
23+
.section-right {
24+
display: flex;
25+
align-items: center;
26+
}
27+
28+
.input input {
29+
margin-right: 15px;
30+
border-radius: 5px;
31+
background-color: rgb(239, 239, 239);
32+
border: none;
33+
padding: 10px 85px 10px 10px;
34+
}
35+
@media (min-width: 805px) {
36+
.header {
37+
display: none;
38+
}
39+
}

0 commit comments

Comments
 (0)