Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Integr-0 committed Mar 28, 2024
1 parent f880ec7 commit 6f3af07
Show file tree
Hide file tree
Showing 8 changed files with 179 additions and 102 deletions.
180 changes: 107 additions & 73 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,93 +1,127 @@
import './App.css'
import csharp from './assets/csharp.png'
import css from './assets/css.png'
import html from './assets/html.png'
import java from './assets/java.png'
import javascript from './assets/javascript.png'
import kotlin from './assets/kotlin.png'
import python from './assets/python.png'
import react from './assets/react.png'
import typescript from './assets/typescript.png'
import icon from './assets/icon.png'
import Card from './components/CardComponent'
import MainBox from './components/MainBox'
import Box from './components/Box'
import LinkButton from './components/LinkButton'
import Image from './components/Image'
import "./App.css";
import csharp from "./assets/csharp.png";
import css from "./assets/css.png";
import html from "./assets/html.png";
import java from "./assets/java.png";
import javascript from "./assets/javascript.png";
import kotlin from "./assets/kotlin.png";
import python from "./assets/python.png";
import react from "./assets/react.png";
import typescript from "./assets/typescript.png";
import icon from "./assets/icon.png";
import Card from "./components/CardComponent";
import MainBox from "./components/MainBox";
import Box from "./components/Box";
import LinkButton from "./components/LinkButton";
import Image from "./components/Image";

