Skip to content

Commit

Permalink
Create global style rules for headings
Browse files Browse the repository at this point in the history
  • Loading branch information
utarwyn committed Dec 21, 2023
1 parent 8b9ae50 commit 8e92da6
Show file tree
Hide file tree
Showing 15 changed files with 230 additions and 399 deletions.
29 changes: 28 additions & 1 deletion src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,33 @@ p {
color: var(--color-on-surface);
}

.heading-2 {
font-size: 2.5rem;
font-weight: 900;
text-align: center;
margin: 0 1rem;
max-width: 780px;
color: var(--color-primary);
}

.heading-3 {
font-size: 2rem;
font-weight: 900;
text-align: center;
margin: 0 1rem;
max-width: 780px;
color: var(--color-secondary);
}

@media screen and (max-width: 768px) {
.heading-2 {
font-size: 2rem;
}
.heading-3 {
font-size: 1.5rem;
}
}

.error-message {
color: red;
font-size: 18px;
Expand All @@ -37,7 +64,7 @@ p {
}

.success-message {
color: #57c18b;
color: var(--color-secondary);
font-size: 18px;
font-weight: 500;
outline: none;
Expand Down
56 changes: 11 additions & 45 deletions src/components/Shared/Block3.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
<script setup lang="ts">
import BoxInfo from "@/components/global/BoxInfo.vue";
defineProps<{ title: string }>();
</script>

<template>
<div class="container">
<h2 class="title">{{ title }}</h2>
<h2 class="heading-2">{{ title }}</h2>
<div class="box-container">
<BoxInfo
title="Cadrage"
text="Définition des règles à produire et contractualisation"
></BoxInfo>
/>
<BoxInfo
title="production"
text="Production des règles par notre équipe interne"
></BoxInfo>
/>
<BoxInfo
title="Test"
text="Test des règles produites pour s’assurer de leur efficacité dans la réduction de la consommation énergétique"
>
</BoxInfo>
/>
<BoxInfo
title="Livraison"
text="Test des règles produites pour s’assurer de leur efficacité dans la réduction de la consommation énergétique"
>
</BoxInfo>
/>
</div>
<span
>Toutes les règles sur-mesure, produites pour le compte d'organisations, tombent
Expand All @@ -28,47 +31,26 @@
>
</div>
</template>
<script setup lang="ts">
import BoxInfo from "@/components/global/BoxInfo.vue";
const props = defineProps({
title: String,
});
</script>

<style scoped>
.container {
width: 100%;
min-height: 396px;
padding-top: 50px;
height: max-content;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
background-color: #f3f3f3;
}
.title {
max-width: 1089px;
font-size: 40px;
font-weight: 900;
font-stretch: normal;
font-style: normal;
line-height: 1.25;
letter-spacing: normal;
text-align: center;
color: #355086;
padding: 0px 0 0 0;
}
.box-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: center;
margin: 50px 0px 35px 0px;
margin: 50px 0 35px 0;
}
span {
Expand All @@ -84,23 +66,7 @@ span {
padding-bottom: 47px;
}
@media screen and (max-width: 1150px) {
.title{
margin: 0 36px 0 36px;
font-size: 32px;
}
}
@media screen and (max-width: 768px) {
.title{
margin: 0 36px 0 36px;
font-size: 28px;
}
span{
margin: 0 50px 0 50px;
font-size: 15px;
Expand Down
142 changes: 0 additions & 142 deletions src/components/Shared/GraphRule.vue

This file was deleted.

Loading

0 comments on commit 8e92da6

Please sign in to comment.