-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.js
129 lines (128 loc) · 3.57 KB
/
footer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// @ts-check
import { Component } from 'react'
import Link from 'next/link'
import Image from 'next/image'
import styles from './Footer.module.css'
// @ts-ignore
import GitHubIcon from '../public/GitHub.png'
// @ts-ignore
import WebNotesIcon from '../public/Logo.png'
// @ts-ignore
import DevChatIcon from '../public/Dev-Chat.png'
import { FrontEndController } from '../controller/frontEndController'
/**
* @class Footer Component Class
* @component
* @category Components
*/
export class Footer extends Component {
/**
* Generates the JSX Output for the Client
* @returns JSX Output
*/
render() {
return (
<div>
<div className={styles.footer}>
<div className={styles.footerElement}>
<h4>
Quellcode
</h4>
<div className={styles.code}>
<Link
href={'https://github.com/DHBW-FN-TIT20/web-notes'}
passHref>
<div className={styles.icon}>
<Image
src={GitHubIcon}
objectFit='contain'
height={40}
width={40}
alt='GitHub Icon'
/>
</div>
</Link>
</div>
</div>
<div className={styles.footerElement}>
<h4>
Projekte
</h4>
<div className={styles.projects}>
<Link
href={'https://web-notes.me'}
passHref>
<div className={styles.icon}>
<Image
src={WebNotesIcon}
objectFit='contain'
height={40}
width={40}
alt='WebNotes Icon'
/>
</div>
</Link>
<Link
href={'https://dev-chat.me'}
passHref>
<div className={styles.icon}>
<Image
src={DevChatIcon}
objectFit='contain'
height={40}
width={40}
alt='DEV-CHAT Icon'
/>
</div>
</Link>
</div>
</div>
<div className={styles.footerElement}>
<h4>
Kontakt
</h4>
<div className={styles.contact}>
<Link
href={"/impressum"}>
Impressum
</Link>
</div>
</div>
<div className={styles.footerElement}>
<h4>
Account
</h4>
<div className={styles.account}>
<div hidden={this.props.isLoggedIn}>
<Link
href={"/login"}>
Login
</Link>
</div>
<div hidden={this.props.isLoggedIn}>
<Link
href={"/register"}>
Registrieren
</Link>
</div>
<div hidden={!this.props.isLoggedIn}>
<Link
href={"/profile"}>
Passwort ändern
</Link>
</div>
<div hidden={!this.props.isLoggedIn} onClick={() => {
FrontEndController.logoutUser()
location.reload()
}}>
<p className="link">
Ausloggen
</p>
</div>
</div>
</div>
</div>
</div>
)
}
}