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

Homepage redesign #55

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ coverage
.DS_STORE
.env
tmp
.yarn

.yarnrc.yml
resources/css/styles.css
resources/css/styles.css.map
public/assets
package-lock.json
yarn.lock
Binary file added public/fonts/NotoSans-Bold.ttf
Binary file not shown.
Binary file added public/fonts/NotoSans-Light.ttf
Binary file not shown.
Binary file added public/fonts/NotoSans-Medium.ttf
Binary file not shown.
Binary file added public/fonts/NotoSans-Regular.ttf
Binary file not shown.
Binary file added public/fonts/NotoSans-SemiBold.ttf
Binary file not shown.
44 changes: 37 additions & 7 deletions resources/js/home.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,42 @@
textPresentation = document.querySelector('.presentation');
const header_options = (delay) => {
return {
delay: delay + 50,
duration: 500,
origin: 'bottom',
distance: '20px',
opacity: 0,
easing: 'cubic-bezier(0.5, 0, 0, 1)',
reset: true
}
}

window.addEventListener('load', (e) => {
// Élements du header
ScrollReveal().reveal('.reveal-over_title', header_options(0));
ScrollReveal().reveal('.reveal-title', header_options(100));
ScrollReveal().reveal('.reveal-description', header_options(200));
ScrollReveal().reveal('.reveal-button', header_options(300));

setTimeout(() => {

textPresentation.classList.add('visible');

}, 100)

// Sections
ScrollReveal().reveal('.reveal-section-title', {
delay: 50,
duration: 500,
origin: 'bottom',
distance: '20px',
scale: 0.95,
opacity: 0,
easing: 'cubic-bezier(0.5, 0, 0, 1)',
reset: false
});

ScrollReveal().reveal('.reveal-section-text', {
delay: 150,
duration: 500,
origin: 'bottom',
distance: '20px',
scale: 0.95,
opacity: 0,
easing: 'cubic-bezier(0.5, 0, 0, 1)',
reset: false
});
})
7 changes: 6 additions & 1 deletion resources/lang/en/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ footer:
the complete list of contributors

index:
title: A free, modular and educational cellphone.
header:
over_title: Introducing Paxo
title: A free, modular and educational cellphone.
description: |
Paxo, is a free, modular and educational cellphone. It is designed to be made by everyone, open to all and fully customizable.
more_info: Get to know Paxo
block1:
title: Open
p1: |
Expand Down
12 changes: 11 additions & 1 deletion resources/lang/fr/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ footer:
la liste complète des contributeurs

index:
title: Un téléphone libre, modulaire et pédagogique.
header:
over_title: Découvrez le Paxo Phone
title: Un téléphone libre, modulaire et pédagogique.
description: |
Paxo, c'est un téléphone libre, modulaire et pédagogique. Il est conçu pour être réalisé par chacun, ouvert à tous et entièrement personnalisable.
more_info: Plus d'informations
block1:
title: Libre
p1: |
Expand Down Expand Up @@ -102,6 +107,11 @@ tutorials:
title: Tutoriels
description: Vous trouverez les tutos pour la conception du PaxoPhone ainsi que les autres projets signés Paxo.
last_update: Dernière mise à jour
cards:
- title: Comment monter son Paxophone ?
description: Vidéo explicative du montage du Paxophone.
- title: Oshwlab
description: Plan détaillé du hardware du Paxophone (PCB, Schematic Diagram).

contributors:
seo_description: Liste des contributeurs au projet Paxo.
Expand Down
33 changes: 33 additions & 0 deletions resources/scss/atoms/_sections.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* sections */

.section-title {
font-weight: 600;
font-size: 1.7rem;
}

.section-text {
font-size: 0.9rem;
line-height: 1.3rem;
font-weight: 400;
opacity: 0.8;
}

.section-btn {
display: flex;
gap: 16px;
align-items: center;
justify-content: center;
color: #fff;
border: 2px solid #fff;
border-radius: 0px;
padding: 10px 18px;
font-size: 0.9rem;
transition: all 0.3s ease;
animation: button-pulse 1.5s infinite;
width: fit-content;

&:hover {
background-color: #fff;
color: #000;
}
}
86 changes: 86 additions & 0 deletions resources/scss/atoms/_title.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/* title */
/* serves the main title on the index */

