Skip to content

Commit

Permalink
Hemligt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexristinmaa committed Mar 30, 2024
1 parent 6b41872 commit 67300d8
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 42 deletions.
92 changes: 57 additions & 35 deletions alexanderristinmaa/app/(homepage)/layout.module.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,60 @@
#nav {
background-color: aliceblue;
padding: 20px;
background-color: var(--header-rgb);
color: var(--header-foreground);
padding: 20px;
flex-shrink: 0;
}

#navLine {
display: flex;
flex-direction: row;
height: auto;
}

.navLink {
padding: 8px;
display: inline-block;
margin: auto 0 auto 0;
}

.navLeft {
display: flex;
justify-content: center;
}

.navRight {
display: flex;
justify-content: center;
margin-left: auto;
}

#navTitle {
font-size: 20px;
font-weight: bold;
padding: 8px;
display: inline-block;
}

.main {
padding: 20px 80px;
}
display: flex;
flex-direction: row;
height: auto;
}

.navLink {
padding: 8px;
display: inline-block;
margin: auto 0 auto 0;
}

.navLeft {
display: flex;
justify-content: center;
}

.navRight {
display: flex;
justify-content: center;
margin-left: auto;
}

#navTitle {
font-size: 20px;
font-weight: bold;
padding: 8px;
display: inline-block;
color: var(--highlight);
}

#body {
display: flex;
flex-direction: column;
height: 100vh;
}

#main {
padding: 20px 100px;
flex: 1 0 auto;
}

#footer {
flex-shrink: 0;
height: 100px;
background-color: var(--highlight-weak);
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
white-space: pre-line;
}
8 changes: 6 additions & 2 deletions alexanderristinmaa/app/(homepage)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function RootLayout({
}>) {
return (
<html lang="sv">
<body className={inter.className}>
<body className={inter.className} id={styles.body}>
<nav id={styles.nav}>
<div id={styles.navLine}>
<div className={styles.navLeft}>
Expand All @@ -32,9 +32,13 @@ export default function RootLayout({
</div>
</div>
</nav>
<main className={styles.main}>
<main id={styles.main}>
{children}
</main>
<footer id={styles.footer}>
<span>Made with <Link href='/hemligt'><span className='icon heartIcon'></span></Link></span>
<span>av Alexander Ristinmaa 2024</span>
</footer>
</body>
</html>
);
Expand Down
3 changes: 0 additions & 3 deletions alexanderristinmaa/app/(homepage)/varfor/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// nextjs
import Link from 'next/link'

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

Expand Down
13 changes: 11 additions & 2 deletions alexanderristinmaa/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
@import './icons.css';

:root {
--foreground-rgb: 240, 240, 240;
--black: #0a0908ff;
--white: #f2f4f3ff;
--highlight: #EA9010;
--highlight-weak: #e5b065;
--beaver: #a9927dff;
--walnut-brown: #5e503fff;
}

* {
Expand All @@ -12,9 +19,11 @@ html,
body {
max-width: 100vw;
overflow-x: hidden;
background-color: var(--white);
color: var(--black);
}

a {
color: inherit;
text-decoration: none;
}
}
16 changes: 16 additions & 0 deletions alexanderristinmaa/app/hemligt/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.
8 changes: 8 additions & 0 deletions alexanderristinmaa/app/hemligt/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>Arvid luktar bajs</p>
);
}
10 changes: 10 additions & 0 deletions alexanderristinmaa/app/icons.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.icon {
background-size: contain;
display: inline-block;
}

.heartIcon {
background-image: url('../images/heart-icon.svg');
width: 1em;
height: 0.9em;
}
1 change: 1 addition & 0 deletions alexanderristinmaa/images/heart-icon.svg
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 67300d8

Please sign in to comment.