Skip to content

Commit f2963db

Browse files
sayaptawonidugeni
andcommitted
style: Enhance Spacing & Add Borders for Better UI
- Adjusted spacing between elements to improve overall layout and readability. - Added borders to specific components for a more defined and polished appearance. - Ensured these style changes maintain consistency across different screen sizes. Co-Authored-By: Jagad Brahma Wiraatmaja <officialelsa21@gmail.com>
1 parent a05f6f3 commit f2963db

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/components/Gallery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const Gallery = () => {
143143
<img
144144
src={image.src}
145145
alt={image.alt}
146-
className='w-full h-full object-contain rounded-lg transition-opacity duration-300'
146+
className='w-full h-full object-contain rounded-lg border transition-opacity duration-300'
147147
loading='lazy'
148148
/>
149149
</div>

src/components/InformationBoards.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import data from '@/data/informationBoardsData.json';
33

44
const InformationBoards = () => {
55
return (
6-
<section data-theme='corporate' className='p-6 border-b border-gray-200'>
7-
<div className='grid gap-2 md:grid-cols-2'>
6+
<section data-theme='corporate' className='p-4 border-b border-gray-200'>
7+
<div className='grid gap-6 md:grid-cols-2'>
88
{/* Tabel Jam Layanan */}
9-
<div className='bg-white shadow-lg rounded-lg'>
10-
<h3 className='text-lg md:text-xl font-semibold text-primary mb-4 text-center'>
9+
<div className='bg-white shadow-lg rounded-lg border'>
10+
<h3 className='text-lg md:text-xl font-semibold text-primary my-4 text-center'>
1111
{data.informationBoards[0].title}
1212
</h3>
1313
<div className='overflow-x-auto'>
@@ -38,8 +38,8 @@ const InformationBoards = () => {
3838
</div>
3939
</div>
4040
{/* Tabel Hari Kunjungan */}
41-
<div className='bg-white shadow-lg rounded-lg'>
42-
<h3 className='text-lg md:text-xl font-semibold text-primary mb-4 text-center'>
41+
<div className='bg-white shadow-lg rounded-lg border'>
42+
<h3 className='text-lg md:text-xl font-semibold text-primary my-4 text-center'>
4343
{data.informationBoards[1].title}
4444
</h3>
4545
<div className='overflow-x-auto'>

src/components/StatisticsWBP.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ const StatisticsWBP = () => {
5050
}, [processData]);
5151

5252
return (
53-
<section data-theme='corporate' className='p-6 border-b border-gray-200'>
53+
<section data-theme='corporate' className='p-4 border-b border-gray-200'>
5454
<h2 className='text-xl md:text-2xl lg:text-3xl font-semibold text-primary mb-6 text-center'>
5555
Data Warga Binaan Pemasyarakatan
5656
</h2>
5757
<div className='bg-transparent'>
58-
<div className='grid grid-cols-1 md:grid-cols-2 gap-2'>
58+
<div className='grid grid-cols-1 md:grid-cols-2 gap-6'>
5959
{/* Tabel Tahanan */}
60-
<div className='bg-white shadow-md rounded-lg'>
60+
<div className='bg-white shadow-md rounded-lg border'>
6161
<h3 className='text-lg font-semibold text-primary text-center p-4 border-b'>
6262
Tahanan
6363
</h3>
@@ -87,7 +87,7 @@ const StatisticsWBP = () => {
8787
</div>
8888
</div>
8989
{/* Tabel Narapidana */}
90-
<div className='bg-white shadow-md rounded-lg'>
90+
<div className='bg-white shadow-md rounded-lg border'>
9191
<h3 className='text-lg font-semibold text-primary text-center p-4 border-b'>
9292
Narapidana
9393
</h3>
@@ -130,7 +130,7 @@ const StatisticsWBP = () => {
130130
</table>
131131
</div>
132132
<div className='mt-4 text-center'>
133-
<p className='text-gray-600 small'>
133+
<p className='text-gray-600 text-sm'>
134134
Data terakhir diperbarui pada: {lastUpdated}
135135
</p>
136136
</div>

src/components/Team.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Team = () => {
2020
{teamData.map((member, index) => (
2121
<div
2222
key={index}
23-
className='card bg-gradient-to-r from-blue-500 to-teal-500 text-base-content shadow-md transition-shadow duration-300 hover:shadow-lg'
23+
className='card bg-gradient-to-r from-blue-500 to-teal-500 text-base-content shadow-md border transition-shadow duration-300 hover:shadow-lg'
2424
>
2525
<figure className='relative w-full h-40 flex items-center justify-center'>
2626
<div className='mask mask-circle w-24 h-24 flex items-start justify-center'>

0 commit comments

Comments
 (0)