Skip to content

Commit ae69c8e

Browse files
Bikram GoleBikram Gole
authored andcommitted
Add SVG logos to contact links and fix long URL wrapping
1 parent 71be063 commit ae69c8e

2 files changed

Lines changed: 76 additions & 5 deletions

File tree

contact.html

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,59 @@ <h1 id="hero-name" data-name="Open Channel ✉️">Open Channel ✉️</h1>
7272
<h2>Direct Links 🔗</h2>
7373
<div class="contact-list tilt-zone">
7474
<a class="contact-item tilt" href="mailto:Bikramgole.genius@keemail.me">
75-
<h3>Primary Email</h3>
75+
<h3 class="contact-title">
76+
<span class="contact-logo" aria-hidden="true">
77+
<svg viewBox="0 0 24 24" role="img" focusable="false">
78+
<path d="M3 6h18a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm9 7L4.8 8h14.4L12 13Z"/>
79+
</svg>
80+
</span>
81+
Primary Email
82+
</h3>
7683
<p>Bikramgole.genius@keemail.me</p>
7784
</a>
7885
<a class="contact-item tilt" href="mailto:Develope.genius@gmail.com">
79-
<h3>Backup Email</h3>
86+
<h3 class="contact-title">
87+
<span class="contact-logo" aria-hidden="true">
88+
<svg viewBox="0 0 24 24" role="img" focusable="false">
89+
<path d="M3 6h18a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm9 7L4.8 8h14.4L12 13Z"/>
90+
</svg>
91+
</span>
92+
Backup Email
93+
</h3>
8094
<p>Develope.genius@gmail.com</p>
8195
</a>
8296
<a class="contact-item tilt" href="https://github.com/DevXtechnic" target="_blank" rel="noopener noreferrer">
83-
<h3>GitHub</h3>
97+
<h3 class="contact-title">
98+
<span class="contact-logo" aria-hidden="true">
99+
<svg viewBox="0 0 24 24" role="img" focusable="false">
100+
<path d="M12 .5a12 12 0 0 0-3.79 23.4c.6.11.82-.26.82-.58v-2.2c-3.34.72-4.04-1.61-4.04-1.61a3.17 3.17 0 0 0-1.33-1.75c-1.08-.75.08-.74.08-.74a2.5 2.5 0 0 1 1.82 1.23 2.54 2.54 0 0 0 3.47 1 2.54 2.54 0 0 1 .76-1.59c-2.66-.3-5.47-1.33-5.47-5.92a4.63 4.63 0 0 1 1.24-3.22 4.3 4.3 0 0 1 .12-3.17s1.01-.32 3.3 1.23a11.4 11.4 0 0 1 6.01 0c2.28-1.55 3.3-1.23 3.3-1.23a4.3 4.3 0 0 1 .12 3.17 4.62 4.62 0 0 1 1.23 3.22c0 4.6-2.81 5.61-5.49 5.91a2.84 2.84 0 0 1 .81 2.2v3.27c0 .32.22.69.83.58A12 12 0 0 0 12 .5Z"/>
101+
</svg>
102+
</span>
103+
GitHub
104+
</h3>
84105
<p>github.com/DevXtechnic</p>
85106
</a>
86107
<a class="contact-item tilt" href="https://discord.com/users/1471849836931190945" target="_blank" rel="noopener noreferrer">
87-
<h3>Discord</h3>
108+
<h3 class="contact-title">
109+
<span class="contact-logo" aria-hidden="true">
110+
<svg viewBox="0 0 24 24" role="img" focusable="false">
111+
<path d="M20.32 4.37A19.8 19.8 0 0 0 16.4 3.1a.07.07 0 0 0-.08.04c-.17.31-.37.73-.5 1.05a18.26 18.26 0 0 0-5.63 0c-.13-.32-.33-.74-.5-1.05a.07.07 0 0 0-.08-.04 19.74 19.74 0 0 0-3.93 1.27.06.06 0 0 0-.03.03C3.16 8.16 2.46 11.83 2.8 15.45a.08.08 0 0 0 .03.05 19.9 19.9 0 0 0 4.83 2.44.08.08 0 0 0 .09-.03c.38-.52.72-1.06 1.01-1.64a.08.08 0 0 0-.04-.11 13 13 0 0 1-1.55-.74.08.08 0 0 1-.01-.14c.1-.07.2-.15.3-.22a.07.07 0 0 1 .08-.01c3.26 1.5 6.79 1.5 10 0a.07.07 0 0 1 .09.01c.1.08.2.16.3.22a.08.08 0 0 1-.01.14c-.5.29-1.02.54-1.55.74a.08.08 0 0 0-.04.11c.3.58.63 1.12 1.01 1.64a.08.08 0 0 0 .09.03 19.84 19.84 0 0 0 4.84-2.44.08.08 0 0 0 .03-.05c.41-4.19-.68-7.83-2.85-11.05a.06.06 0 0 0-.03-.03ZM9.55 13.24c-.98 0-1.78-.9-1.78-2s.79-2 1.78-2c1 0 1.8.9 1.79 2 0 1.1-.79 2-1.79 2Zm4.9 0c-.98 0-1.78-.9-1.78-2s.79-2 1.78-2 1.8.9 1.79 2c0 1.1-.79 2-1.79 2Z"/>
112+
</svg>
113+
</span>
114+
Discord
115+
</h3>
88116
<p>discord.com/users/1471849836931190945</p>
89117
</a>
90118
<a class="contact-item tilt" href="https://smp11.simplex.im/a#7qVOPQjQgiF604MqanxuUMWq4Az0hTu2io_AraQwyBU" target="_blank" rel="noopener noreferrer">
91-
<h3>SimpleX</h3>
119+
<h3 class="contact-title">
120+
<span class="contact-logo" aria-hidden="true">
121+
<svg viewBox="0 0 24 24" role="img" focusable="false">
122+
<rect x="2.2" y="2.2" width="19.6" height="19.6" rx="6"/>
123+
<path d="M8 8.6h7.5c.9 0 1.7.7 1.7 1.7S16.4 12 15.4 12h-6.8c-1 0-1.8.8-1.8 1.8S7.6 15.6 8.6 15.6H16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
124+
</svg>
125+
</span>
126+
SimpleX
127+
</h3>
92128
<p>smp11.simplex.im/a#7qVOPQjQgiF604MqanxuUMWq4Az0hTu2io_AraQwyBU</p>
93129
</a>
94130
</div>

