Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexristinmaa committed Apr 1, 2024
1 parent acbe8b4 commit b17ac6e
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 16 deletions.
8 changes: 8 additions & 0 deletions alexanderristinmaa/app/(blog)/blog/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// style
import styles from './page.module.css';

export default function Home() {
return (
<p>Bloggen</p>
);
}
16 changes: 16 additions & 0 deletions alexanderristinmaa/app/(blog)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export const metadata = {
title: 'Next.js',
description: 'Generated by Next.js',
}

export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>{children}</body>
</html>
)
}
Empty file.
12 changes: 12 additions & 0 deletions alexanderristinmaa/app/(homepage)/alex/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// style
import styles from './page.module.css';

export default function Home() {
return (
<div>
<p><b>VEM ÄR JAG?</b></p>
<p>Jag heter Alex och kommer ifrån Sverige.</p>
</div>

);
}
4 changes: 2 additions & 2 deletions alexanderristinmaa/app/(homepage)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default function RootLayout({
<Link href='/' id={styles.navTitle}>Alex Ställe</Link>
</div>
<div className={styles.navRight}>
<Link className={styles.navLink} href='/alex'>Vem e jag</Link>
<Link className={styles.navLink} href='/varfor'>Varför e jag</Link>
<Link className={styles.navLink} href='/blog'>Bloggen</Link>
<Link className={styles.navLink} href='/alex'>Vem är jag</Link>
</div>
</div>
</nav>
Expand Down
14 changes: 14 additions & 0 deletions alexanderristinmaa/app/(homepage)/page.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#imgDiv {
width: 50%;
float: right;
}

#imgDiv > p{
margin-top: 8px;
float: right;
}

#img {
width: 100%;
border: 2px solid var(--black);
}
7 changes: 6 additions & 1 deletion alexanderristinmaa/app/(homepage)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import styles from './page.module.css';
export default function Home() {
return (
<div>
<p>Hej. Jag heter Alexander Ristinmaa och detta är min hemsida. Om du vågar kolla runt kan du säkert hitta v<Link href='/hemligt'>a</Link>d du letar efter.</p>
<p>Om du vågar kolla runt kan du säkert hitta v<Link href='/hemligt'>a</Link>d du letar efter.</p>
<div id={styles.imgDiv}>
<img id ={styles.img} src="/Alexander Ristinmaa.JPG" alt="Cool img" />
<p>Kebnekaise toppstuga och en räddningshelikopter</p>
</div>

</div>
);
}
8 changes: 0 additions & 8 deletions alexanderristinmaa/app/(homepage)/varfor/page.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions alexanderristinmaa/app/hemligt/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import styles from './layout.module.css';

export const metadata = {
title: 'Next.js',
description: 'Generated by Next.js',
title: 'Hemligheter',
description: 'Ser man detta i källkoden eller?',
}

export default function RootLayout({
Expand Down
13 changes: 10 additions & 3 deletions alexanderristinmaa/app/hemligt/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

// nextjs
import { useState, useEffect } from 'react';
import Script from 'next/script';

// style
import styles from './page.module.css';

// misc
import fcontent from './catimation';
import Link from 'next/link';

export default function Home() {
const [catimationState, setCatimation] = useState(fcontent[0]);

let animator = (frame : number) => {
setCatimation(fcontent[frame]);
setTimeout(animator, 100, frame < fcontent.length ? frame + 1 : 0);
setTimeout(animator, 100, frame < fcontent.length-1 ? frame + 1 : 0);
}

useEffect(() => {
Expand Down Expand Up @@ -58,11 +58,18 @@ export default function Home() {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`!9899fT|!^"'<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`!^"'
</p>
<br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<p>Okej, det var allt <Link href="/"><u>gå tillbaka nu</u></Link></p>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<p>Varför snokar du?</p>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
Okej, bajs
<pre id={styles.catimator} dangerouslySetInnerHTML={{__html: catimationState }}></pre>
<br /><br /><br /><br /><br />
<p>Detta är Linneas del av hemsidan: </p><br />
<p>jag älskar alexander ristinmaa</p>
</div>
);
}
Binary file added alexanderristinmaa/public/Alexander Ristinmaa.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b17ac6e

Please sign in to comment.