tej des espaces et maj des liens dans home.html
Some checks are pending
/ test (push) Waiting to run
Some checks are pending
/ test (push) Waiting to run
This commit is contained in:
parent
03febb53b0
commit
5e941b280e
1 changed files with 6 additions and 44 deletions
|
@ -28,6 +28,7 @@
|
||||||
min-height: 100vh; /* Ensure the body takes up the full viewport height */
|
min-height: 100vh; /* Ensure the body takes up the full viewport height */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.main-screen {
|
.main-screen {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
@ -37,13 +38,11 @@
|
||||||
gap: 0;
|
gap: 0;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-screen {
|
.side-screen {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow-y: auto; /* Allow scrolling if content overflows */
|
overflow-y: auto; /* Allow scrolling if content overflows */
|
||||||
flex: 0 0 400px; /* Fixed width of 400px */
|
flex: 0 0 400px; /* Fixed width of 400px */
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-content {
|
.main-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -51,27 +50,23 @@
|
||||||
max-width: 900px; /* Optional: Limit max width */
|
max-width: 900px; /* Optional: Limit max width */
|
||||||
margin: 0 25px;
|
margin: 0 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between; /* Space between the title and navigation */
|
justify-content: space-between; /* Space between the title and navigation */
|
||||||
align-items: center; /* Align items vertically in the center */
|
align-items: center; /* Align items vertically in the center */
|
||||||
padding: 10px 20px; /* Optional: Add some padding */
|
padding: 10px 20px; /* Optional: Add some padding */
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-title {
|
.site-title {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
margin: 0; /* Remove default margin */
|
margin: 0; /* Remove default margin */
|
||||||
font-size: 3rem; /* Adjust font size as needed */
|
font-size: 3rem; /* Adjust font size as needed */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation {
|
.navigation {
|
||||||
flex-grow: 3;
|
flex-grow: 3;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation ul {
|
.navigation ul {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap; /* Allow items to wrap onto multiple lines */
|
flex-wrap: wrap; /* Allow items to wrap onto multiple lines */
|
||||||
|
@ -80,35 +75,31 @@
|
||||||
padding: 0; /* Remove default padding */
|
padding: 0; /* Remove default padding */
|
||||||
justify-content: flex-end; /* Align items to the right */
|
justify-content: flex-end; /* Align items to the right */
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation ul li {
|
.navigation ul li {
|
||||||
margin: 0 10px 0 10px;
|
margin: 0 10px 0 10px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation ul li a:hover {
|
.navigation ul li a:hover {
|
||||||
text-decoration: underline; /* Add underline on hover */
|
text-decoration: underline; /* Add underline on hover */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-content {
|
.center-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-grow: 1; /* Allow it to grow */
|
flex-grow: 1; /* Allow it to grow */
|
||||||
gap: 20px; /* Optional: Add spacing between child elements */
|
gap: 20px; /* Optional: Add spacing between child elements */
|
||||||
}
|
}
|
||||||
|
|
||||||
.presentation, .side-content-column {
|
.presentation, .side-content-column {
|
||||||
flex: 1; /* Make both elements take up equal width */
|
flex: 1; /* Make both elements take up equal width */
|
||||||
}
|
}
|
||||||
|
|
||||||
.presentation {
|
.presentation {
|
||||||
max-width: 100%; /* Ensure it doesn't exceed its container */
|
max-width: 100%; /* Ensure it doesn't exceed its container */
|
||||||
}
|
}
|
||||||
|
.presentation a {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
.side-content-column {
|
.side-content-column {
|
||||||
max-width: 100%; /* Ensure it doesn't exceed its container */
|
max-width: 100%; /* Ensure it doesn't exceed its container */
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1380px) {
|
@media (max-width: 1380px) {
|
||||||
.side-screen {
|
.side-screen {
|
||||||
display: none; /* Hide side-screens on smaller screens */
|
display: none; /* Hide side-screens on smaller screens */
|
||||||
|
@ -143,7 +134,6 @@
|
||||||
if (localStorage.getItem("pref-theme") === "dark") {
|
if (localStorage.getItem("pref-theme") === "dark") {
|
||||||
document.body.classList.add('dark');
|
document.body.classList.add('dark');
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{{- /* theme is dark */}}
|
{{- /* theme is dark */}}
|
||||||
{{- else if (eq site.Params.defaultTheme "dark") }}
|
{{- else if (eq site.Params.defaultTheme "dark") }}
|
||||||
|
@ -151,7 +141,6 @@
|
||||||
if (localStorage.getItem("pref-theme") === "light") {
|
if (localStorage.getItem("pref-theme") === "light") {
|
||||||
document.body.classList.remove('dark')
|
document.body.classList.remove('dark')
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- /* theme is auto */}}
|
{{- /* theme is auto */}}
|
||||||
|
@ -163,7 +152,6 @@
|
||||||
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||||
document.body.classList.add('dark');
|
document.body.classList.add('dark');
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- /* theme-toggle is disabled and theme is auto */}}
|
{{- /* theme-toggle is disabled and theme is auto */}}
|
||||||
|
@ -172,27 +160,18 @@
|
||||||
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||||
document.body.classList.add('dark');
|
document.body.classList.add('dark');
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="main-screen">
|
<div class="main-screen">
|
||||||
<div class="side-screen">
|
<div class="side-screen">
|
||||||
{{ partial "posts-defile.html" (dict "context" . "direction" "up") }}
|
{{ partial "posts-defile.html" (dict "context" . "direction" "up") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
|
||||||
<h1 class="site-title">Achille Toupin</h1>
|
<h1 class="site-title">Achille Toupin</h1>
|
||||||
|
|
||||||
<nav class="navigation">
|
<nav class="navigation">
|
||||||
<ul>
|
<ul>
|
||||||
<li>📝 <a href="blog">Blog</a></li>
|
<li>📝 <a href="blog">Blog</a></li>
|
||||||
|
@ -201,14 +180,13 @@
|
||||||
<p> · </p>
|
<p> · </p>
|
||||||
<li>🔗 <a href="liens">Liens</a></li>
|
<li>🔗 <a href="liens">Liens</a></li>
|
||||||
<p> · </p>
|
<p> · </p>
|
||||||
<li>🔖 <a href="liens">Marque-pages</a></li>
|
<li>🔖 <a href="marque-pages">Marque-pages</a></li>
|
||||||
<p> · </p>
|
<p> · </p>
|
||||||
<li>🌐 <a href="blogroll">Blogroll</a></li>
|
<li>🌐 <a href="blogroll">Blogroll</a></li>
|
||||||
<p> · </p>
|
<p> · </p>
|
||||||
<li>❓ <a href="blogroll">A propos</a></li>
|
<li>❓ <a href="a-propos">A propos</a></li>
|
||||||
<p> · </p>
|
<p> · </p>
|
||||||
<li>✉️ <a href="contact">Contact</a></li>
|
<li>✉️ <a href="contact">Contact</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{{- if (not site.Params.disableThemeToggle) }}
|
{{- if (not site.Params.disableThemeToggle) }}
|
||||||
|
@ -234,40 +212,25 @@
|
||||||
</button>
|
</button>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="center-content">
|
<div class="center-content">
|
||||||
|
|
||||||
<div class="presentation">
|
<div class="presentation">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="side-content-column">
|
<div class="side-content-column">
|
||||||
|
|
||||||
<div class="dernier-article">
|
<div class="dernier-article">
|
||||||
<h2>Mon dernier article</h2>
|
<h2>Mon dernier article</h2>
|
||||||
{{ partial "posts-recents-carte.html" . }}
|
{{ partial "posts-recents-carte.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dernier-article">
|
<div class="dernier-article">
|
||||||
<h2>Mon dernier article</h2>
|
<h2>Mon dernier article</h2>
|
||||||
{{ partial "posts-recents-carte.html" . }}
|
{{ partial "posts-recents-carte.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "buttons.html"}}
|
{{ partial "buttons.html"}}
|
||||||
|
|
||||||
{{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") (.Param "ShowCodeCopyButtons") -}}
|
{{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") (.Param "ShowCodeCopyButtons") -}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="side-screen">
|
<div class="side-screen">
|
||||||
{{ partial "posts-defile.html" (dict "context" . "direction" "down") }}
|
{{ partial "posts-defile.html" (dict "context" . "direction" "down") }}
|
||||||
|
@ -288,7 +251,6 @@
|
||||||
localStorage.setItem("pref-theme", 'dark');
|
localStorage.setItem("pref-theme", 'dark');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue