Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
old/
13 changes: 13 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"useTabs": true,

"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
}
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# ModernBetaWebsite

# ModernBeta.org
5 changes: 5 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// @ts-check
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({});
718 changes: 718 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
39 changes: 1 addition & 38 deletions index.html → old/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,43 +30,6 @@
</head>
<body>

<nav>
<div id="nav-content">
<div class="left">
<a href="#" id="nav-logo">
<img src="images/ModernBetaLogo_Full.png" alt="Modern Beta Logo" />
</a>
<div id="nav-links" class="desktop-only">
<a href="#">Home</a>
<a href="rules">Rules</a>
<a href="socials">Socials</a>
<a target="_blank" href="https://store.modernbeta.org/">Store</a>
<a target="_blank" href="https://map.modernbeta.org">Map</a>
<div class="dropdown">
Wiki
<div class="dropdown-content">
<a target="_blank" href="https://web.archive.org/web/20110902065819/http://www.minecraftwiki.net:80/wiki/Minecraft_Wiki">Beta 1.7.3 Wiki</a>
<a target="_blank" href="https://modernbeta.miraheze.org/wiki/Main_Page">Community Wiki</a>
</div>
</div>
</div>
</div>

<div class="right">
<button id="nav-menu-btn" class="mobile-only" onclick="togglenav('')"><img class="pixel-perfect" src="images/icons/open_menu.png" /></button>
<a href="play"><button id="join-now-button" class="desktop-only">Play Now!</button></a>
</div>
<div id="mobile-nav-dropdown" class="mobile-only pixel-perfect">
<a href="play">Play</a>
<a href="rules">Rules</a>
<a target="_blank" href="https://discord.gg/gXmjuejWtD">Discord</a>
<a href="socials">Socials</a><a target="_blank" href="https://store.modernbeta.org/">Store</a>
<a target="_blank" href="https://map.modernbeta.org">Map</a>
<a target="_blank" href="https://web.archive.org/web/20110902065819/http://www.minecraftwiki.net:80/wiki/Minecraft_Wiki">Beta 1.7.3 Wiki</a>
<a target="_blank" href="https://modernbeta.miraheze.org/wiki/Main_Page">Community Wiki</a>
</div>
</div>
</nav>

<header class="nav-bar-offset">
<a href="play"><button id="join-now-button-alt" class="mobile-only">Play Now!</button></a>
Expand Down Expand Up @@ -151,4 +114,4 @@ <h1>Join Our Discord!</h1>


</body>
</html>
</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
146 changes: 1 addition & 145 deletions styles/desktop.css → old/styles/desktop.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,155 +35,11 @@ h1,th
font-family: minecraft-bold;
}

body
{
overflow-x: hidden;
background: linear-gradient(180deg, var(--waterBlue) 25%, var(--waterBlueDark) 100%)
}

s
{
text-decoration: line-through;
}

.pixel-perfect
{
-ms-interpolation-mode: nearest-neighbor;
image-rendering: -webkit-optimize-contrast;
image-rendering: -moz-crisp-edges;
image-rendering: -o-pixelated;
image-rendering: pixelated;
}

nav
{
width: 100vw;
height: var(--navBarHeight);
background: linear-gradient(180deg, var(--skyDarkBlueTop) 0%, var(--skyDarkBlueBot) 75%);
padding: 10px 25px;
box-shadow: var(--perspectiveBoxShadow);
border-bottom: 2px solid black;
position: fixed;
top: 0;
z-index: 10;
}

#nav-content
{
max-width: 1500px;
height: 100%;
display: block;
margin: 0 auto;
z-index: 11;
}

nav .left
{
display: flex;
height: 100%;
float: left;
}

nav .right
{
display: inline-block;
height: 100%;
float: right;
}

#nav-logo img
{
height: 100%;
box-sizing: border-box;
}

#nav-logo
{
padding: 0 20px 0px 0px;
display: inline-block;
height: 100%;
}

#nav-logo:hover
{
background: none;
border: none;
}

#nav-links
{
display: flex;
height: 100%;
position: relative;
align-items: center;
}

#nav-links a,
#nav-links .dropdown
{
padding: 16px 25px;
font-size: 1.25em;
text-transform: uppercase;
text-shadow: var(--mcTextShadow);
}

#nav-links .dropdown {
position: relative;
display: inline-block;
}

#nav-links .dropdown:hover {
background: rgba(0, 0, 0, 0.15);
border-bottom: none;
height: 73px;
margin-top: 13px;
}

#nav-links a:hover
{
background: rgba(0, 0, 0, 0.15);
border-bottom: solid 5px rgba(0, 0, 0, 0.15);
}

#nav-links .dropdown:hover a:hover
{
background: rgba(0, 0, 0, 0.15);
border-bottom: none;
}

.dropdown
{
position: relative;
}

.dropdown-content
{
display: none;
position: absolute;
top: 100%;
left: 0;
background: rgba(0, 0, 0, 0.6);
border-bottom: solid 5px rgba(0, 0, 0, 0.15);
min-width: fit-content;
text-wrap: nowrap;
z-index: -1;
}

.dropdown-content a
{
display: block;
padding: 10px 15px;
font-size: 1em !important;
text-transform: none;
text-shadow: none;
text-decoration: none;
}

.dropdown:hover .dropdown-content
{
display: block;
}


.nav-bar-offset
{
Expand Down Expand Up @@ -662,4 +518,4 @@ ul ul
.hide
{
display: none;
}
}
File renamed without changes.
7 changes: 7 additions & 0 deletions old/styles/vars.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*********
* FONTS *
*********/

/*************
* VARIABLES *
*************/
File renamed without changes.
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "new",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"astro": "^5.7.0"
},
"devDependencies": {
"prettier": "^3.5.3",
"prettier-plugin-astro": "^0.14.1"
}
}
File renamed without changes.
Binary file added public/fonts/minecraftbold.otf
Binary file not shown.
Binary file added public/fonts/minecraftitalic.otf
Binary file not shown.
Binary file added public/fonts/minecraftregular.otf
Binary file not shown.
Binary file added public/fonts/minecraftregular_backup.ttf
Binary file not shown.
Binary file added public/images/backgrounds/mobile_nav_bg.png
Binary file added public/images/icons/close_menu.png
Binary file added public/images/icons/open_menu.png
File renamed without changes
Loading