Skip to content

Commit bec03e0

Browse files
committed
style: responsive on mobile
1 parent 652a6f7 commit bec03e0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/pages/resources-home/search/MastercraftSearch.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ function MastercraftSearch() {
2020
<div className="px-4 py-8 mx-auto max-w-1440">
2121
<div className="flex flex-col items-center w-full gap-8 md:gap-12">
2222
<div className="w-full flex items-center flex-col gap-4 md:gap-8">
23-
<div className="w-full flex items-center gap-10">
23+
<div className="w-full flex flex-col md:flex-row items-center gap-10">
2424
{/* First bar */}
25-
<div className="flex gap-10">
25+
<div className="flex gap-10 overflow-x-scroll w-full">
2626
{[
2727
"Documentation",
2828
"Tutorials",
@@ -44,7 +44,7 @@ function MastercraftSearch() {
4444
</button>
4545
))}
4646
</div>
47-
<div className="relative flex items-center flex-grow pl-4 sm:px-6 py-2 sm:py-3 bg-white text-grey-dark rounded-xl md:rounded-2xl border border-[#EAECF0]">
47+
<div className="w-full sm:w-auto relative flex items-center flex-grow pl-4 sm:px-6 py-2 sm:py-3 bg-white text-grey-dark rounded-xl md:rounded-2xl border border-[#EAECF0]">
4848
<input
4949
type="text"
5050
name="resource"

src/pages/resources-home/sections/Features.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function Features() {
4646
</form>
4747

4848
{/* Tabs */}
49-
<div className="w-full overflow-x-scroll flex items-center">
49+
<div className="w-full overflow-x-auto flex items-center">
5050
<div className="flex gap-3 sm:gap-4 mx-auto">
5151
<button
5252
onClick={() => setActiveTab("All")}
@@ -84,7 +84,6 @@ function Features() {
8484
</div>
8585
</div>
8686

87-
{/* Day-Zero Software developers */}
8887
<div className="md:self-start flex flex-col gap-8 md:gap-10 w-full">
8988
<div className="max-w-xl space-y-2 text-center md:text-left">
9089
<h3 className="text-2xl md:text-3xl text-green-dark font-semibold">
@@ -110,7 +109,7 @@ function Features() {
110109
Newly uploaded resources
111110
</h3>
112111
<Link
113-
to="/resources/search?q=frontend"
112+
to="/resources"
114113
className="text-sm xl:text-base leading-tight font-normal text-primary underline"
115114
>
116115
Explore all frontend resources

0 commit comments

Comments
 (0)