Skip to content

Commit 39799fb

Browse files
committed
Added introduction
1 parent afd88b2 commit 39799fb

File tree

3 files changed

+150
-1
lines changed

3 files changed

+150
-1
lines changed

css/pages/index/index.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
.introduction-container {
3+
display: flex;
4+
margin-top: 5%;
5+
margin-left: 5%;
6+
color:white;
7+
font-family: "Inter";
8+
font-weight: 500;
9+
}
10+
11+
.introduction-text {
12+
margin-top: 6%;
13+
width: 50%;
14+
display:flex;
15+
flex-direction: column;
16+
}
17+
18+
.introduction-text h1 {
19+
font-family: "Uni Sans";
20+
font-size: 90px;
21+
}
22+
23+
.introduction-paragraph {
24+
margin-top: 2%;
25+
padding-right: 6%;
26+
}
27+
28+
.introduction-join-btn {
29+
display: flex;
30+
align-items: center;
31+
margin-right: auto;
32+
margin-top: 5%;
33+
padding: 16px 85px;
34+
color: white;
35+
font-size: 34px;
36+
font-family: "Uni Sans", sans-serif;
37+
text-decoration: none;
38+
39+
background-color: #FF212D;
40+
border-radius: 25px;
41+
}
42+
43+
.introduction-join-btn:hover {
44+
transition: background-color 0.5s ease;
45+
background-color: #fa3e48;
46+
}
47+
48+
.introduction-image {
49+
width: 50%;
50+
}
51+
52+
.paragraph {
53+
font-family: "Inter";
54+
font-size: 34px;
55+
font-weight: 600;
56+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
@media only screen and (max-width: 1600px) {
2+
.paragraph {
3+
font-size: 32px;
4+
}
5+
6+
.introduction-text h1 {
7+
font-size: 65px;
8+
}
9+
10+
.introduction-join-btn {
11+
padding: 14px 80px;
12+
font-size: 32px;
13+
}
14+
}
15+
16+
@media only screen and (max-width: 1250px) {
17+
.paragraph {
18+
font-size: 28px;
19+
}
20+
21+
.introduction-text{
22+
width: 100%;
23+
}
24+
25+
.introduction-text h1 {
26+
font-size: 60px;
27+
}
28+
29+
.introduction-image {
30+
display: none;
31+
}
32+
33+
.introduction-join-btn {
34+
padding: 12px 75px;
35+
font-size: 30px;
36+
}
37+
}
38+
39+
@media only screen and (max-width: 1020px) {
40+
.paragraph {
41+
font-size: 26px;
42+
}
43+
44+
.introduction-text h1 {
45+
font-size: 55px;
46+
}
47+
48+
.introduction-join-btn {
49+
padding: 10px 70px;
50+
font-size: 28px;
51+
}
52+
}
53+
54+
@media only screen and (max-width: 940px) {
55+
.paragraph {
56+
font-size: 24px;
57+
}
58+
59+
.introduction-text h1 {
60+
font-size: 50px;
61+
}
62+
63+
.introduction-join-btn {
64+
padding: 8px 65px;
65+
font-size: 26px;
66+
}
67+
}
68+
69+
@media only screen and (max-width: 750px) {
70+
.paragraph {
71+
font-size: 18px;
72+
}
73+
74+
.introduction-text h1 {
75+
font-size: 36px;
76+
}
77+
78+
.introduction-join-btn {
79+
padding: 6px 60px;
80+
font-size: 24px;
81+
}
82+
}

index.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<link rel="stylesheet" href="./css/navbar.css">
1010
<link rel="stylesheet" href="./css/global.css">
1111
<link rel="stylesheet" href="./css/pages/index/index.css">
12+
<link rel="stylesheet" href="./css/pages/index/indexResponsive.css">
1213
<link rel="shortcut icon" href="./assets/ServerLogo.png" type="image/x-icon">
1314
<title>Java Discord - Java Community on Discord</title>
1415
</head>
@@ -33,7 +34,17 @@
3334
</div>
3435
</nav>
3536
</div>
36-
37+
<!-- BODY -->
38+
<div class="introduction-container">
39+
<div class="introduction-text">
40+
<h1>HELP. <a style="color:#ff212d">CODE.</a> LEARN.</h1>
41+
<p class="paragraph introduction-paragraph">With over 12,000 Members and 50,000 Messages sent each month, join one of the biggest Java Communities on Discord to help, get help and discuss programming in Java.</p>
42+
<a href="https://discord.gg/X3NmMgzFKF" target="_blank" class="introduction-join-btn">Join</a>
43+
</div>
44+
<div class="introduction-image">
45+
<img src="./assets/sample.png" alt="" style="width:85%;">
46+
</div>
47+
</div>
3748

3849
<!-- Hamburger Menu -->
3950
<script type="text/javascript">

0 commit comments

Comments
 (0)