Skip to content

Commit 85d862f

Browse files
authored
Merge pull request #24 from csprasad/mock/update-ui
Landing page & mock iPhone blur fixes
2 parents 070e876 + f960fc7 commit 85d862f

File tree

8 files changed

+73
-54
lines changed

8 files changed

+73
-54
lines changed

iPhone/scripts/work.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ document.addEventListener("DOMContentLoaded", () => {
2222

2323
if (mapContainer && data.experience.map_bg_image) {
2424
mapContainer.style.background = `url('${data.experience.map_bg_image}') no-repeat center center`;
25-
mapContainer.style.backgroundSize = "cover"; // Ensures full coverage
26-
console.log("Background updated:", data.experience.map_bg_image);
25+
mapContainer.style.backgroundSize = "cover";
2726
} else {
2827
console.warn("Map background image not found in JSON!");
2928
}

iPhone/styles/about.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@
3737
transition: all 0.3s ease;
3838
}
3939

40-
ul {
40+
.content ul {
4141
list-style: none !important;
42-
padding-left: 0;
43-
margin: 0;
42+
/* padding-left: 0; */
43+
/* margin-left: -10px; */
4444
position: relative;
4545
}
4646

4747
/* PERFECTLY ALIGNED CUSTOM BULLET */
48-
li::before {
48+
.content li::before {
4949
content: "◇";
5050
position: absolute;
51-
left: 1.2em;
51+
left: 0.1em;
5252
color: var(--accent, #3a86ff); /* Use accent color from root */
5353
font-size: 1em;
5454
}

iPhone/styles/homescreen.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
padding-top: 3rem; /* Add padding to avoid overlap with status bar */
1515
padding-bottom: 2rem;
1616
position: relative;
17-
text-decoration: none !important; /* Force remove underline */
17+
text-decoration: none !important; /* Force remove underline */
1818
}
1919

2020
/* Widget Styles */
2121
.widget {
22-
background: rgba(255, 255, 255, 0.15); /* Softer blur effect */
23-
backdrop-filter: blur(20px); /* Increase blur for a frosted glass effect */
24-
border-radius: 1.5rem; /* More rounded like Apple’s design */
22+
background: rgba(255, 255, 255, 0.15);
23+
backdrop-filter: blur(20px);
24+
-webkit-backdrop-filter: blur(20px); /* Safari specific prefix */
25+
border-radius: 1.5rem;
2526
padding: 1rem;
2627
text-align: center;
2728
margin-top: 1rem;
@@ -76,7 +77,7 @@
7677
/* iOS-style App Dock (Adjusted for Better Fit) */
7778
.app-dock {
7879
width: 95%;
79-
/* max-width: 320px; */
80+
max-width: 320px;
8081
display: flex;
8182
justify-content: center;
8283
position: absolute;

iPhone/styles/work.css

Lines changed: 44 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,44 @@
11
/* Work Page */
22
.back-button {
3+
margin-left: 10px;
34
z-index: 10;
45
}
56

7+
/* Widget Styles */
8+
.widget {
9+
background: var(--bg-glass);
10+
backdrop-filter: blur(10px);
11+
-webkit-backdrop-filter: blur(10px); /* Safari specific prefix */
12+
border-radius: 1rem;
13+
width: 100%;
14+
height: 70px;
15+
display: flex;
16+
margin-top: -30px;
17+
flex-direction: column;
18+
align-items: center;
19+
justify-content: center;
20+
overflow: hidden;
21+
box-shadow: var(--icon-boxshadow)
22+
}
23+
24+
.widget a {
25+
padding: 0;
26+
}
27+
28+
.widget h2 {
29+
font-size: 1.2rem;
30+
color: var(--text-dark);
31+
margin: 1rem 0 0 20px;
32+
font-weight: bold;
33+
word-break: break-word;
34+
}
35+
36+
.widget p {
37+
font-size: 0.8rem;
38+
color: var(--text-secondary);
39+
margin-left: 1.5rem;
40+
}
41+
642
/* Map Marker Design */
743
.map-marker {
844
position: absolute;
@@ -21,21 +57,25 @@
2157
color: var(--text-dark);
2258
background: var(--bg-glass);
2359
backdrop-filter: blur(2px);
60+
-webkit-backdrop-filter: blur(2px); /* Safari specific prefix */
2461
border-radius: 0.5rem;
2562
padding: 5px 12px;
2663
font-size: 0.9rem;
2764
margin-bottom: 5px;
28-
white-space: nowrap;
65+
white-space: nowrap;
66+
box-shadow: var(--icon-boxshadow)
2967
}
3068

3169
/* Marker Pin */
3270
.map-marker .marker-pin {
33-
width: 14px;
34-
height: 14px;
71+
width: 15px;
72+
height: 15px;
3573
background-color: var(--error);
3674
border-radius: 50%;
3775
position: relative;
3876
transition: transform 0.2s ease;
77+
box-shadow: var(--icon-boxshadow)
78+
3979
}
4080

4181
/* Hover Effect */
@@ -44,38 +84,6 @@
4484
border: 1px solid var(--error);
4585
}
4686

47-
/* Widget Styles */
48-
.widget {
49-
background: var(--bg-glass);
50-
backdrop-filter: blur(2px);
51-
border-radius: 1rem;
52-
width: 100%;
53-
height: 70px;
54-
display: flex;
55-
flex-direction: column;
56-
align-items: center;
57-
justify-content: center;
58-
overflow: hidden;
59-
}
60-
61-
.widget a {
62-
padding: 0;
63-
}
64-
65-
.widget h2 {
66-
font-size: 1.2rem;
67-
color: var(--text-dark);
68-
margin: 1rem 0 0 20px;
69-
font-weight: bold;
70-
word-break: break-word;
71-
}
72-
73-
.widget p {
74-
font-size: 0.8rem;
75-
color: var(--text-secondary);
76-
margin-left: 1.5rem;
77-
}
78-
7987
/* Popup covering 80% of the screen */
8088
.popup {
8189
position: absolute;
@@ -85,6 +93,7 @@
8593
height: 80%;
8694
background: var(--bg-glass);
8795
backdrop-filter: blur(10px);
96+
-webkit-backdrop-filter: blur(10px); /* Safari specific prefix */
8897
padding: 10px 10px 0 10px;
8998
overflow-y: auto;
9099
border-radius: 20px 20px 0 0;

landing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h2>Hi, I'm <span class="name">C S Prasad! </span><span class="alias">(Brahmendr
5555
</span></p>
5656
<div class="call-section">
5757
<button class="book-call" onclick="warnAndEmail()">Book a call</button>
58-
<p class="connect">Feel free to explore my portfolio and reach out - I'd love to connect!</p>
58+
<p class="connect">Feel free to explore my portfolio and reach out<br> - I'd love to connect!</p>
5959
</div>
6060
<!-- <h2>Recent Work</h2> -->
6161
<p>Here are some of the work I’ve done, from apps to experiments.</p>

styles/leftPanel.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,12 @@ p {
133133
}
134134

135135
.book-call {
136+
white-space: nowrap;
136137
background-color: var(--button-bg);
137138
color: var(--button-text);
138139
border: none;
139140
padding: 10px 20px;
140-
font-size: 1.1em;
141+
font-size: 1em;
141142
cursor: pointer;
142143
border-radius: 100px;
143144
transition: background-color 0.3s;
@@ -152,7 +153,7 @@ p {
152153
font-size: 1.1em;
153154
line-height: 1.6;
154155
max-width: 400px;
155-
margin: 0 auto;
156+
/* margin: 0 auto; */
156157
}
157158

158159
/* Project Section (Glassy Card) */
@@ -163,9 +164,9 @@ p {
163164
/* border: 1px solid var(--border-dark); */
164165
border-radius: 20px;
165166
padding: 20px;
166-
margin-top: 10px;
167-
max-width: 75%;
168-
height: 340px;
167+
/* margin-top: 10px; */
168+
max-width: 95%;
169+
max-height: 375px;
169170
box-shadow: var(--shadow);
170171
transition: all 0.3s ease;
171172
overflow-y: auto;

styles/root.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
--icon-gradient-end: #e6e6e6;
3636
--icon-shadow-outset: 0 4px 6px rgba(0, 0, 0, 0.1);
3737
--icon-shadow-inset: inset 0 1px 2px rgba(255, 255, 255, 0.5);
38+
--icon-boxshadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.5);
3839

3940
/* App Icon specific */
4041
--icon-gradient: linear-gradient(145deg, #ffffff, #e6e6e6);

styles/styles.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
body {
2+
overflow: hidden;
3+
position: fixed;
4+
width: 100%;
5+
height: 100%;
6+
max-height: 100vh;
7+
}
8+
19
.container {
210
display: flex;
311
align-items: center;
412
justify-content: center;
5-
height: 100vh;
13+
/* height: 100vh; */
614
padding: 20px;
715
}
816

0 commit comments

Comments
 (0)