Skip to content

Commit 6d0aeb1

Browse files
add powered by namecheap (Xtremilicious#74)
* add sponsor * add sponsor
1 parent 6fc927d commit 6d0aeb1

File tree

4 files changed

+35
-8
lines changed

4 files changed

+35
-8
lines changed

src/components/Dashboard/Content/Project.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const ProjectWrapper = styled.div`
2828
rgba(255, 255, 255, 0.05) 10.93%,
2929
rgba(255, 255, 255, 0) 90%
3030
);
31-
backdrop-filter: blur(55px);
31+
backdrop-filter: blur(100px);
3232
:hover {
3333
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.1);
3434
background-color: var(--themeDark);

src/components/Dashboard/Sidebar/index.js

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
11
import React, { Component } from "react";
22
import styled from "styled-components";
33

4+
import nameCheapLogo from "../../../img/powered-by-namecheap-black.png"
5+
46
import CategoryInfo from "./CategoryInfo";
57
import Categories from "./Categories";
68

79
const SidebarWrapper = styled.div`
810
display: grid;
911
position: fixed;
1012
left: 0;
11-
grid-template-rows: 30vh 63vh 7vh;
13+
grid-template-rows: 30vh 60vh 10vh;
1214
width: 20vw;
1315
.footer {
1416
display: flex;
1517
padding-left: 3vh;
1618
font-size: 1.1vw;
1719
color: var(--theme-grey);
1820
align-items: center;
21+
justify-content: center;
22+
flex-direction: column;
23+
gap: 16px;
24+
a{width: 50%}
1925
}
2026
`;
2127

2228
export default class Sidebar extends Component {
2329
render() {
2430
return (
2531
<SidebarWrapper>
26-
<CategoryInfo slug={this.props.slug} color={this.props.color}/>
27-
<Categories slug={this.props.slug} url={this.props.url} color={this.props.color}/>
28-
<div className="footer">© 2023 ProjectLearn</div>
32+
<CategoryInfo slug={this.props.slug} color={this.props.color} />
33+
<Categories slug={this.props.slug} url={this.props.url} color={this.props.color} />
34+
<div className="footer">© 2023 ProjectLearn<a
35+
href="https://www.namecheap.com"
36+
className="img-link"
37+
target="_blank"
38+
><img src={nameCheapLogo} width={'100%'} alt="Powered by Namecheap" /></a></div>
2939
</SidebarWrapper>
3040
);
3141
}

src/components/Landing/Footer.js

+20-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ const FooterWrapper = styled.div`
99
padding: 3vh;
1010
font-size: 1.3vw;
1111
color: var(--themeTextSecondaryDark);
12+
a{
13+
display: flex;
14+
align-items: center;
15+
}
1216
1317
.footer-sponsor{
1418
display: flex;
@@ -19,7 +23,7 @@ const FooterWrapper = styled.div`
1923
margin-left: auto;
2024
display: flex;
2125
a{
22-
display: flex;
26+
display: flex;
2327
align-items: center;
2428
}
2529
}
@@ -28,6 +32,9 @@ const FooterWrapper = styled.div`
2832
color: var(--themeTextSecondaryDark);
2933
3034
}
35+
.img-link{
36+
width: 11.5%;
37+
}
3138
@media only screen and (min-width: 320px) and (max-width: 480px) {
3239
margin: 0vh 1vw;
3340
font-size: 4vw;
@@ -39,13 +46,18 @@ const FooterWrapper = styled.div`
3946
display: none;
4047
}
4148
42-
img{
49+
.img-link{
4350
width: 50%;
4451
}
4552
.mobile {
4653
display: none;
4754
}
55+
.img-link{
56+
display: flex;
57+
justify-content: center;
58+
}
4859
.footer-content {
60+
dis
4961
margin-right: 0rem;
5062
margin-left: 3.5vw;
5163
}
@@ -79,8 +91,13 @@ export default function Footer() {
7991
>
8092
Donate
8193
</a> */}
94+
8295
</div>
83-
<img src={nameCheapLogo} width={'14%'} alt="Powered by Namecheap" />
96+
<a
97+
href="https://www.namecheap.com"
98+
className="img-link"
99+
target="_blank"
100+
><img src={nameCheapLogo} width={'100%'} alt="Powered by Namecheap" /></a>
84101
</FooterWrapper>
85102
);
86103
}
17.9 KB
Loading

0 commit comments

Comments
 (0)