Skip to content

Commit fa03d08

Browse files
committed
feat: [#90] add main buttons component
1 parent a8a24a7 commit fa03d08

File tree

16 files changed

+156
-514
lines changed

16 files changed

+156
-514
lines changed

src/components/cd-cover/index.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/components/cd-cover/styles.css

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import './styles.css';
2+
3+
export type MainButtonOptions = {
4+
text: string;
5+
path: string;
6+
styleType: 'primary' | 'secondary';
7+
};
8+
9+
// --------------------------------------------------------------------------------
10+
11+
export function createMainButton(options: MainButtonOptions) {
12+
const { text, path, styleType } = options;
13+
14+
const button = document.createElement('a');
15+
button.className = `main-button ${styleType}`;
16+
button.innerHTML = text;
17+
button.href = path;
18+
button.role = 'button';
19+
20+
return button;
21+
}
22+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.main-button {
2+
display: inline-block;
3+
min-width: 220px;
4+
height: 40px;
5+
6+
text-align: center;
7+
line-height: 36px;
8+
font-family: 'Handjet', sans-serif;
9+
font-size: 1.4em;
10+
text-transform: uppercase;
11+
text-decoration: none;
12+
13+
border-radius: 20px;
14+
border: 2px solid;
15+
16+
backdrop-filter: blur(30px);
17+
-webkit-backdrop-filter: blur(30px);
18+
overflow: hidden;
19+
}
20+
21+
.main-button.primary {
22+
background-color: rgba(59, 255, 197, 0.05);
23+
border-color: rgba(59, 255, 197, 1);
24+
color: #ffffff;
25+
26+
transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
27+
28+
&:hover {
29+
background-color: #34e6c0;
30+
border-color: #34e6c0;
31+
cursor: pointer;
32+
}
33+
}
34+
35+
.main-button.secondary {
36+
background-color: rgba(255, 255, 255, 0.05);
37+
border-color: rgba(255, 255, 255, 0.1);
38+
color: #ffffff;
39+
40+
transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
41+
42+
&:hover {
43+
background-color: rgba(255, 255, 255, 1);
44+
border-color: #ffffff;
45+
color: #000000;
46+
cursor: pointer;
47+
}
48+
}

src/components/vertical-nav/assets/github-icon.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/components/vertical-nav/assets/instagram-icon.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/components/vertical-nav/assets/linkedin-icon.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/components/vertical-nav/index.ts

Lines changed: 0 additions & 118 deletions
This file was deleted.

src/components/vertical-nav/info-project.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/components/vertical-nav/nav-links.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)