Skip to content

Commit

Permalink
[feat] add Landing Page for first mobile scss - added generic BasicBu…
Browse files Browse the repository at this point in the history
…ttom and LittleLogo and added translate
  • Loading branch information
blackstars64 committed Oct 24, 2024
1 parent 7345b91 commit bc19883
Show file tree
Hide file tree
Showing 17 changed files with 330 additions and 69 deletions.
38 changes: 19 additions & 19 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"dependencies": {
"@apollo/client": "^3.11.8",
"@parcel/watcher": "^2.4.1",
"classname": "^0.0.0",
"graphql": "^16.9.0",
"i18next": "^23.16.2",
Expand All @@ -23,21 +24,20 @@
"react-dom": "^18.3.1",
"react-i18next": "^15.1.0",
"react-router-dom": "^6.27.0",
"@parcel/watcher": "^2.4.1",
"rollup": "^3.0.0"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/client-preset": "^4.3.3",
"@types/i18next": "^12.1.0",
"@types/i18next-browser-languagedetector": "^2.0.2",
"@types/i18next-xhr-backend": "^1.4.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-i18next": "^7.8.3",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.3.1",
"@types/i18next": "^12.1.0",
"@types/i18next-xhr-backend": "^1.4.1",
"globals": "^15.9.0",
"sass": "^1.78.0",
"typescript": "^5.5.3",
Expand Down
40 changes: 38 additions & 2 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,43 @@
}

#root {
width: 100%;
height: 100%;
font-family: 'Urbanist', sans-serif;
margin: 0;
padding: 0;
}

p {
margin: 0;
}

*::-webkit-scrollbar {
height: 8px;
width: 8px;
}

*::-webkit-scrollbar-track {
border-radius: 4px;
background-color: #132945;
border: 1px solid #A9A9A9;
}

*::-webkit-scrollbar-track:hover {
background-color: #132945;
}

*::-webkit-scrollbar-track:active {
background-color: #132945;
}

*::-webkit-scrollbar-thumb {
border-radius: 8px;
background-color: #D4D4D4;
}

*::-webkit-scrollbar-thumb:hover {
background-color: #D4D4D4;
}

*::-webkit-scrollbar-thumb:active {
background-color: #D4D4D4;
}
8 changes: 4 additions & 4 deletions frontend/src/assets/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//Font
@mixin big-title-bold{
@mixin big-title{
font-size: 40px;
font-weight: bold;
font-weight: 600;
}

@mixin title-bold{
Expand All @@ -24,13 +24,13 @@

@mixin title-medium{
font-size: 20px;
font-weight: 700;
font-weight: 600;
margin: 0;
}

@mixin big-content-bold{
font-size: 18px;
font-weight: 300;
font-weight: bold;
margin: 0;
}

Expand Down
3 changes: 3 additions & 0 deletions frontend/src/assets/globs/glob.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions frontend/src/assets/globs/glob2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions frontend/src/assets/images/girl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions frontend/src/components/atoms/BasicButton/BasicButton.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@import '@assets/variables.scss';

.basic-button{
@include big-content-bold;
background: $secondary;
color: $white;
border-radius: 10px;
padding: 14px 24px;
border: none;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface BasicButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
children: React.ReactNode;
width?: number;
}
17 changes: 17 additions & 0 deletions frontend/src/components/atoms/BasicButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { BasicButtonProps } from "./BasicButton.type";
import "./BasicButton.scss";

function BasicButton({ children, width = 300, ...props }: BasicButtonProps) {
return (
<button
className="basic-button"
type="button"
style={{ width: width }}
{...props}
>
{children}
</button>
);
}

export default BasicButton;
2 changes: 1 addition & 1 deletion frontend/src/components/atoms/LittleLogo/LittleLogo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

&__title{
@include content-bold;
color: $prymary-color;
color: $prymary;
margin: 0;
}
}
2 changes: 0 additions & 2 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
132 changes: 132 additions & 0 deletions frontend/src/pages/LandingPage/LandingPage.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
@import '@assets/variables.scss';

.landing-page {
background: linear-gradient(82deg, rgba(255,255,252,1) 0%, rgba(68,119,232,1) 100%);

&__first-view {
height: 100vh;

&__glob{
position: absolute;
right: 0;
width: 268px;
top: 145px;
overflow: hidden;
z-index: 0;

&__img{
width: 440px;
height: 347px;
}
}

&__girl{
position: absolute;
right: 0;
top: 300px;
width: 268px;
z-index: 0;
overflow: hidden;

&__img{
width: 400px;
height: 500px;
}
}

&__header{
display: flex;
align-items: center;
justify-content: space-around;
padding: 32px 0 40px;

&__connect{
@include big-content-bold;
color: $white;
}
}

&__description{
@include big-title;
position: relative;
z-index: 1;
color: $prymary;
width: 180px;
text-align: center;
margin-left: 7%;
}

&__buttom{
position: absolute;
display: flex;
justify-content: center;
z-index: 1;
bottom: 4%;
width: 100%;


}
}

&__second-view {
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;

&__description{
@include title-medium-bold;
color: $prymary;
text-align: center;
margin: 94px 16px 43px;
}

&__step{
display: flex;
flex-direction: column;
gap: 34px;

&__content{
@include title-medium-bold;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: $white;
background: $prymary;
border-radius: 10px;
width: 178px;
height: 150px;
padding: 0 16px;
text-align: center;

}
}

&__glob{
position: absolute;
right: 0;
left: 0;
bottom: -100vh;
height: 124px;
z-index: 0;
overflow: hidden;

&__img{
width: 440px;
height: 360px;
}
}

&__buttom{
position: absolute;
display: flex;
justify-content: center;
z-index: 1;
bottom: -94%;
width: 100%;


}
}
}
Loading

0 comments on commit bc19883

Please sign in to comment.