function App() {
return (
<>
<div className="area_center">
<MainBox icon={icon} />

<Box content={
<div className="card-body">
<p className="title_center"><i className="fa-solid fa-person" /> About me</p>
<h5 className="card-title">
<h4>Hi, im Erik!</h4>
I'm a developer from <b>Austria</b> who likes to try out different stuff.
<br />
I mainly code in <b>Java</b> or <b>Kotlin</b> (I don't really do Front end)
</h5>
</div>
} />
<Box
content={
<div className="card-body">
<p className="title_center">
<i className="fa-solid fa-person" /> About me
</p>
<h5 className="card-title">
<h4>Hi, im Erik!</h4>
I'm a developer from <b>Austria</b> who likes to
try out different stuff.
<br />I mainly code in <b>Java</b> or <b>Kotlin</b> (I don't really do Front end)
</h5>
</div>
}
/>

<Box content={
<div className="card-body">
<p className="title_center"><i className="fa-solid fa-language" /> Languages</p>
<Box
content={
<div className="card-body">
<p className="title_center">
<i className="fa-solid fa-language" /> Languages
</p>

<p className="icon_wrapper_pc">
<Image src={kotlin} />
<Image src={css} />
<Image src={csharp} />
<Image src={html} />
<Image src={java} />
<Image src={python} />
<Image src={react} />
<Image src={typescript} />
<Image src={javascript} />
</p>
<p className="icon_wrapper_pc">
<Image src={kotlin} />
<Image src={css} />
<Image src={csharp} />
<Image src={html} />
<Image src={java} />
<Image src={python} />
<Image src={react} />
<Image src={typescript} />
<Image src={javascript} />
</p>

<p className="icon_wrapper_phone">
<Image src={kotlin} />
<Image src={css} />
<Image src={csharp} />
<Image src={html} />
<Image src={java} />
</p>
<p className="icon_wrapper_phone">
<Image src={kotlin} />
<Image src={css} />
<Image src={csharp} />
<Image src={html} />
<Image src={java} />
</p>

<p className="icon_wrapper_phone">
<Image src={python} />
<Image src={react} />
<Image src={typescript} />
<Image src={javascript} />
</p>
</div>
} />
<p className="icon_wrapper_phone">
<Image src={python} />
<Image src={react} />
<Image src={typescript} />
<Image src={javascript} />
</p>
</div>
}
/>

<Box content={
<div className="card-body">
<p className="title_center"><i className="fa-solid fa-code" /> Some Projects</p>
<Box
content={
<div className="card-body">
<p className="title_center">
<i className="fa-solid fa-code" /> Some Projects
</p>

<Card title="ContentAutomation" bio="Automatically generates clips of a length of around 30 seconds. Perfect for platforms like TikTok and YouTube-shorts." link="https://github.com/Integr-0/ContentAutomation" />
<Card title="Trajectory" bio="Trajectory is a fast event system Kotlin." link="https://github.com/Integr-0/Trajectory" />
<Card title="JsonCompiler" bio="Executes Json like normal code..." link="https://github.com/Integr-0/JsonCompiler" />
</div>
} />
<Card
title="ContentAutomation"
bio="Automatically generates clips of a length of around 30 seconds. Perfect for platforms like TikTok and YouTube-shorts."
link="https://github.com/Integr-0/ContentAutomation"
/>
<Card
title="Trajectory"
bio="Trajectory is a fast event system Kotlin."
link="https://github.com/Integr-0/Trajectory"
/>
<Card
title="JsonCompiler"
bio="Executes Json like normal code..."
link="https://github.com/Integr-0/JsonCompiler"
/>
</div>
}
/>

<Box content={
<div className="card-body">
<p className="title_center"><i className="fa-solid fa-link" /> Links</p>
<Box
content={
<div className="card-body">
<p className="title_center">
<i className="fa-solid fa-link" /> Links
</p>

<LinkButton link="https://github.com/Integr-0" name="GitHub" />
<LinkButton link="https://discordapp.com/users/688059979105697844" name="Discord" />
</div>
} />
<LinkButton
link="https://github.com/Integr-0"
name="GitHub"
/>
<LinkButton
link="https://discordapp.com/users/688059979105697844"
name="Discord"
/>
</div>
}
/>
</div>
<br />
</>
)
);
}

export default App
export default App;
15 changes: 12 additions & 3 deletions src/components/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@ interface Prop {

export default function Box(props: Prop) {
return (
<div className="card" style={{ margin: 'auto', marginTop: '40px', backgroundColor: 'rgba(177, 177, 177, 0.75)', boxShadow: 'rgba(0, 0, 0, 0.25) 0px 4px 4px', borderRadius: '40px', width: 'fit-content' }}>
<div
className="card"
style={{
margin: "auto",
marginTop: "40px",
backgroundColor: "rgba(177, 177, 177, 0.75)",
boxShadow: "rgba(0, 0, 0, 0.25) 0px 4px 4px",
borderRadius: "40px",
width: "fit-content",
}}
>
{props.content}
</div>

);
}
}
22 changes: 19 additions & 3 deletions src/components/CardComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,28 @@ interface Prop {

export default function card(prop: Prop) {
return (
<div className="card" style={{ margin: 'auto', marginTop: '40px', backgroundColor: 'rgba(177, 177, 177, 0.75)', boxShadow: 'rgba(0, 0, 0, 0.25) 0px 4px 4px', borderRadius: '40px' }}>
<div
className="card"
style={{
margin: "auto",
marginTop: "40px",
backgroundColor: "rgba(177, 177, 177, 0.75)",
boxShadow: "rgba(0, 0, 0, 0.25) 0px 4px 4px",
borderRadius: "40px",
}}
>
<div className="card-body">
<h5 className="card-title">{prop.title}</h5>
<p className="card-text">{prop.bio}</p>
<a href={prop.link} className="btn btn-secondary" style={{ borderRadius: '40px' }}>Go there <i className="fa-solid fa-arrow-up-right-from-square" /></a>
<a
href={prop.link}
className="btn btn-secondary"
style={{ borderRadius: "40px" }}
>
Go there{" "}
<i className="fa-solid fa-arrow-up-right-from-square" />
</a>
</div>
</div>
);
}
}
6 changes: 2 additions & 4 deletions src/components/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ interface Prop {
}

export default function Image(props: Prop) {
return (
<img alt="image" src={props.src} className="icon" />
);
}
return <img alt="image" src={props.src} className="icon" />;
}
11 changes: 9 additions & 2 deletions src/components/LinkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ interface Prop {

export default function LinkButton(props: Prop) {
return (
<a href={props.link} className="btn btn-secondary" style={{ borderRadius: '40px', marginRight: '10px',}}>{props.name} <i className="fa-solid fa-arrow-up-right-from-square" /></a>
<a
href={props.link}
className="btn btn-secondary"
style={{ borderRadius: "40px", marginRight: "10px" }}
>
{props.name}{" "}
<i className="fa-solid fa-arrow-up-right-from-square" />
</a>
);
}
}
25 changes: 21 additions & 4 deletions src/components/MainBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,27 @@ interface Prop {

export default function MainBox(prop: Prop) {
return (
<div className="card" style={{ margin: 'auto', backgroundColor: 'rgba(177, 177, 177, 0.75)', boxShadow: 'rgba(0, 0, 0, 0.25) 0px 4px 4px', width: 'fit-content', borderRadius: '40px' }}>
<img alt="Logo" src={prop.icon} className="img" style={{ marginLeft: '30px', marginRight: '30px', marginTop: '30px' }} />
<div
className="card"
style={{
margin: "auto",
backgroundColor: "rgba(177, 177, 177, 0.75)",
boxShadow: "rgba(0, 0, 0, 0.25) 0px 4px 4px",
width: "fit-content",
borderRadius: "40px",
}}
>
<img
alt="Logo"
src={prop.icon}
className="img"
style={{
marginLeft: "30px",
marginRight: "30px",
marginTop: "30px",
}}
/>
<p className="title_center">Integr</p>
</div>

);
}
}
4 changes: 0 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ a:hover {
color: #535bf2;
}

body {

}

h1 {
font-size: 3.2em;
line-height: 1.1;
Expand Down
18 changes: 9 additions & 9 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './App.css'
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import "./App.css";

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
);

0 comments on commit 6f3af07

Please sign in to comment.