-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated strategy with cards like recipes
- Loading branch information
lemarc
committed
Jun 5, 2024
1 parent
6fabfcf
commit 925454e
Showing
3 changed files
with
109 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{{ page.title }}</title> | ||
<link rel="stylesheet" href="{{ '/assets/css/blog-post.css' | relative_url }}"> | ||
<link rel="stylesheet" href="{{ '/assets/css/strategy.css' | relative_url }}"> | ||
</head> | ||
|
||
<body> | ||
<main class="container"> | ||
<article class="blog-post"> | ||
{% if page.strategy %} | ||
<div class="strategy-card"> | ||
<h2>{{ page.strategy.title }}</h2> | ||
<p><strong>Entry Points:</strong></p> | ||
<ul> | ||
{% for entry in page.strategy.entry_points %} | ||
<li>{{ entry }}</li> | ||
{% endfor %} | ||
</ul> | ||
<p><strong>Exit Points:</strong></p> | ||
<ul> | ||
{% for exit in page.strategy.exit_points %} | ||
<li>{{ exit }}</li> | ||
{% endfor %} | ||
</ul> | ||
<p><strong>Risk Management:</strong></p> | ||
<ul> | ||
{% for risk in page.strategy.risk_management %} | ||
<li>{{ risk }}</li> | ||
{% endfor %} | ||
</ul> | ||
<p><strong>Example:</strong></p> | ||
<p>High: {{ page.strategy.example.high }}, Low: {{ page.strategy.example.low }}, Close: {{ page.strategy.example.close }}</p> | ||
<p>R3: {{ page.strategy.example.r3 }}, S3: {{ page.strategy.example.s3 }}</p> | ||
</div> | ||
{% endif %} | ||
</article> | ||
<article class="blog-post"> | ||
{{ content }} | ||
</article> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.strategy-card { | ||
border: 1px solid #ccc; | ||
padding: 20px; | ||
margin: 20px 0; | ||
border-radius: 10px; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
transition: transform 0.2s ease, box-shadow 0.2s ease; | ||
} | ||
|
||
.strategy-card:hover { | ||
transform: translateY(-5px); | ||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
.strategy-card h2 { | ||
margin-top: 0; | ||
color: #2c3e50; /* Dark blue color */ | ||
font-size: 1.75em; | ||
border-bottom: 2px solid #A91D3A; /* Bottom border */ | ||
padding-bottom: 10px; | ||
} | ||
|
||
.strategy-card ul { | ||
padding-left: 20px; | ||
list-style-type: disc; | ||
} | ||
|
||
.strategy-card li { | ||
margin-bottom: 10px; | ||
color: #34495e; /* Darker blue for list items */ | ||
} | ||
|
||
.strategy-card p { | ||
margin: 10px 0; | ||
color: #34495e; /* Darker blue for paragraphs */ | ||
} |