Skip to content
Snippets Groups Projects
Commit 3a36b442 authored by Timo Geissbühler's avatar Timo Geissbühler
Browse files

Profile

parent c65eb409
No related branches found
No related tags found
No related merge requests found
.user-container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 2rem;
}
.user-name {
background: lightblue;
width: 20rem;
padding: 1em;
border-radius: 0.5rem;
}
.user-info {
width: 20rem;
font-size: 1rem;
}
\ No newline at end of file
.navbar {
text-decoration: none;
position: sticky;
top: 0;
left: 0;
}
\ No newline at end of file
import React, {use, useEffect, useState} from 'react';
import {getAllUsers, getUser} from '../lib/db'; // Hier importieren wir die getAllUsers Funktion
import '../css/Profile.css';
export default function Profile() {
const [user, setUser] = useState({});
......@@ -19,7 +20,7 @@ export default function Profile() {
<h1>{user.name}</h1>
</div>
<div className="user-info">
<h2>{user.location}</h2>
<p>{user.location}</p>
</div>
</div>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment