Skip to content

Commit 9151ed5

Browse files
committed
replace container with mx-auto
1 parent ef08948 commit 9151ed5

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/components/Layout/Nav.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<header
44
class="flex items-center py-1 px-4 border-b-[3px] h-[54px] z-20 fixed inset-x-0 top-0 bg-white"
55
>
6-
<div class="container max-w-screen-sm flex items-center">
6+
<div class="mx-auto max-w-screen-sm flex items-center">
77
<a class="text-2xl" href="#home">Fajarullah</a>
88
</div>
99
</header>

src/components/Sections/ProfileSection.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</script>
2727

2828
<section id="home">
29-
<div class="container max-w-screen-sm mx-auto mt-24 p-4">
29+
<div class="max-w-screen-sm mx-auto mt-24 p-4">
3030
<h1 aria-label="introduction" class="text-2xl text-center mb-4">
3131
Hi, I am <strong aria-label="my name">Fajarullah</strong>
3232
</h1>

src/components/Sections/TechnologiesSection.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</script>
2525

2626
<section id="technologies">
27-
<div class="container my-4 p-4 max-w-screen-sm">
27+
<div class="mx-auto my-4 p-4 max-w-screen-sm">
2828
<h2 class="text-xl text-center mb-4">My Tech Stacks</h2>
2929
<ul class="flex flex-wrap justify-center">
3030
{#each usedTechnologies as usedTechnology}

tailwind.config.cjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ module.exports = {
1414
textColor: {
1515
'body-color': 'var(--text-body)'
1616
}
17-
},
18-
container: {
19-
center: true
2017
}
2118
},
2219
}

0 commit comments

Comments
 (0)