Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: startup page css #1050

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion src/app/startups/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,42 @@ export default async function StartupPage({
<div className="fr-py-6w" style={{ backgroundColor: blueCumulus }}>
<div className="fr-container">
<div>
<Image
width={300}
height={300}
alt="logo de la startup"
src="https://placehold.co/300x300"
/>
</div>
<div>
<div>
<div>Date de création</div>
<div>2022</div>
</div>
<div>
<div>Contact</div>
<div>{contact}</div>
</div>
<div>
<div>Statistiques</div>
<div>{stats_url}</div>
</div>
<div>
<div>Code source</div>
<div>{repository}</div>
</div>
<div>
<div>Sponsor</div>
<div>{sponsors}</div>
</div>
<div>
<div>Organisation</div>
<div>
{organisation.name} ({organisation.acronym})
</div>
</div>
</div>
{/* <div>
<b>stats</b>: {stats_url}
</div>
<div>
Expand All @@ -92,7 +128,7 @@ export default async function StartupPage({
<div>{phase.end}</div>
</div>
))}
</div>
</div> */}
</div>
</div>

Expand Down
23 changes: 0 additions & 23 deletions src/components/call-for-ideas.tsx

This file was deleted.

1 change: 1 addition & 0 deletions src/components/call-for-ideas/images/lightbulb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/components/call-for-ideas/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Image from "next/image"
import { fr } from "@codegouvfr/react-dsfr"

import "./styles/index.css"
import imageLightBulb from "./images/lightbulb.svg"

export default function CallForIdeas() {
const blueCumulus = fr.colors.decisions.background.alt.blueCumulus.default

return (
<div className="call-for-ideas" style={{ backgroundColor: blueCumulus }}>
<div className="fr-container">
<h3 className="fr-h3">VOUS AVEZ UNE IDÉE ?</h3>
<p className="fr-text--lg">
Vous êtes témoin d&apos;un problème récurrent que rencontrent les
usagers ou les agents de notre administration ?<br />
Ce problème induit une réelle difficulté pour les citoyens en termes
d&apos;accès aux droits, d&apos;égalité des chances... ?
</p>
<p className="fr-text--xl">
Participez à l&apos;amélioration du service public des Ministères
Sociaux en nous proposant vos idées de startups
</p>
<button className="fr-btn">JE POSTULE !</button>
<Image
width={130}
height={130}
alt="image ampoule"
src={imageLightBulb}
/>
</div>
</div>
)
}
19 changes: 19 additions & 0 deletions src/components/call-for-ideas/styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.call-for-ideas {

}

.call-for-ideas .fr-container {
@apply text-center mt-12 py-12 relative;
}

.call-for-ideas .fr-container h3 {
@apply text-blue-900;
}

.call-for-ideas .fr-container p:last-child {
@apply font-bold text-blue-900 text-lg py-3;
}

.call-for-ideas .fr-container img {
@apply absolute -top-14 left-0;
}
4 changes: 2 additions & 2 deletions src/components/mdx-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ export default function MDXComponent({
<h1 className="fr-h1">{children}</h1>
),
h2: ({ children }: { children: React.ReactNode }) => (
<h2 className="fr-h2">{children}</h2>
<h2 className="fr-h2 text-blue-900">{children}</h2>
),
h3: ({ children }: { children: React.ReactNode }) => (
<h2 className="fr-h3">{children}</h2>
),
p: ({ children }: { children: React.ReactNode }) => (
<p className="mb-6">{children}</p>
<p className="fr-text--md text-justify">{children}</p>
),
ul: ({ children }: { children: React.ReactNode }) => (
<ul className="mb-6">{children}</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/components/random-startups.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Item from "@/components/startups-list/item"
import getStartups from "@/utils/get-startups"
import Item from "@/components/startups-list/item"
import getRandomEntries from "@/utils/get-random-entries"

export default function RandomStartups() {
Expand All @@ -9,7 +9,7 @@ export default function RandomStartups() {
return (
<div className="random-startups fr-pb-6w">
<div className="fr-container">
<h2 className="fr-h2">
<h2 className="fr-h2 fabnum-title-h2">
Découvrez d&apos;autres startups de la Fabrique
</h2>
<div className="grid grid-cols-4 gap-6 fr-mt-6w">
Expand Down
21 changes: 21 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,24 @@ body {
border: 1px solid black;
@apply border-blue-900;
}

.fabnum-title-h2 {
@apply
flex
pb-6
relative
items-center
justify-center;
}

.fabnum-title-h2::after {
content: " ";
@apply
w-1/4
border
absolute
bottom-0
border-b-2
border-blue-900
;
}