Skip to content

Commit b22f7ad

Browse files
author
DidierRLopes
committed
fix projects for mobile
1 parent 6655390 commit b22f7ad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import HeadTitle from '@site/src/components/General/HeadTitle.tsx'
88

99
<HeadTitle title="Projects | Didier" />
1010

11-
Technically OpenBB is no longer a personal project, but for historical reasons it will remain here. Follow me on [GitHub](https://github.com/DidierRLopes) for more.
11+
Follow me on [GitHub](https://github.com/DidierRLopes) for more.
1212

1313
<Projects />

src/components/Projects.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,24 +231,24 @@ export default function Projects() {
231231
return (
232232
<div className="mx-auto mt-8">
233233
{projects.map((project) => (
234-
<div className='flex my-4 mx-2 border-[1px] p-2 rounded border-[#0088CC]'>
235-
<div className='flex justify-start items-center p-4'>
234+
<div className='flex flex-col md:flex-row my-4 mx-2 border-[1px] p-2 rounded border-[#0088CC]' key={project.title}>
235+
<div className='w-full md:w-auto flex justify-center md:justify-start items-center p-4'>
236236
<img
237237
src={project.image}
238238
alt={project.title}
239239
className="w-[200px] object-cover"
240240
/>
241241
</div>
242-
<div className='flex flex-col justify-start items-start ml-0 text-left p-2'>
243-
<div>
242+
<div className='w-full md:w-auto flex flex-col justify-start items-start md:ml-0 text-left p-2'>
243+
<div className="w-full">
244244
<div className="title md:text-lg font-bold">
245245
{project.title}
246246
</div>
247247
<div className="subtitle text-sm flex mt-2 leading-tight max-w-[400px]">
248248
{project.desc}
249249
</div>
250250
</div>
251-
<div className="flex mt-4 mb-2 items-start justify-end">
251+
<div className="flex mt-4 mb-2 items-center md:items-start justify-center md:justify-start w-full">
252252
<a
253253
target="_blank"
254254
rel="noreferrer"

0 commit comments

Comments
 (0)