This commit is contained in:
Erik 2022-03-24 21:38:16 +02:00
parent 963d68cfe2
commit 70baab648c
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589
2 changed files with 46 additions and 9 deletions

View File

@ -19,7 +19,8 @@ const Home = () => {
<h3> Hi! </h3> <h3> Hi! </h3>
<p> <p>
I'm Navy, or Erik. I'm a 20-something year old software developer from Finland. I don't really do design™, so excuse the oddly themed page (it's also probably unfinished). I'm Navy, or Erik. I'm a 20-something year old software developer from Finland.
I don't really do design™, so excuse the oddly themed page (it's also probably unfinished).
</p> </p>
<p> <p>
@ -38,6 +39,30 @@ const Home = () => {
</p> </p>
</section> </section>
<section className='card shadow'>
<h3>Languages, environments, tools etc I can work with</h3>
<p>
I can work with various ...things <br />
I'm most proficient with JS within the Node environment as it's the one I've worked with the longest,
though I can work well within any JS environment now. When working on Node projects I most commonly use MongoDB and MariaDB if needed. Web apis I write using Express.
</p>
<p>
I try to containerise most of my latest projects with docker. Metrics I do with Prometheus if suitable.
</p>
<p>
I've also dabbled in writing the occasional C# and Java project,
I can hold my own when using these languages but would not consider myself proficient with them.
</p>
<br/>
<small>I probably forgot something, so chances are this probably isn't everything.</small>
</section>
<section className='card shadow'> <section className='card shadow'>
<h3> While you're here... </h3> <h3> While you're here... </h3>
<p> <p>
@ -51,7 +76,7 @@ const Home = () => {
<section className='card shadow'> <section className='card shadow'>
<small>I would say I made this site with love but my relationship with css is a bit more complicated than that.</small> <small>I would say I made this site with love but my relationship with css is a bit more complicated than that. Made in the MERN stack.</small>
</section> </section>

View File

@ -1,6 +1,7 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import '../css/Panel.css'; import '../css/Panel.css';
import Dropdown from "../Structures/Dropdown"; import Dropdown from "../Structures/Dropdown";
import Popup from "../Structures/Popup";
const User = ({user}) => { const User = ({user}) => {
@ -15,21 +16,30 @@ const User = ({user}) => {
permissions[perm] = value; permissions[perm] = value;
}; };
const [popup, togglePopup] = useState(false);
const onClick = () => {
togglePopup(!popup);
};
return ( return (
<div className='user flex-container shadow'> <div className='user flex-container shadow'>
<div className='identity'> <div id='usertag' className=''>
{user.tag} ({user.id}) {user.tag} ({user.id})
</div> </div>
<div className='permissions'> <div className=''>
<Dropdown onUpdate={onUpdate} items={perms} name='Permissions' /> <Dropdown onUpdate={onUpdate} items={perms} name='Permissions' />
</div> </div>
<div className='uploads'> <div onClick={onClick} className=''>
Manage Uploads <span>Manage Uploads</span>
<Popup toggle={popup}>
Banger
</Popup>
</div> </div>
<div> <div className=''>
<button className='delete-btn'> <button className='delete-btn'>
DELETE DELETE
</button> </button>
@ -56,9 +66,11 @@ const Panel = () => {
return ( return (
<div className='panel'> <div className='panel'>
{users.length ? users.map(user => <User key={user.id} user={user} />) : 'No users'} <div className='userlist'>
{users.length ? users.map(user => <User key={user.id} user={user} />) : 'No users'}
</div>
<div> <div className='bottom'>
<button onClick={() => { console.log(users); }}> <button onClick={() => { console.log(users); }}>
save save
</button> </button>