Skip to content

Commit

Permalink
chore: lugtype
Browse files Browse the repository at this point in the history
  • Loading branch information
ThEditor committed Sep 3, 2024
1 parent 3276a08 commit 96503d2
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 32 deletions.
23 changes: 23 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# FROM python:slim

# RUN mkdir /app
# WORKDIR /app
# COPY . /app

# EXPOSE 8080
# CMD ["python", "-m", "http.server", "-b", "0.0.0.0", "8080"]

FROM busybox:1.35

# Create a non-root user to own the files and run our server
RUN adduser -D static
USER static
WORKDIR /home/static

# Copy the static website
# Use the .dockerignore file to control what ends up inside the image!
COPY . .

EXPOSE 8080
# Run BusyBox httpd
CMD ["busybox", "httpd", "-f", "-v", "-p", "8080"]
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"dep-graph": "madge -c -i \"dep-graph.png\" ./src/ts",
"ts-check": "tsc --noEmit",
"build": "npm run madge && vite build",
"lug:upload": "docker build -t reg.lugvitc.net/lugtype dist -f Dockerfile && docker push reg.lugvitc.net/lugtype",
"madge": " madge --circular --extensions ts ./src",
"live": "npm run build && vite preview --port 3000",
"dev": "vite dev",
Expand Down
75 changes: 43 additions & 32 deletions frontend/src/html/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,56 @@
<a id="logo" href="/" router-link>
<div class="icon">
<svg
id="Layer_2"
data-name="Layer 2"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
style="isolation: isolate"
viewBox="-680 -1030 300 180"
viewBox="0 0 76.99 67.33"
>
<g>
<path
d="M -430 -910 L -430 -910 C -424.481 -910 -420 -905.519 -420 -900 L -420 -900 C -420 -894.481 -424.481 -890 -430 -890 L -430 -890 C -435.519 -890 -440 -894.481 -440 -900 L -440 -900 C -440 -905.519 -435.519 -910 -430 -910 Z"
/>
<path
d=" M -570 -910 L -510 -910 C -504.481 -910 -500 -905.519 -500 -900 L -500 -900 C -500 -894.481 -504.481 -890 -510 -890 L -570 -890 C -575.519 -890 -580 -894.481 -580 -900 L -580 -900 C -580 -905.519 -575.519 -910 -570 -910 Z "
/>
<path
d="M -590 -970 L -590 -970 C -584.481 -970 -580 -965.519 -580 -960 L -580 -940 C -580 -934.481 -584.481 -930 -590 -930 L -590 -930 C -595.519 -930 -600 -934.481 -600 -940 L -600 -960 C -600 -965.519 -595.519 -970 -590 -970 Z"
/>
<path
d=" M -639.991 -960.515 C -639.72 -976.836 -626.385 -990 -610 -990 L -610 -990 C -602.32 -990 -595.31 -987.108 -590 -982.355 C -584.69 -987.108 -577.68 -990 -570 -990 L -570 -990 C -553.615 -990 -540.28 -976.836 -540.009 -960.515 C -540.001 -960.345 -540 -960.172 -540 -960 L -540 -960 L -540 -940 C -540 -934.481 -544.481 -930 -550 -930 L -550 -930 C -555.519 -930 -560 -934.481 -560 -940 L -560 -960 L -560 -960 C -560 -965.519 -564.481 -970 -570 -970 C -575.519 -970 -580 -965.519 -580 -960 L -580 -960 L -580 -960 L -580 -940 C -580 -934.481 -584.481 -930 -590 -930 L -590 -930 C -595.519 -930 -600 -934.481 -600 -940 L -600 -960 L -600 -960 L -600 -960 L -600 -960 L -600 -960 L -600 -960 L -600 -960 L -600 -960 C -600 -965.519 -604.481 -970 -610 -970 C -615.519 -970 -620 -965.519 -620 -960 L -620 -960 L -620 -940 C -620 -934.481 -624.481 -930 -630 -930 L -630 -930 C -635.519 -930 -640 -934.481 -640 -940 L -640 -960 L -640 -960 C -640 -960.172 -639.996 -960.344 -639.991 -960.515 Z "
/>
<path
d=" M -460 -930 L -460 -900 C -460 -894.481 -464.481 -890 -470 -890 L -470 -890 C -475.519 -890 -480 -894.481 -480 -900 L -480 -930 L -508.82 -930 C -514.99 -930 -520 -934.481 -520 -940 L -520 -940 C -520 -945.519 -514.99 -950 -508.82 -950 L -431.18 -950 C -425.01 -950 -420 -945.519 -420 -940 L -420 -940 C -420 -934.481 -425.01 -930 -431.18 -930 L -460 -930 Z "
/>
<path
d="M -470 -990 L -430 -990 C -424.481 -990 -420 -985.519 -420 -980 L -420 -980 C -420 -974.481 -424.481 -970 -430 -970 L -470 -970 C -475.519 -970 -480 -974.481 -480 -980 L -480 -980 C -480 -985.519 -475.519 -990 -470 -990 Z"
/>
<path
d=" M -630 -910 L -610 -910 C -604.481 -910 -600 -905.519 -600 -900 L -600 -900 C -600 -894.481 -604.481 -890 -610 -890 L -630 -890 C -635.519 -890 -640 -894.481 -640 -900 L -640 -900 C -640 -905.519 -635.519 -910 -630 -910 Z "
/>
<path
d=" M -515 -990 L -510 -990 C -504.481 -990 -500 -985.519 -500 -980 L -500 -980 C -500 -974.481 -504.481 -970 -510 -970 L -515 -970 C -520.519 -970 -525 -974.481 -525 -980 L -525 -980 C -525 -985.519 -520.519 -990 -515 -990 Z "
/>
<path
d=" M -660 -910 L -680 -910 L -680 -980 C -680 -1007.596 -657.596 -1030 -630 -1030 L -430 -1030 C -402.404 -1030 -380 -1007.596 -380 -980 L -380 -900 C -380 -872.404 -402.404 -850 -430 -850 L -630 -850 C -657.596 -850 -680 -872.404 -680 -900 L -680 -920 L -660 -920 L -660 -900 C -660 -883.443 -646.557 -870 -630 -870 L -430 -870 C -413.443 -870 -400 -883.443 -400 -900 L -400 -980 C -400 -996.557 -413.443 -1010 -430 -1010 L -630 -1010 C -646.557 -1010 -660 -996.557 -660 -980 L -660 -910 Z "
/>
<defs>
<style>
.cls-1 {
fill: #fff;
}

