Skip to content

Commit a8ada8c

Browse files
authored
Merge pull request #44 from dzcode-io/landing
how to contribute section & top repositories
2 parents 99191d2 + c6813b8 commit a8ada8c

File tree

19 files changed

+380
-89
lines changed

19 files changed

+380
-89
lines changed

frontend/src/apps/main/components/navbar/style.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.Navbar {
44
width: 100%;
5-
padding: 2% 10%;
5+
padding: 0 10%;
66
display: flex;
77
flex-direction: row;
88
justify-content: space-between;
@@ -11,21 +11,22 @@
1111
background-color: $bg-primary;
1212
font-family: "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
1313
"Helvetica Neue", sans-serif;
14-
14+
z-index: 999;
1515
position: fixed;
1616
top: 0;
1717
right: 0;
1818
.brand {
19-
font-size: 1.2rem;
19+
font-size: 1rem;
2020
color: text-primary;
2121
font-weight: bolder;
2222
display: flex;
2323
align-items: center;
24-
justify-content: flex-start;
24+
justify-content: flex-end;
2525
padding: 15px 0;
2626
text-decoration: none;
2727
font-weight: bold;
2828
color: $text-primary;
29+
width: 20vw;
2930
}
3031

3132
.Navbar__burger {
@@ -97,8 +98,8 @@
9798
text-align: center;
9899
padding: 12px;
99100
position: relative;
100-
font-size: 1rem;
101-
font-weight: 500;
101+
font-size: 0.8rem;
102+
font-weight: 400;
102103

103104
&::after {
104105
content: "";
4.79 KB
Loading
6.93 KB
Loading
7.95 KB
Loading
11.5 KB
Loading
5.54 KB
Loading
7.66 KB
Loading
Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,48 @@
11
import React from "react";
2+
23
import "./style";
4+
import programer from "./icons/programmer.png";
5+
import contact from "./icons/contact.png";
6+
import support from "./icons/support.png";
7+
import github from "./icons/github.png";
8+
9+
import { Button } from "../../../../../components/button";
10+
11+
const socialMedia = [
12+
{
13+
id: 1,
14+
name: "dzcode",
15+
href: "https://github.com/dzcode-io/dzcode.io",
16+
icon: github,
17+
},
18+
{ id: 2, name: "Learn", href: "/learn", icon: programer },
19+
{ id: 3, name: "Contact", href: "/contact", icon: contact },
20+
{ id: 4, name: "Support", href: "/support", icon: support },
21+
];
322

423
export const Header = () => (
524
<div className="header">
625
<div className="shade" />
726
<div className="text">
8-
<div className="title">dzCode.io</div>
9-
<div className="description">Algerian Open Source Community</div>
27+
<div className="title">Algerian Open Source Community</div>
28+
<div className="description">
29+
We make it easier to build better apps in Algeria for Algeria.
30+
</div>
31+
</div>
32+
33+
<div className="actions">
34+
<Button text="Contribute" link="#" className="primary" />
35+
<Button text="Learn More" link="#" className="secondary" />
36+
</div>
37+
<div className="socialMedia">
38+
{socialMedia.map((item) => {
39+
return (
40+
<div key={item.id} className="item">
41+
<img src={item.icon} alt={item.name} className="icon" />
42+
<a href={item.href}>{item.name}</a>
43+
</div>
44+
);
45+
})}
1046
</div>
1147
</div>
1248
);

frontend/src/apps/main/scenes/landing/header/style.scss

Lines changed: 69 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,90 @@
33
.landing {
44
.header {
55
height: 100vh;
6-
margin-top: -$navbar-height;
6+
margin-top: $navbar-height;
77
padding-top: $navbar-height;
88
box-sizing: border-box;
9-
z-index: -1;
10-
background: url("https://images.unsplash.com/3/doctype-hi-res.jpg?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=100")
11-
no-repeat center;
9+
z-index: 1;
10+
background: $bg-primary;
1211
background-size: cover;
1312
position: relative;
1413

14+
display: flex;
15+
flex-direction: column;
16+
justify-content: space-evenly;
17+
align-items: center;
18+
1519
.shade {
1620
position: absolute;
1721
width: 100%;
1822
height: 100%;
19-
background-color: #0008;
23+
background-color: rgba($color: #000000, $alpha: 0.02);
24+
z-index: -1;
25+
}
26+
.actions {
27+
display: flex;
28+
flex-wrap: wrap;
29+
align-items: center;
30+
justify-content: center;
2031
}
2132
.text {
22-
position: absolute;
23-
top: 50%;
24-
left: 50%;
25-
transform: translate(-50%, -50%);
26-
text-align: center;
33+
display: flex;
34+
flex-direction: column;
35+
justify-content: center;
36+
align-items: center;
37+
2738
.title {
28-
font-size: 54pt;
29-
color: $light;
39+
font-size: calc(1.2rem + 1.2vw);
40+
font-weight: 600;
41+
text-align: center;
42+
padding: 1rem;
3043
}
3144
.description {
32-
font-size: 24pt;
33-
color: $light;
45+
padding: 20px;
46+
font-size: calc(1rem + 1vw);
47+
text-align: center;
48+
}
49+
}
50+
}
51+
52+
.socialMedia {
53+
display: flex;
54+
width: 60vw;
55+
flex-direction: row;
56+
align-items: center;
57+
justify-content: space-evenly;
58+
.item {
59+
font-size: 1.1rem;
60+
font-weight: 600;
61+
display: flex;
62+
align-items: center;
63+
padding: 1rem;
64+
width: 120px;
65+
z-index: 5;
66+
cursor: pointer;
67+
68+
&:hover {
69+
transform: scale(1.1);
3470
}
71+
72+
a {
73+
text-decoration: none;
74+
color: $text-primary;
75+
}
76+
}
77+
78+
.icon {
79+
width: calc(30px + 1vw);
80+
height: calc(30px + 1vw);
81+
margin-right: 20px;
82+
}
83+
}
84+
}
85+
86+
@media only screen and (max-width: $large) {
87+
.header {
88+
.socialMedia {
89+
display: none;
3590
}
3691
}
3792
}

frontend/src/apps/main/scenes/landing/how-to-contribute/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,12 @@ import React from "react";
22
import "./style";
33

44
export const HowToContribute = () => (
5-
<div className="how-to-contribute">HowToContribute</div>
5+
<section className="how_to_contribute">
6+
<h1>Contribute in DzCode</h1>
7+
<div className="items">
8+
<div className="item">1. Chose a project that you like.</div>
9+
<div className="item">2. Clone the repository.</div>
10+
<div className="item">3. Start coding!.</div>
11+
</div>
12+
</section>
613
);

0 commit comments

Comments
 (0)