This commit is contained in:
nin0dev 2024-07-29 09:41:01 -04:00
parent daf96857f5
commit 3707225ff7
5 changed files with 31 additions and 2 deletions

View file

@ -0,0 +1,5 @@
<button>hi</button>
<script>
document.querySelector("button").addEventListener("click", () => {alert("hi")});
</script>

View file

@ -0,0 +1,3 @@
<footer>
<p>aaaAAAA.COM</p>
</footer>

View file

@ -0,0 +1,2 @@
<a href="/about">second page idk</a>
<a href="/blog">Cool blog</a>

View file

@ -0,0 +1,10 @@
---
const { platform, username } = Astro.props;
---
<a href={`https://${platform}.com/${username}`}>{platform}</a>
<style>
* {
color: green;
}
</style>

View file

@ -1,5 +1,9 @@
--- ---
import "../styles/global.css"; import "../styles/global.css";
import Button from "../components/Button.astro";
import Navigation from "../components/Navigation.astro";
import Footer from "../components/Footer.astro";
import Social from "../components/Social.astro";
const nuclearLaunchCodes = "below" const nuclearLaunchCodes = "below"
// this will never be revealed :meowlien: // this will never be revealed :meowlien:
@ -25,10 +29,15 @@ const nukeColors = "navy";
</head> </head>
<body> <body>
<h1>Astro 2</h1> <h1>Astro 2</h1>
<a href="/about">second page idk</a> <Navigation />
<a href="/blog">Cool blog</a>
<p>The nukes are {nuclearLaunchCodes}</p> <p>The nukes are {nuclearLaunchCodes}</p>
<p id="nukes">The actual code is {actualLaunchCodes.map((code) => <pre>{code}</pre> )}</p> <p id="nukes">The actual code is {actualLaunchCodes.map((code) => <pre>{code}</pre> )}</p>
{actualLaunchCodes.length >= 6 && <p>Enough codes to obliterate humanity</p>} {actualLaunchCodes.length >= 6 && <p>Enough codes to obliterate humanity</p>}
<Footer />
<h3>
Socials
</h3>
<Social platform="GitHub" username="nin0-dev" />
<Button />
</body> </body>
</html> </html>