Skip to content

Commit

Permalink
Rework homepage leading title
Browse files Browse the repository at this point in the history
  • Loading branch information
utarwyn committed Feb 22, 2025
1 parent e7815af commit 7ff0ee2
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 42 deletions.
94 changes: 94 additions & 0 deletions src/components/home/HomeHero.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<script setup lang="ts">
import AppButton from "@/components/shared/AppButton.vue";
</script>

<template>
<div class="hero-container">
<h1>
Réduisons l'impact <span class="env">environnemental</span> et<br />
<span class="soc">social</span> des solutions numériques
</h1>
<h2>Collectif open-source engagé pour des services durables</h2>
<div class="buttons">
<AppButton
variant="primary"
link="/contributeur"
text="Je souhaite contribuer"
/>
<AppButton
variant="neutral"
link="/entreprise"
text="Je souhaite une intégration sur-mesure"
/>
</div>
</div>
</template>

<style lang="scss" scoped>
.hero-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 6rem 2rem;
gap: 2rem;
text-align: center;
background: linear-gradient(
84.38deg,
rgba(140, 130, 227, 0.15) -5.58%,
rgba(133, 230, 163, 0.15) 103.22%
);
box-shadow: var(--shadow-border-small);
h1 {
font-size: 3rem;
font-weight: 900;
color: hsl(var(--text-neutral));
.env {
background: linear-gradient(
350deg,
hsl(var(--primary-800)) 10%,
hsl(var(--primary-600)) 100%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.soc {
background: linear-gradient(
25deg,
hsl(var(--secondary-800)) 0%,
hsl(var(--secondary-500)) 80%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
}
h2 {
font-size: 1.5rem;
color: hsl(var(--text-accent));
}
.buttons {
display: flex;
gap: 1rem;
}
@media screen and (max-width: 768px) {
padding: 4rem 1rem 6rem;
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.25rem;
}
}
}
</style>
94 changes: 52 additions & 42 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,38 @@
import { event as eventBanner } from "@/assets/data/banners.json";
import Creedengo from "@/assets/img/Creedengo.svg";
import PartnerOrganizationList from "@/components/collective/PartnerOrganizationList.vue";
import AppButton from "@/components/shared/AppButton.vue";
import AppEventBanner from "@/components/shared/AppEventBanner.vue";
import AppHero from "@/components/global/Hero.vue";
import ContactForm from "@/components/home/ContactForm.vue";
import HomeHero from "@/components/home/HomeHero.vue";
import RuleProcess from "@/components/home/RuleProcess.vue";
import AppButton from "@/components/shared/AppButton.vue";
import AppEventBanner from "@/components/shared/AppEventBanner.vue";
import AppSection from "@/components/shared/AppSection.vue";
</script>

<template>
<AppHero
variant="primary"
title="Réduisons l'impact environnemental et social des solutions numériques"
sub-title="Outil Open Source basé sur un référentiel de règles d'éco-conception logicielle"
>
<div class="logo-container">
<Creedengo width="358" class="hero" />
<p class="old-name">ex. <strong>ecoCode</strong></p>
</div>
</AppHero>

<div class="block-button-section-1 green">
<AppButton
variant="secondary"
link="/contributeur"
text="Je souhaite contribuer au projet"
/>
<AppButton
variant="secondary"
link="/entreprise"
text="Je souhaite une intégration sur-mesure"
/>
</div>
<HomeHero />

<AppEventBanner
v-if="eventBanner.enable"
class="event-banner-container"
v-bind="eventBanner"
/>

<div class="creedengo-intro">
<p class="created">Nous avons créé</p>

<div class="logo-container">
<Creedengo width="358" class="hero" />
<p class="old-name">ex. <strong>ecoCode</strong></p>
</div>

<p class="description">
Un outil basé sur notre référentiel de règles d'éco-conception logicielle
</p>
</div>

<AppSection
title="Creedengo est une initiative qui prend racine dans la force du collectif"
sub-title="Le numérique nous passionne et nous considérons qu’il est impératif de le rendre plus durable."
>
<div class="after-block-section-2">
<div class="container-after">
Expand Down Expand Up @@ -148,33 +138,53 @@ import AppSection from "@/components/shared/AppSection.vue";
padding: 0 0 0 97px;
}
.logo-container {
.creedengo-intro {
display: flex;
position: relative;
flex-direction: column;
align-items: center;
gap: 0.5rem;
.old-name {
padding: 0.25rem 0.5rem;
border-radius: var(--radius);
font-size: 1.2rem;
color: var(--color-white);
background-color: rgba(0, 0, 0, 0.3);
gap: 2rem;
margin-top: 3rem;
text-align: center;
.logo-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
.old-name {
padding: 0.25rem 0.5rem;
border-radius: var(--radius);
font-size: 1.2rem;
color: hsl(var(--text-neutral));
background-color: hsl(var(--neutral-200));
}
}
.created {
color: hsl(var(--text-neutral));
font-size: 2rem;
font-weight: bold;
}
.description {
color: hsl(var(--text-accent));
font-size: 1.5rem;
font-weight: bold;
}
}
.event-banner-container {
justify-self: center;
margin: 2rem auto;
}
margin: -3rem auto 4rem;
@media screen and (max-width: 768px) {
img.hero {
max-width: 60%;
height: auto;
@media screen and (max-width: 768px) {
margin: -3rem 1rem 4rem;
}
}
@media screen and (max-width: 768px) {
.container-after > p {
text-align: center;
padding: 50px 100px 0 100px;
Expand Down

0 comments on commit 7ff0ee2

Please # to comment.