Skip to content
This repository was archived by the owner on Jan 27, 2024. It is now read-only.
Open
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
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ source_dir="$PWD/src"
mkdir -p $build_dir
touch "${build_dir}"/.nojekyll
cp "${source_dir}"/*.js "${build_dir}"

# fonts
mkdir -p "${build_dir}"/fonts
cp "${source_dir}"/fonts/*.* "${build_dir}"/fonts

# assets,
mkdir -p "${build_dir}"/assets
cp "${source_dir}"/assets/*.* "${build_dir}"/assets
for i in "${files[@]}"; do
file=$(echo "$i" | sed -E 's/ -> .*//')
title=$(echo "$i" | sed -E 's/.* -> //')
Expand Down
7 changes: 7 additions & 0 deletions hotreload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Watch for changes in the src/ directory and run bash ./build.sh when a change is detected
while true; do
inotifywait -e modify -r src/ && bash ./build.sh
done

11 changes: 11 additions & 0 deletions src/assets/hyprland-community.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/fonts/LondonBetween.ttf
Binary file not shown.
83 changes: 81 additions & 2 deletions src/global.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,86 @@
body > :not(code) {
font-family: Nanum Pen Script;
@font-face {
font-family: 'LondonBetween';
src: url('fonts/LondonBetween.ttf') format('truetype');
}

:root {
background: linear-gradient(45deg, #62cff4 15%, #ff00ff 158.5%);
}

html, body {
width: 100%;
height:100%;
}


code {
font-family: Nanum Gothic Coding !important;
}

.container {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.box {
background-color: #1b1b1b;
position: relative;
opacity: 0; /* Start with an opacity of 0 to hide the box */
transform: scale(0.5); /* Scale the box down to half its size */
transition: all 0.5s ease-in-out; /* Use a transition for the pop-in effect */
width: 70%;
height: 50%;
padding: 20px;
margin: 0 auto; /* Center the box horizontally */
max-width: 90%; /* Set the maximum width of the box */
padding: 20px; /* Add some padding inside the box */
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px); /* Add a blurred effect to the background */
border-radius: 20px; /* Add rounded corners to the box */
border: 2px solid rgba(0, 0, 0, 0.141);
box-shadow: 0 0 60px 2px #1b1b1c;
display: flex; /* Use flexbox to center the content */
flex-direction: column; /* Set the flex direction to column */
justify-content: center; /* Center the content vertically */
align-items: center; /* Center the content horizontally */

}

.box.show {
opacity: 1.0; /* Change opacity to 1 to show the box */
transform: scale(1); /* Scale the box back to its original size */
}

/* heading */
.heading {
font-family: 'LondonBetween';
font-size: 3rem;
display: flex;
align-items: center; /* Align items vertically in the center */
color: white;
}
.heading img {
margin-right: 20px; /* Add some space between the header and the image */
margin-bottom: 20px;
width: 120px;
}

.sub-heading {
font-family: monospace;
color: white;
font-size: 1rem;
margin-top: -60px;
}
.pages {
font-family: monospace;
font-size: 0.8rem;
color: white;
text-align: center;
}
wired-link {
text-decoration: none;
}


/* background */
47 changes: 37 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,40 @@
import { WiredLink } from "wired-elements";
title("Hyprland community website")
</script>

<header><h1>Hyprland community website</h1></header>
<main>
<p>A place where people work together to make stuff for Hyprland</p>
<p>Pages:</p>
<ul>
<li><wired-link href="/themes">Hyprtheme themes</wired-link></li>
<li><wired-link href="/projects">Hyprland community projects</wired-link></li>
</ul>
</main>
<link rel="stylesheet" type="text/css" href="./box.css" />
<body onload="showBox()">
<div class="container">
<div class="box">
<div class="heading">

<img src="assets/hyprland-community.svg" alt="Hyprland Community">
<header><h1>Hyprland community website</h1></header>

</div>
<div class="sub-heading"
<main>
<h3>A place where individuals collaborate to create products for Hyprland.</h3>
</main>
</div>
<div class="pages">
<h3>Pages:</h3>
<ul>
<li><wired-link href="/themes">Hyprtheme themes</wired-link></li>
<li><wired-link href="/projects">Hyprland community projects</wired-link></li>
</ul>

</div>

<script>
function showBox() {
const box = document.querySelector('.box');
setTimeout(() => {
box.classList.add('show');
}, 600); // Add the show class after a delay of 1 secon
}
</script>
</div>
</body>



8 changes: 7 additions & 1 deletion src/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ export class ThemePreview extends LitElement {

return html`
<style>
@font-face {
font-family: 'LondonBetween';
src: url('fonts/LondonBetween.ttf') format('truetype');
}

.parent {
background: #000;
width: 192px;
Expand All @@ -88,7 +93,8 @@ export class ThemePreview extends LitElement {
display: flex; justify-content:center; align-items: center;
}
.window {
font-family: Nanum Gothic Coding;
background: #1b1b1b;
font-family: 'LondonBetween';
font-size: 7pt;
background: black;
width: 100%;
Expand Down
Empty file removed test.tmp
Empty file.