styles.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,6 +1885,9 @@ kbd {
18851885
.contact-item p {
18861886
margin-top: 0;
18871887
font-size: 0.82rem;
1888+
overflow-wrap: anywhere;
1889+
word-break: break-word;
1890+
line-height: 1.38;
18881891
}
18891892

18901893
.repo-meta {
@@ -1896,9 +1899,41 @@ kbd {
18961899
.contact-item {
18971900
text-decoration: none;
18981901
color: var(--ink);
1902+
min-width: 0;
18991903
transition: transform 145ms ease, background 145ms ease;
19001904
}
19011905

1906+
.contact-title {
1907+
display: flex;
1908+
align-items: center;
1909+
gap: 0.38rem;
1910+
}
1911+
1912+
.contact-logo {
1913+
width: 1.05rem;
1914+
height: 1.05rem;
1915+
display: inline-flex;
1916+
align-items: center;
1917+
justify-content: center;
1918+
border: 1px solid var(--border);
1919+
border-radius: 7px;
1920+
background: rgba(12, 22, 42, 0.55);
1921+
color: var(--blue-2);
1922+
flex: 0 0 auto;
1923+
}
1924+
1925+
.contact-logo svg {
1926+
width: 0.72rem;
1927+
height: 0.72rem;
1928+
display: block;
1929+
fill: currentColor;
1930+
}
1931+
1932+
.contact-item:hover .contact-logo {
1933+
border-color: rgba(163, 207, 255, 0.6);
1934+
background: rgba(27, 47, 79, 0.8);
1935+
}
1936+
19021937
.contact-item:hover {
19031938
transform: translateY(-2px);
19041939
background: rgba(12, 22, 42, 0.96);

0 commit comments

Comments
 (0)