.title-container {
height: 65vh;
}

@media screen and (max-width: map-get($breakpoints, md)) {
.title-container {
height: 80vh;
}
}

.cta-title {
color: #fff;
filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.7));

display: flex;
flex-direction: column;
gap: 32px;

margin-top: 2%;

> .title {
font-size: 1.8rem;
line-height: 2rem;
font-weight: 600;

max-width: 700px;
}

> .description {
font-size: 1rem;
font-weight: 400;

max-width: 800px;

opacity: 0.8;
}

> .over_title {
font-size: 0.9rem;
font-weight: 400;
letter-spacing: 2px;
text-transform: uppercase;
opacity: 0.8;

max-width: 800px;
}

> .button {
display: flex;
width: fit-content;

gap: 16px;
align-items: center;
justify-content: center;

color: #fff;
border: 2px solid #fff;
border-radius: 0px;
padding: 8px 16px;

font-size: 0.9rem;
transition: all 0.3s ease;

animation: button-pulse 1.5s infinite;

&:hover {
background-color: #fff;
color: #000;
}
}
}

@keyframes button-pulse {
0% {
outline: 0px solid #fff;
}
50% {
outline: 8px solid #ffffff00;
}
100% {
outline: 8px solid #ffffff00;
}
}
1 change: 1 addition & 0 deletions resources/scss/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ html, body {
color: $fg-color;
font-family: $body-font-family;
font-size: $body-font-size;
scroll-behavior: smooth;
}

@media screen and (min-width: map-get($breakpoints, md)) {
Expand Down
31 changes: 31 additions & 0 deletions resources/scss/base/_fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* fonts */

@font-face {
font-family: "Paxo";
font-weight: 300;
src: url("/public/fonts/NotoSans-Light.ttf")
}

@font-face {
font-family: "Paxo";
font-weight: 400;
src: url("/public/fonts/NotoSans-Regular.ttf")
}

@font-face {
font-family: "Paxo";
font-weight: 500;
src: url("/public/fonts/NotoSans-Medium.ttf")
}

@font-face {
font-family: "Paxo";
font-weight: 600;
src: url("/public/fonts/NotoSans-SemiBold.ttf")
}

@font-face {
font-family: "Paxo";
font-weight: 700;
src: url("/public/fonts/NotoSans-Bold.ttf")
}
4 changes: 2 additions & 2 deletions resources/scss/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
$bg-color: #fff;
$fg-color: #000;

$body-font-family: Helvetica, Arial, sans-serif;
$body-font-family: 'Paxo', sans-serif;
$body-font-size: 16px;
$body-font-size: 16px;
$transition-duration: 0.2s;
$transition-duration: 0.3s;

$breakpoints: (
xs: 0,
Expand Down
36 changes: 20 additions & 16 deletions resources/scss/layout/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
/* footer */

footer {
min-height: 10vh;
background: #0A0A0A;
background: #153029;
color: #fff;
padding: 5%;
padding: 0px 8%;

display: flex;
flex-direction: column;
justify-content: center;
justify-content: space-between;
align-items: center;

flex-direction: row;

gap: 2rem;
}

footer > *
{
flex: 1 1 0;
.footer-text {
font-size: 14px;
width: 100%;
flex: 1;
max-width: 500px;
margin: 20px 0px;
}

.social {}

.social ul {
display: flex;
justify-content: center;
justify-content: flex-end;
align-items: center;
flex-direction: row;
gap: 1.4rem;
gap: 1.5rem;
width: fit-content;
}


.social ul li a {
text-decoration: none;
color: white;
font-size: 40px;
font-size: 26px;
cursor: pointer;
}
opacity: 0.5;

transition: all 0.3s ease;

@media screen and (min-width: map-get($breakpoints, sm))
{
footer {
flex-direction: row;
&:hover {
opacity: 1;
}
}
Loading