Skip to content

Commit 9edec5e

Browse files
new change
1 parent 7bdc49a commit 9edec5e

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

index.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212

1313
<section class="profile">
1414
<img src="images/photoofme.jpeg" alt="Profile photo" class="avatar">
15-
<button onclick="copyText()">Copy Email</button>
16-
<script>
15+
<button class="cta-button" onclick="copyText()">Copy Email</button>
16+
<script>
1717
function copyText() {
18-
19-
20-
navigator.clipboard.writeText
21-
("r0hanmodi11111@gmail.com");
18+
navigator.clipboard.writeText("r0hanmodi11111@gmail.com");
2219
}
23-
</script>
20+
</script>
2421
<h1>Rohan Modi</h1>
2522
<p class="subtitleiguess">High School Student • Developer</p>
2623

styles.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,27 @@ h1 {
6969
transform: translateY(-2px);
7070
text-decoration: none;
7171
}
72+
.cta-button {
73+
margin: 16px 0;
74+
padding: 12px 20px;
75+
border: none;
76+
border-radius: 12px;
77+
background: #000000;
78+
color: #ffffff;
79+
font-weight: 600;
80+
font-size: 1rem;
81+
cursor: pointer;
82+
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
83+
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
84+
display: inline-flex;
85+
align-items: center;
86+
justify-content: center;
87+
}
88+
.cta-button:hover {
89+
transform: translateY(-4px);
90+
box-shadow: 0 14px 28px rgba(0,0,0,0.16);
91+
background: #111111;
92+
}
7293
.card {
7394
display: flex;
7495
align-items: left;

0 commit comments

Comments
 (0)