Skip to content

Commit

Permalink
style: add responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
João Antônio Hamerski Copetti committed Jan 8, 2024
1 parent c7c3bb0 commit 257a4d3
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 22 deletions.
4 changes: 3 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ provide('isSearchLoading', isLoading)

<template>
<ToastComponent />
<AppContainer class="p-10 mx-auto mt-10 w-3/4 overflow-auto h-[90vh]">
<AppContainer
class="p-10 mx-auto mt-10 w-11/12 md:w-3/4 overflow-auto h-[90vh]"
>
<AppTransition
enter-class="fadeIn"
leave-class="fadeOut"
Expand Down
5 changes: 2 additions & 3 deletions src/views/home/partials/HomeHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
<div>
<div class="flex justify-center">
<FWIcon
class="text-neutral dark:text-white"
class="text-neutral dark:text-white text-9xl md:text-[10rem]"
icon="fa-brands fa-github-alt"
size="10x"
/>
</div>
<div class="text-2xl text-center mt-5">
<div class="md:text-2xl text-center mt-5">
<h4>Digite um nome de usuário. Ex.: <b>JoaoHamerski</b></h4>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/home/partials/HomeSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ onMounted(() => {
</script>

<template>
<div class="mt-16 w-1/2 mx-auto text-center">
<div class="mt-16 md:w-1/2 mx-auto text-center">
<form @submit.prevent="onSearchClick">
<HomeSearchInput
ref="homeSearchInput"
Expand Down
2 changes: 1 addition & 1 deletion src/views/home/partials/HomeSearchButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const loading: Ref<boolean> | undefined = inject('isSearchLoading')
<template>
<div class="mt-8">
<button
class="btn btn-primary px-10 font-bold"
class="btn btn-primary px-10 font-bold btn-block md:w-fit"
:disabled="loading"
@click="$attrs.click"
>
Expand Down
2 changes: 1 addition & 1 deletion src/views/home/partials/HomeSearchInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defineExpose({ focus })
:value="modelValue"
type="text"
placeholder="Nome de usuário..."
class="input input-bordered w-full input-lg"
class="input input-bordered w-full md:input-lg"
name="username"
@input="onInput"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/views/profile/partials/ProfileBadge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defineProps<ProfileBadgeProps>()
</script>

<template>
<div>
<div class="text-nowrap">
<FWIcon
v-if="icon"
:icon="icon"
Expand Down
10 changes: 5 additions & 5 deletions src/views/profile/partials/ProfileHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ defineProps<ProfileHeaderProps>()
</script>

<template>
<div class="flex gap-10">
<div class="avatar">
<div class="flex flex-col md:flex-row gap-10">
<div class="avatar mx-auto md:mx-0">
<div
class="relative w-32 rounded-full ring ring-blue-500 hover:ring-blue-600 transition-shadow ring-offset-base-100 ring-offset-2"
>
Expand All @@ -27,8 +27,8 @@ defineProps<ProfileHeaderProps>()
</div>
</div>
<div class="flex flex-col justify-center">
<div class="mb-4">
<h3 class="text-3xl font-bold mb-0">
<div class="mb-4 text-center md:text-left">
<h3 class="text-xl md:text-3xl font-bold mb-0">
<a
class="text-blue-500 hover:text-blue-600 transition-colors"
:href="user.html_url"
Expand All @@ -45,7 +45,7 @@ defineProps<ProfileHeaderProps>()
({{ user.login }})
</div>
</div>
<div class="flex gap-8 text-sm">
<div class="flex overflow-auto gap-8 text-xs md:text-sm">
<ProfileBadge
icon="fa-solid fa-users"
label="Seguidores:"
Expand Down
2 changes: 1 addition & 1 deletion src/views/profile/partials/ProfileOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const archivedCount = computed<number>(
</script>

<template>
<div class="flex gap-5">
<div class="flex flex-col md:flex-row gap-5">
<div class="grow">
<AppSelect
:value-model="options.sort"
Expand Down
16 changes: 8 additions & 8 deletions src/views/profile/partials/ProfileReposListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const dropdownItems = computed<DropdownItem[]>(() => [

<template>
<li>
<div class="flex justify-between mb-3">
<div class="flex justify-between items-baseline mb-3">
<div>
<a
:href="repo.html_url"
Expand Down Expand Up @@ -70,17 +70,17 @@ const dropdownItems = computed<DropdownItem[]>(() => [
{{ repo.description }}
</div>

<div class="flex justify-between">
<div class="text-sm">
<span>
<b>Último commit: </b>
<span>{{ formatDateTime(repo.pushed_at).toRelative() }}</span>
</span>
<span class="mx-2">&bull;</span>
<div class="flex flex-col md:flex-row justify-between">
<div class="flex flex-col md:flex-row text-xs mb-5 md:mb-0">
<span>
<b>Criado </b>
<span>{{ formatDateTime(repo.created_at).toRelative() }}</span>
</span>
<span class="mx-2 hidden md:block">&bull;</span>
<span>
<b>Último commit: </b>
<span>{{ formatDateTime(repo.pushed_at).toRelative() }}</span>
</span>
</div>

<div class="flex gap-3">
Expand Down

0 comments on commit 257a4d3

Please sign in to comment.