Skip to content

Commit 90d09c8

Browse files
Improve visual spacing
1 parent 1852c28 commit 90d09c8

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-8
lines changed

calc-frontend/src/App/RootLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function RootLayout(){
1212
<>
1313
<ScrollRestoration/>
1414

15-
<div className="header flex items-center justify-between gap-6">
15+
<div className="header flex items-center justify-between gap-4">
1616

1717
<div className="flex items-center gap-2">
1818
<Link to ='/'>
@@ -27,8 +27,8 @@ function RootLayout(){
2727

2828
</div>
2929

30-
<a href="https://www.ucf.edu/" target="_blank" className="w-fit h-[75px]">
31-
<img className="rounded-sm max-h-[100%]" src={ucfLogo} alt="UCF logo"></img>
30+
<a href="https://www.ucf.edu/" target="_blank" className="h-[75px] shrink-0">
31+
<img className="rounded-sm h-[100%] object-contain" src={ucfLogo} alt="UCF logo"></img>
3232
</a>
3333

3434
</div>

calc-frontend/src/App/app.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:root{
44
margin: 0 auto;
5-
padding: 1.5rem;
5+
padding: 1rem;
66

77
}
88

@@ -34,6 +34,10 @@ body {
3434
duration-200;
3535
}
3636

37+
.topic-header{
38+
margin-bottom:.25rem;
39+
}
40+
3741
.topic-box{
3842
@apply h-20 flex w-1/2 items-center justify-center
3943
bg-amber-300 rounded-lg hover:bg-amber-400 transition transform hover:scale-103
@@ -59,12 +63,23 @@ body {
5963
font-weight: bold;
6064
}
6165

66+
@media (max-width: 768px) {
67+
68+
.topic-list{
69+
@apply gap-4;
70+
}
71+
}
72+
73+
6274
h1{
6375
font-size:2rem;
76+
line-height:1.25;
77+
6478
}
6579

6680
h2{
6781
font-size:1.75rem;
82+
line-height:1.25;
6883
}
6984

7085
h3{

calc-frontend/src/pages/Derivatives.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ function Derivatives() {
1111
<div>
1212
<button className="back-button" onClick={() => navigate(-1)}>&#8249; Back</button>
1313

14-
<div className="flex flex-col flex-grow justify-center gap-6 items-center">
15-
<h2 style={{ marginBottom: '1rem' }}>The Derivative of Common Functions</h2>
14+
<div className="flex flex-col flex-grow justify-center gap-6 items-center topic-list">
15+
<h2 className = "topic-header">The Derivative of Common Functions</h2>
1616

1717
<Link to="/derivatives/linear" className="topic-box">
1818
<button className="px-10 text-2xl cursor-pointer">Linear</button>

calc-frontend/src/pages/Integrals.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Integrals(){
1212
<button className="back-button" onClick={()=> navigate(-1)}>&#8249; Back</button>
1313

1414
<div className="flex flex-col flex-grow justify-center gap-6 items-center">
15-
<h2 style={{marginBottom:'1rem'}}>The Integral of Common Functions</h2>
15+
<h2 className="topic-header">The Integral of Common Functions</h2>
1616

1717

1818
<Link to="/integrals/linear" className="topic-box">

calc-frontend/src/pages/Limits.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function Limits() {
1111
<button className="back-button" onClick={() => navigate(-1)}>&#8249; Back</button>
1212

1313
<div className="flex flex-col flex-grow justify-center gap-6 items-center">
14-
<h2 style={{ marginBottom: '1rem' }}>The Limit of Common Functions</h2>
14+
<h2 className="topic-header">The Limit of Common Functions</h2>
1515

1616
<Link to="/limits/parabola" className="topic-box">
1717
<button className="px-10 text-2xl cursor-pointer">Parabola</button>

0 commit comments

Comments
 (0)