Skip to content

Commit

Permalink
fix: ajustements boutons de partage (#1562)
Browse files Browse the repository at this point in the history
* feat: ajustements boutons

* feat: alignement à gauche au retour à la ligne

* feat: embarquement bannière d'info
  • Loading branch information
alanlr authored Oct 7, 2024
1 parent a21b0f2 commit 2addec7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
9 changes: 4 additions & 5 deletions ui/components/InfoBanner/InfoBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ import { DisplayContext } from "@/context/DisplayContextProvider"
const blueBannerText = (
<Text>
<Text as="span" fontWeight={700}>
La bonne alternance évolue pour les recruteurs !
</Text>{" "}
Vous pouvez désormais personnaliser le contenu de vos offres en décochant certains éléments du descriptif généré automatiquement{" "}
<Link textDecoration="underline" href="mailto:[email protected]?subject=Personnaliser%20mon%20offre%20-%20en%20savoir%20plus">
En savoir plus
Souhaiteriez-vous accéder à toutes vos candidatures depuis votre espace connecté ?{" "}
</Text>
<Link textDecoration="underline" href="https://tally.so/r/3Xq19z" isExternal aria-label="Accéder au formulaire - nouvelle fenêtre">
Donnez-nous votre avis en 3 clics.
</Link>
</Text>
)
Expand Down
4 changes: 2 additions & 2 deletions ui/components/ItemDetail/loadedItemDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const LoadedItemDetail = ({ handleClose, handleSelectItem }) => {

<Divider my={2} />

<Flex>
<Flex flexDirection={{ base: "column", sm: "row" }}>
<Box flex={1}>
{isCandidatureLba(selectedItem) && <CandidatureLba item={selectedItem} />}

Expand All @@ -171,7 +171,7 @@ const LoadedItemDetail = ({ handleClose, handleSelectItem }) => {
)}
{selectedItem.ideaType === LBA_ITEM_TYPE_OLD.FORMATION && <ItemDetailApplicationsStatus item={selectedItem} mt={2} mb={2} />}
</Box>
<Box pt={4}>
<Box pt={{ base: 0, sm: 4 }}>
<ShareLink item={selectedItem} />
</Box>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion ui/components/espace_pro/AuthentificationLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function AuthentificationLayout(props) {

return (
<Container maxW="container.xl" px={4} py={4}>
<InfoBanner showInfo={false} showAlert={false} />
<InfoBanner showInfo={true} showAlert={false} />
<Flex direction="column" px={[0, 4]}>
<Flex direction={["column", "row"]} justifyContent="space-between" align={["left", "center"]} justify={["left", "center"]} mb={["4", "0"]}>
<Link href="/" aria-label="Retour à la page d'accueil">
Expand Down
2 changes: 1 addition & 1 deletion ui/components/espace_pro/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Header = () => {

return (
<Box>
<InfoBanner showInfo={false} />
<InfoBanner showInfo={true} />
<Container maxW="full" px={[0, 4]} py={4} borderBottom={"1px solid"} borderColor="grey.400">
<Container maxW="container.xl">
<Flex alignItems="center" px={[0, 4]}>
Expand Down
2 changes: 1 addition & 1 deletion ui/components/espace_pro/common/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import NavigationMenu from "./NavigationMenu"
const Layout = ({ children }) => {
return (
<Container maxW="full">
<InfoBanner showInfo={false} />
<InfoBanner showInfo={true} />
<Header />
<NavigationMenu />
<Box minH={"60vh"}>{children}</Box>
Expand Down

0 comments on commit 2addec7

Please sign in to comment.