Skip to content

Commit 17fca7f

Browse files
authored
fix: mobile ui (#1133)
2 parents 84940c5 + 3f4adc0 commit 17fca7f

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

site/src/layouts/layout.astro

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import XLogo from '#/assets/x.svg'
2323
<body
2424
class='font-sans flex flex-col min-h-screen grid-effect-bg flex-1 gap-8 shadow-effect-bg px-4 pb-12'
2525
>
26-
<header class='flex justify-around mt-22'>
27-
<div class='max-w-7xl flex flex-1 items-center md:px-4 gap-4 -mt-5'>
26+
<header class='flex justify-around'>
27+
<div class='max-w-7xl flex flex-1 items-center md:px-4 gap-4'>
2828
<a
2929
class='flex items-center gap-3 decoration-transparent visited:text-white'
3030
href='/'
@@ -34,7 +34,7 @@ import XLogo from '#/assets/x.svg'
3434
src='/logo.svg'
3535
alt='Union Logo'
3636
/>
37-
<p class='min-[420px]:block font-extrabold text-5xl'>Union</p>
37+
<p class='min-[420px]:block font-extrabold text-3xl sm:text-5xl'>Union</p>
3838
</a>
3939
<nav class='flex flex-1 justify-end'>
4040
<ul class='flex gap-4 !text-xl! !md:text-2xl font-extrabold list-none align-middle my-auto'>

site/src/pages/blog/index.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ blogEntries = blogEntries.sort((a, b) => (a.data.date > b.data.date ? -1 : 1))
1515
<main
1616
class='blog-post-container sm:text-xl px-4 sm:mt-0 mt-2 justify-center max-w-[45rem] self-center pb-40'
1717
>
18-
<ul class='list-none'>
18+
<ul class='list-none -ml-6 sm:ml-0'>
1919
{
2020
blogEntries.map(blogPostEntry => (
2121
<li class='mb-12'>

site/src/pages/index.astro

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Layout from '#/layouts/layout.astro'
55
<Layout>
66
<main class='flex flex-col flex-1 gap-[100px] md:gap-[200px] my-[50px] md:my-[100px]'>
77
<div class='flex flex-col items-center'>
8-
<div class='main-text'>Infrastructure for the</div>
9-
<div class='next-century-text animate-character'>next century</div>
8+
<div class='main-text leading-3'>Infrastructure for the</div>
9+
<div class='next-century-text animate-character my-[0.5px]'>next century</div>
1010
<div class='tagline'>
1111
Union is a hyper-efficient, zero-knowledge interoperability layer<br />
1212
that connects Appchains, Layer 1, and Layer 2 networks.
@@ -93,9 +93,8 @@ import Layout from '#/layouts/layout.astro'
9393
.main-text {
9494
max-width: 72rem;
9595
font-size: 26px;
96-
line-height: 2.5rem;
9796
font-weight: 900;
98-
text-align: center;
97+
text-align: center;
9998

10099
@media (min-width: 340px) {
101100
font-size: 29px;

site/src/styles/index.css

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
font-display: swap;
1515
}
1616

17+
p {
18+
text-wrap: balance;
19+
}
20+
1721
p > a {
1822
color: #f9a8d4 !important;
1923
text-decoration: none;

0 commit comments

Comments
 (0)