Skip to content

Commit

Permalink
Migrate actual website to static
Browse files Browse the repository at this point in the history
  • Loading branch information
Arihant25 committed Dec 30, 2023
1 parent 6b99c73 commit 6a4b8ad
Show file tree
Hide file tree
Showing 15 changed files with 459 additions and 110 deletions.
18 changes: 0 additions & 18 deletions 2/index.html

This file was deleted.

6 changes: 6 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ def page(path):
return render_template("page.html", page=page)


@app.route("/about.html")
def about():
return render_template("about.html")


if __name__ == "__main__":
freezer.freeze()
print(page)
app.run(port=8000)
19 changes: 0 additions & 19 deletions hello-world/index.html

This file was deleted.

27 changes: 0 additions & 27 deletions index.html

This file was deleted.

8 changes: 8 additions & 0 deletions page_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
id:
title:
subtitle:
date:
body:
author:
img_url:
song_url:
8 changes: 8 additions & 0 deletions pages/1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
id: 1
title: Why does Saturn have rings?
subtitle: Just because.
date: December 4, 2023
author: Arihant
img_url: https://images.unsplash.com/photo-1701542182020-6355e2c059a1?q=80&w=3087&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D
song_url: https://open.spotify.com/embed/track/3ntrdR24dLkKrzSGRv1FlH?utm_source=generator
body: Have you ever wondered why Saturn has rings? Well, you're not alone. Scientists have been puzzled by this question for centuries, and they still don't have a definitive answer. But they have some pretty good guesses, and some of them are hilarious.
12 changes: 8 additions & 4 deletions pages/2.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
title: Hey!
date: 2012-03-04

THIS WORKED?!
id: 2
title: On Indie Music
subtitle: Indie music is nice!
date: December 5, 2023
author: ira
img_url: https://images.unsplash.com/photo-1701456449854-c4933aade45b?q=80&w=3087&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D
song_url: https://open.spotify.com/embed/track/5UVBumEwdUnzvqxrXOYLFA?utm_source=generator
body: Indie music is a genre of music that is independent from the mainstream music industry. It is often creative, original and diverse, reflecting the personal vision of the artists. Indie music can be a source of inspiration, enjoyment and discovery for listeners who appreciate its uniqueness and authenticity.
6 changes: 0 additions & 6 deletions pages/hello-world.md

This file was deleted.

103 changes: 103 additions & 0 deletions static/styles/about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
body {
background-color: #000000;
color: #fff;
font-family: 'CMU Serif';
}

.navbar {
display: flex;
width: 100%;
background-color: #000000;
align-items: center;
height: 20px;
padding-top: 10px;
}


.nav-center {
width: 100%;
text-align: center;
margin-left: 26%;
font-size: 30px;
}

.nav-center a {
color: #fff;
}

.navbar a:hover {
color: orange;
}

.nav-right {
text-align: right;
margin-right: 3.5%;
width: 50%;
padding-top: 1%;
}

a {
color: #fff;
text-decoration: none;
}

.about {
margin-top: 45px;
margin-right: 20%;
margin-left: 20%;
font-size: 1.2em;
text-align: justify;
}

img {
width: 40%;
height: 40%;
border-radius: 50em;
}

.metadata-container {
display: flex;
}

.metadata-container p#ira {
margin-right: 40px;
}

.metadata-container p#arihant {
margin-left: 40px;
}

/* Small devices (portrait tablets and large phones, 800px and below) */
@media only screen and (max-width: 800px) {
.about {
margin-top: 45px;
margin-right: 10%;
margin-left: 10%;
font-size: 1.2em;
text-align: justify;
}

img {
width: 50%;
height: 50%;
border-radius: 50em;
}

.metadata-container {
flex-direction: column;
align-items: center;
}

.metadata-container p#ira {
margin-right: 0;
margin-bottom: 20px;
order: 1;
}

.metadata-container p#arihant {
margin-left: 0;
margin-top: 20px;
order: 2;
}

}
79 changes: 79 additions & 0 deletions static/styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
body {
background-color: #000000;
color: #fff;
font-family: 'CMU Serif';
}

.navbar {
display: flex;
width: 100%;
background-color: #000000;
align-items: center;
height: 20px;
padding-top: 10px;
}

.nav-center {
width: 100%;
text-align: center;
margin-left: 26%;
font-size: 30px;
}

.nav-center a {
color: #fff;
}

.navbar a:hover {
color: orange;
}

.nav-right {
text-align: right;
margin-right: 3.5%;
width: 50%;
padding-top: 1%;
}

.articles {
margin-top: 45px;
margin-right: 7%;
margin-left: 7%;
}

.article-preview {
padding: 0 1.5%;
margin-bottom: 2%;
border: 1px solid #fff;
border-radius: 1em;
transition: transform 0.3s ease-in-out;
}

.article-preview:hover {
/* Enlarge on hover */
transform: scale(1.02);
}

a {
color: #fff;
text-decoration: none;
}

h2 {
font-size: 1.6em;
margin-bottom: 0.2em;
color: orange;
}

.article-subtitle {
font-size: 1.1em;
margin-bottom: 0.5em;

}

.metadata-container {
display: flex;
justify-content: space-between;
/* Align items to the baseline for proper vertical alignment */
align-items: baseline;
}
Loading

0 comments on commit 6a4b8ad

Please sign in to comment.