.cls-1,
.cls-2 {
stroke-width: 0px;
}

.cls-2 {
fill: #565656;
}
</style>
</defs>
<g id="Layer_8" data-name="Layer 8">
<g>
<path
class="cls-1"
d="m18.71,58.35c-1.16,1.24-2.78.77-4.18,1.04-4.43.88-8.86,1.79-13.18,3.13-.31.1-.66.06-1.35.12,2.57-2.03,5.22-3.23,7.72-4.65,3.95-2.23,7.95-4.37,11.98-6.42,1.48-.75,2.5-1.77,3.2-3.23,1.44-3.01,2.63-6.14,3.4-9.36,1.7-7.03,5.44-12.85,10.19-18.1,1.1-1.22,1.06-1.85-.29-2.79-1.4-.98-2.26-2.47-3.03-4.02-2.16-4.35-4.95-8.22-9.14-10.89-.51-.32-1.35-.49-1.22-1.26.1-.58.85-.71,1.38-.87,4.72-1.41,8.8-.1,12.35,3.09,1.89,1.69,3.62,3.54,5.34,5.48-.14-2.74-.76-5.32-2.08-7.72-.26-.47-.86-1.01-.48-1.52.41-.55,1.2-.34,1.8-.2,3.15.76,5.38,2.72,6.94,5.5.8,1.43,1.51,2.98,1.64,4.57.21,2.49,1.58,3.22,3.79,3.48,3.92.47,7.82,1.09,11.72,1.75,3.68.63,6.34,2.77,7.96,6.08,1.28,2.6,2.33,5.31,3.47,7.98.21.49.66,1.09.04,1.52-.48.34-1.09.13-1.63-.08-.13-.05-.25-.14-.37-.22-3.44-2.38-7.24-3.79-11.38-4.33,1.67-3.53,1.37-4.19-2.35-5.51-1.86-.66-3.69-1.41-5.55-2.1-1.49-.56-3-.78-4.5-.04-2.35.28-3.92,1.8-5.45,3.4-1.2,1.26-2.23,2.73-4.16,3.5-.07-1.17.4-2.05.62-2.97.17-.71.84-1.71.15-2.12-.83-.49-1.48.54-2.03,1.12-2.22,2.32-3.88,5.03-5.15,7.98-3.41,7.95-3.79,16.13-1.91,24.49.26,1.16.76,2.68-.12,3.42-.69.59-1.85-.61-2.82-.97-.66-.25-1.29-.58-1.94-.84-4.04-1.63-7.26-1.14-10.7,1.61.43.32.87.64,1.3.95ZM62.9,17.1c1.45,1.34,2.54,2.37,3.67,3.38.42.38.79,1.2,1.52.53.71-.65.53-1.43-.06-2.04-1.27-1.33-2.96-1.57-5.13-1.87Z"
/>
<path
class="cls-2"
d="m18.71,58.35c-.43-.32-.87-.64-1.3-.95,3.44-2.75,6.66-3.24,10.7-1.61.65.26,1.28.59,1.94.84.97.36,2.13,1.56,2.82.97.88-.74.38-2.27.12-3.42-1.88-8.37-1.5-16.54,1.91-24.49,1.27-2.95,2.93-5.65,5.15-7.98.55-.58,1.2-1.61,2.03-1.12.69.41.02,1.4-.15,2.12-.22.92-.69,1.8-.62,2.97,1.93-.77,2.95-2.25,4.16-3.5,1.53-1.59,3.1-3.11,5.45-3.4,1.45.1,3.08-.38,4.04,1.26-1.44.42-2.72,1.13-3.95,1.99-4.89,3.43-7.21,8.63-9.34,13.87-1.81,4.45-2.95,9.09-3.09,13.98-.1,3.64,0,7.2,1.79,10.42.9,1.61,2.01,3.34,4.33,3.21-.31,1.31.79,1.12,1.41,1.19,1.82.2,3.66.25,5.5.37.9.06,1.83.02,2.6.75-3.64,1.99-7.51,1.64-11.38,1.02-1.36-.22-2.44-1.07-3.41-2.02-1.16-1.13-2.53-2.11-3.56-3.28-1.98-2.24-4.33-2.49-7.03-2.53-3.38-.05-6.79.14-10.12-.67Z"
/>
<path
class="cls-1"
d="m44.7,63.51c-2.33.13-3.44-1.6-4.33-3.21-1.79-3.22-1.89-6.78-1.79-10.42.14-4.89,1.28-9.53,3.09-13.98,2.13-5.24,4.44-10.44,9.34-13.87,1.23-.86,2.51-1.57,3.95-1.99,1.46,1.01,2.35,2.43,2.9,4.08.35,1.03.77,1.98,1.85,2.46-1.76,1.36-3,3.12-4.07,5.06-1.96,3.53-4.23,6.92-7.14,9.68-3.83,3.63-4.81,8.13-5.11,13.01-.06,1.06-.04,2.12-.08,3.18-.12,3.34-.12,3.33,3.27,3.75,1.22.15,2.54-.11,3.76.97-1.88.88-3.66,1.48-5.64,1.28Z"
/>
<path
class="cls-2"
d="m59.7,26.57c-1.07-.48-1.5-1.43-1.85-2.46-.56-1.65-1.45-3.07-2.9-4.08-.96-1.65-2.6-1.16-4.04-1.26,1.51-.74,3.01-.52,4.5.04,1.85.69,3.68,1.44,5.55,2.1,3.72,1.32,4.02,1.98,2.35,5.51-1.2.05-2.4.1-3.61.16Z"
/>
<path
class="cls-2"
d="m62.9,17.1c2.16.3,3.86.54,5.13,1.87.59.61.77,1.4.06,2.04-.73.66-1.1-.16-1.52-.53-1.12-1.01-2.22-2.04-3.67-3.38Z"
/>
</g>
</g>
</svg>
</div>
<h1 class="text">
<div class="top">monkey see</div>
monkeytype
lugtype
</h1>
</a>
<nav>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/styles/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ header {
gap: 0.5rem;
transition: none;
text-decoration: none;
align-items: center;
color: var(--text-color);
padding: 0.35rem 0.25rem;
margin-left: -0.25rem;
Expand All @@ -170,6 +171,7 @@ header {
}
.text {
.top {
display: none;
position: absolute;
left: 0.35em;
font-size: 0.325em;
Expand Down

0 comments on commit 96503d2

Please sign in to comment.