Skip to content

Commit

Permalink
Feat : Contact page
Browse files Browse the repository at this point in the history
Merge pull request #79 from ronde-de-l-espoir/contact
  • Loading branch information
Silloky authored May 29, 2023
2 parents a363a4c + d07a019 commit e7116c9
Show file tree
Hide file tree
Showing 4 changed files with 516 additions and 1 deletion.
78 changes: 78 additions & 0 deletions contact/contact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
:root {
--soft-white: #E5E9EC;
--LM-color: #0099D7;
}

body {
background-color: var(--soft-white);
}


main {
padding: 0;
background-image: none;
width: 50vw;
background-color: #EEE;
margin-inline: auto;
margin-block: 130px 200px;
min-height: 0;
border-radius: 13px;
border: rgba(0,0,0,0.05) solid 2px;
}

#text {
text-align: center;
margin: 20px auto;
}

#title {
font-size: 1.5rem;
font-weight: 600;
grid-column-start: first;
grid-column-end: last;
}

#subtitle {
font-size: 1.2rem;
font-weight: 400;
text-decoration: underline;
text-decoration-color: var(--LM-color);
text-decoration-thickness: 1.3px;
text-underline-offset: 3.5px;
}

#options {
display: grid;
gap: 35px;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
/* grid-template-rows: 1fr 1fr; */
margin: 20px 20px;
}

.option-name {
font-size: 1.2rem;
font-weight: 400;
color: inherit;
text-decoration: underline;
text-decoration-color: var(--LM-color);
text-decoration-thickness: 1.3px;
text-underline-offset: 3.5px;
padding-bottom: 5px;
}

.option {
text-align: center;
width: 100%;
height: 100%;
background-color: #e8e8e8;
border: rgba(0,0,0,0.07) solid 2px;
border-radius: 7px;
padding: 5px;
color: black;
box-sizing: border-box;
}

.option:hover {
filter: brightness(0.9);
cursor: pointer;
}
292 changes: 292 additions & 0 deletions contact/contact.old.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
:root {
--soft-white: #E5E9EC;
--LM-color: #0099D7;
}

body {
background-color: var(--soft-white);
}

main {
padding: 0;
background-image: none;
width: 50vw;
min-width: 750px;
background-color: #EEE;
margin-inline: auto;
margin-block: 130px 200px;
min-height: 0;
border-radius: 13px;
border: rgba(0,0,0,0.05) solid 2px;
}

.main-wrapper {
padding: 40px;
padding-top: 30px;
}

#options-presentation {
display: grid;
height: 100%;

grid-template-columns:
[first] 45%
[first-separation] auto
[second-separation] 45%
[last];

grid-template-rows:
[first] 30px
[second] 5px
[third] 30px
[fourth] 35px
[fifth] auto
[sixth] 50px
[seventh] auto
[last];
}

#title {
font-size: 1.5rem;
font-weight: 600;
grid-column-start: first;
grid-column-end: last;
}

#subtitle {
font-size: 1.2rem;
font-weight: 400;
text-decoration: underline;
text-decoration-color: var(--LM-color);
text-decoration-thickness: 1.3px;
text-underline-offset: 3.5px;
grid-column-start: first;
grid-column-end: last;
grid-row-start: third;
grid-row-end: fourth;
}

#online {
grid-column-start: first;
grid-column-end: first-separation;
grid-row-start: fifth;
grid-row-end: sixth;

display: flex;
align-items: center;
}

#cheque {
grid-column-start: second-separation;
grid-column-end: last;
grid-row-start: fifth;
grid-row-end: sixth;
}

#QRshare {
grid-column-start: first;
grid-column-end: last;
grid-row-start: seventh;
grid-row-end: last;
height: max-content;
font-size: 1.1rem;
}

.grid-item {
text-align: center;
align-self: center;
}

.payment-method {
width: 100%;
height: 100%;
background-color: #e8e8e8;
border: rgba(0,0,0,0.07) solid 2px;
border-radius: 7px;
}

.payment-method-wrapper {
padding: 30px;
}

#online .payment-method-wrapper {
display: flex;
flex-direction: column;
justify-content: start;
gap: 15px;
align-items: center;
}

.nowrap {
white-space: nowrap;
}

#online .paiement-redirect-btn {
width: max-content;
font-size: 1.08rem;
color: #FFF;
background-color: #014575;
padding: 15px 25px;
border-radius: 7px;
line-height: 100%;
border: #002844 solid;
border-width: 0 0 3px;
}

#online .paiement-redirect-btn:hover {
border-width: 3px 0 0;
cursor: pointer;
}

#cheque .indented-paragraph {
text-align: left;
margin-left: 50px;
}

.bigger-font {
font-size: 1.1rem;
word-spacing: 30%;
}

#cheque #small-line-break {
height: 0.5rem;
}

.QRshare-wrapper {
padding: 20px;
}

.share-button-wrapper {
margin-block: 25px 10px;
}

.QRshare-wrapper .share-button {
background-color: var(--LM-color);
border: none;
border-radius: 3px;
padding-block: 12px;
padding-inline: 15px;
font-size: inherit;
color: #EEE;
}

@media only screen and (max-width: 820px) {
main {
margin-block: 40px;
min-width: 250px;
width: 90vw;
}

#options-presentation {
display: grid;
height: 100%;

grid-template-columns:
[first] auto
[last];

grid-template-rows:
[first] 60px
[second] 5px
[third] 30px
[fourth] 35px
[fifth] auto
[sixth] 20px
[seventh] auto
[eigth] 40px
[ninth] auto
[last];
}

.bigger-font {
font-size: 1.02rem;
}

#cheque .indented-paragraph {
margin-left: 0;
text-align: center;
font-size: 0.95rem;
}

.grid-item {
min-width: 120px;
}

#title {
font-size: 1.3rem;
grid-column-start: first;
grid-column-end: last;
}

#subtitle {
grid-column-start: first;
grid-column-end: last;
grid-row-start: third;
grid-row-end: fourth;
}

#online {
grid-column-start: first;
grid-column-end: last;
grid-row-start: fifth;
grid-row-end: sixth;
}

#cheque {
grid-column-start: first;
grid-column-end: last;
grid-row-start: seventh;
grid-row-end: eigth;
}

#QRshare {
grid-column-start: first;
grid-column-end: last;
grid-row-start: ninth;
grid-row-end: last;
}
}

@media only screen and (max-width: 360px) {
main {
margin-block: 35px;
}

#options-presentation {
display: grid;
height: 100%;

grid-template-columns:
[first] auto
[last];

grid-template-rows:
[first] 90px
[second] 5px
[third] 60px
[fourth] 35px
[fifth] auto
[sixth] 20px
[seventh] auto
[eigth] 20px
[ninth] auto
[last];
}

#online .paiement-redirect-btn {
font-size: 0.95rem;
padding-inline: 13px;
}

.bigger-font {
font-size: 0.95rem;
}

#cheque .indented-paragraph {
font-size: 0.75rem;
}

#QRshare {
font-size: 0.95rem;
}
}
Loading

0 comments on commit e7116c9

Please sign in to comment.