Skip to content

Commit 96d7280

Browse files
committed
updated home page
1 parent 2aafc1b commit 96d7280

File tree

3 files changed

+59
-30
lines changed

3 files changed

+59
-30
lines changed

src/app/pages/home/home.component.html

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="left">
44
NJ-Coder
55
</div>
6-
<div class="right">
6+
<div class="right hide-sm">
77
<div class="link-wrappeer">
88
<a href="#">TECHS</a>
99
<a href="#">PORTFOLIO</a>
@@ -12,28 +12,30 @@
1212
</div>
1313
</div>
1414
<div class="top-section">
15-
<div class="left">
15+
<div class="left hide-sm">
1616
<div class="outer-circle">
1717
<div class="inner-circle"></div>
1818
</div>
1919
</div>
2020
<div class="right">
2121
<div class="content">
22-
<div class="hello">HEY THERE 👋</div>
23-
<div class="name">I'M NIDHIN JOSEPH</div>
22+
<div class="hello">HEY THERE 👋 I'M </div>
23+
<div class="name">NIDHIN JOSEPH</div>
2424
<div class="socials">
25-
<a class="link-wrap" href="https://www.linkedin.com/in/nidhin-joseph-225b49a3/" target="_blank">
26-
<i class="fab fa-linkedin"></i>
27-
</a>
28-
<a class="link-wrap" href="https://github.com/nj-coder" target="_blank">
29-
<i class="fab fa-github"></i>
30-
</a>
31-
<a class="link-wrap" href="https://stackoverflow.com/users/3289660/nidhin-joseph" target="_blank">
32-
<i class="fab fa-stack-overflow"></i>
33-
</a>
34-
<a class="link-wrap" href="https://www.facebook.com/nidhin.joseph.1992" target="_blank">
35-
<i class="fab fa-facebook-square"></i>
36-
</a>
25+
<div class="links">
26+
<a class="link-wrap" href="https://www.linkedin.com/in/nidhin-joseph-225b49a3/" target="_blank">
27+
<i class="fab fa-linkedin"></i>
28+
</a>
29+
<a class="link-wrap" href="https://github.com/nj-coder" target="_blank">
30+
<i class="fab fa-github"></i>
31+
</a>
32+
<a class="link-wrap" href="https://stackoverflow.com/users/3289660/nidhin-joseph" target="_blank">
33+
<i class="fab fa-stack-overflow"></i>
34+
</a>
35+
<a class="link-wrap" href="https://www.facebook.com/nidhin.joseph.1992" target="_blank">
36+
<i class="fab fa-facebook-square"></i>
37+
</a>
38+
</div>
3739
</div>
3840
</div>
3941
</div>

src/app/pages/home/home.component.scss

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,25 @@ $shadow-secondary: #2a5298;
44
.home {
55

66
.header {
7-
display: grid;
8-
grid-template-columns: 30vw 70vw;
7+
display: flex;
98
width: 100%;
109
position: fixed;
1110
z-index: 10;
12-
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
11+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.23);
1312

1413
.left {
1514
padding: 1em 1em 1em 2em;
1615
text-align: left;
1716
background: $shadow-primary;
17+
flex-grow: 1;
18+
color: #fff;
19+
font-weight: bold;
20+
letter-spacing: 4px;
21+
text-transform: uppercase;
1822
}
1923

2024
.right {
25+
width: calc(70vw - 10vw);
2126
background: #ffffff;
2227
display: flex;
2328
align-items: center;
@@ -56,11 +61,11 @@ $shadow-secondary: #2a5298;
5661
color: #fff;
5762
background: $shadow-secondary;
5863
background: linear-gradient(to right, $shadow-primary, $shadow-primary);
59-
display: grid;
60-
grid-template-columns: 30vw 70vw;
64+
display: flex;
6165

6266

6367
.left {
68+
width: 30vw;
6469
height: 100%;
6570
display: flex;
6671
align-items: center;
@@ -97,27 +102,44 @@ $shadow-secondary: #2a5298;
97102

98103
.right {
99104
height: 98vh;
105+
flex-grow: 1;
100106
background: #fff;
101107
display: flex;
102108
align-items: center;
103109
justify-content: center;
104110
color: #000;
105111

106112
.content {
113+
padding: 1em;
114+
107115
.name {
108-
font-size: 4em;
116+
font-size: 3em;
109117
font-weight: bold;
110-
padding: 0.2em 0;
118+
padding: 0.2em 0
111119
}
112120

113121
.socials {
114122
text-align: center;
115123
position: relative;
116124

117-
a {
125+
.links {
118126
background: #fff;
119-
padding: 4px 8px;
127+
padding: 0 4px;
120128
position: relative;
129+
display: inline-flex;
130+
131+
a {
132+
padding: .5em 1em;
133+
display: block;
134+
color: $shadow-primary;
135+
border-radius: 7px;
136+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.23);
137+
margin-right: 1em;
138+
139+
&:last-child {
140+
margin: 0;
141+
}
142+
}
121143
}
122144

123145
&::before {

src/styles.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
/* You can add global styles to this file, and also import other style files */
22
html,
33
body {
4-
height: 100%;
5-
width: 100%;
6-
margin: 0;
7-
font-family: 'Roboto', sans-serif;
8-
overflow-x: hidden;
4+
height: 100%;
5+
width: 100%;
6+
margin: 0;
7+
font-family: 'Roboto', sans-serif;
8+
overflow-x: hidden;
99
}
1010

11+
@media only screen and (max-width: 900px) {
12+
.hide-sm {
13+
display: none !important;
14+
}
15+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy