feat: responsive now-wrapper
This commit is contained in:
parent
08ef1cd749
commit
42112a8a9f
2 changed files with 28 additions and 10 deletions
|
|
@ -26,8 +26,4 @@
|
||||||
--bg-dark: #343a40;
|
--bg-dark: #343a40;
|
||||||
--bg-darker: #212529;
|
--bg-darker: #212529;
|
||||||
--bg-darkest: #000;
|
--bg-darkest: #000;
|
||||||
|
|
||||||
--pill-border-color: rgba(255, 255, 255, 0.2);
|
|
||||||
--pill-border-radius: 40px;
|
|
||||||
--pill-padding: 8px 4px;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,16 +36,15 @@ const avatarSize = 150
|
||||||
<h1 title="Ayo Ayco | Software Engineer + Web Developer">
|
<h1 title="Ayo Ayco | Software Engineer + Web Developer">
|
||||||
Hi, I'm <span class="heavy-text">Ayo</span>!
|
Hi, I'm <span class="heavy-text">Ayo</span>!
|
||||||
</h1>
|
</h1>
|
||||||
<!--a href="https://forms.ayo.run/form/tnz7FybY" class="now-wrapper"-->
|
|
||||||
|
|
||||||
<a href="/now" class="now-wrapper pill">
|
<a href="/now" class="now-wrapper action primary">
|
||||||
<span class="now-label">now</span>
|
<span class="now-label">now</span>
|
||||||
<span class="status">{now.title}</span>
|
<span class="status">{now.title}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
href="https://chat.ayo.run/join/7IKG-h3nW-pD1H"
|
href="https://chat.ayo.run/join/7IKG-h3nW-pD1H"
|
||||||
class="chat-link pill"
|
class="chat-link action"
|
||||||
>
|
>
|
||||||
<status-indicator id="chat-link" pulse status="positive">
|
<status-indicator id="chat-link" pulse status="positive">
|
||||||
Chat
|
Chat
|
||||||
|
|
@ -96,13 +95,30 @@ const avatarSize = 150
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pill {
|
.action {
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
padding: var(--pill-padding);
|
padding: 8px 4px;
|
||||||
color: white;
|
color: white;
|
||||||
font-size: var(--font-size-sm);
|
font-size: var(--font-size-sm);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|
||||||
|
&.primary {
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||||
|
border-radius: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.now-wrapper {
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 390px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: clip;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
|
.status {
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.now-label {
|
.now-label {
|
||||||
|
|
@ -202,7 +218,7 @@ const avatarSize = 150
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-device-width: 360px) {
|
@media only screen and (max-device-width: 360px) {
|
||||||
.pill {
|
.action.primary {
|
||||||
border: 0px;
|
border: 0px;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
font-size: var(--font-size-sm);
|
font-size: var(--font-size-sm);
|
||||||
|
|
@ -233,6 +249,12 @@ const avatarSize = 150
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-device-width: 280px) and (max-device-width: 653px) {
|
@media only screen and (min-device-width: 280px) and (max-device-width: 653px) {
|
||||||
|
.action {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.now-wrapper {
|
||||||
|
max-width: 600px;
|
||||||
|
}
|
||||||
.highlighted-section__content {
|
.highlighted-section__content {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue