|
9 | 9 | body { |
10 | 10 | font-family: 'Montserrat', sans-serif; |
11 | 11 | color: #333; |
12 | | - background-color: #f4f0ff; /* Subdued purple background */ |
| 12 | + background-color: #f4f0ff; |
| 13 | + margin: 0; |
| 14 | + padding: 0; |
| 15 | + display: flex; |
| 16 | + flex-direction: column; |
| 17 | + align-items: center; |
13 | 18 | } |
14 | | - |
15 | | - .header { |
16 | | - background-color: #e0d4ff; /* Lighter shade of purple for header */ |
17 | | - padding: 20px; |
18 | | - text-align: center; |
19 | | - } |
20 | | - |
21 | | - .nav { |
| 19 | + .header, .footer, .nav { |
| 20 | + width: 100%; |
22 | 21 | text-align: center; |
| 22 | + background-color: #e0d4ff; |
23 | 23 | padding: 20px; |
24 | 24 | } |
25 | | - |
26 | 25 | .nav a { |
27 | 26 | margin: 0 15px; |
28 | 27 | text-decoration: none; |
29 | | - color: #5d3dbd; /* Deeper purple for contrast */ |
| 28 | + color: #5d3dbd; |
| 29 | + } |
| 30 | + .main-container { |
| 31 | + display: flex; |
| 32 | + width: 100%; |
| 33 | + align-items: flex-start; /* Aligns items at the top */ |
| 34 | + } |
| 35 | + .sidebar { |
| 36 | + flex: 1; /* Allows sidebars to take up space on the sides */ |
| 37 | + padding: 20px; |
| 38 | + overflow-y: auto; |
| 39 | + height: 100vh; /* Full height of the viewport */ |
| 40 | + box-sizing: border-box; /* Includes padding in the element's total width and height */ |
30 | 41 | } |
31 | | - |
32 | 42 | .content { |
| 43 | + flex: 3; /* Content takes more space */ |
33 | 44 | padding: 20px; |
| 45 | + max-width: 1200px; /* Adjust based on preference */ |
| 46 | + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
| 47 | + margin: auto; /* Centers the content */ |
| 48 | + box-sizing: border-box; /* Includes padding in the element's total width and height */ |
34 | 49 | } |
35 | | - |
36 | | - .footer { |
37 | | - background-color: #e0d4ff; /* Matches header */ |
| 50 | + /* Styles for the side content rolls */ |
| 51 | + .side-roll h2 { |
| 52 | + font-size: 1.2rem; |
| 53 | + color: #5d3dbd; |
| 54 | + } |
| 55 | + .article-thumbnail, .viewed-article { |
| 56 | + margin: 10px 0; |
38 | 57 | padding: 10px; |
39 | | - text-align: center; |
| 58 | + background-color: #e0d4ff; |
| 59 | + border-radius: 5px; |
40 | 60 | } |
41 | 61 | </style> |
42 | 62 | </head> |
43 | 63 | <body> |
44 | 64 | <div class="header"> |
45 | 65 | <h1>Welcome to Hyper Impressed</h1> |
46 | 66 | </div> |
47 | | - |
48 | 67 | <div class="nav"> |
49 | 68 | <a href="world-philosophy/index.html">World Philosophy</a> |
50 | 69 | <a href="spirit-philosophy/index.html">Human Philosophy</a> |
51 | 70 | <a href="exercise/index.html">Exercise</a> |
52 | | - <!-- Add more links as needed --> |
53 | 71 | </div> |
54 | | - |
55 | | - <div class="content"> |
56 | | - <p>Explore a range of topics from World Philosophy to Spirit Philosophy, Exercise, and more. Click on the topics above to dive deeper into each category.</p> |
| 72 | + <div class="main-container"> |
| 73 | + <div class="sidebar"> |
| 74 | + <!-- Previously viewed articles --> |
| 75 | + <div class="side-roll"> |
| 76 | + <h2>Previously Viewed</h2> |
| 77 | + <div class="viewed-article">Article 1</div> |
| 78 | + <div class="viewed-article">Article 2</div> |
| 79 | + <!-- Additional viewed articles --> |
| 80 | + </div> |
| 81 | + </div> |
| 82 | + <div class="content"> |
| 83 | + <!-- Main content --> |
| 84 | + <p>Main content area. This space is used for the article or main page content.</p> |
| 85 | + </div> |
| 86 | + <div class="sidebar"> |
| 87 | + <!-- Related articles --> |
| 88 | + <div class="side-roll"> |
| 89 | + <h2>Related Articles</h2> |
| 90 | + <div class="article-thumbnail">Related Article 1</div> |
| 91 | + <div class="article-thumbnail">Related Article 2</div> |
| 92 | + <!-- Additional related articles --> |
| 93 | + </div> |
| 94 | + </div> |
57 | 95 | </div> |
58 | | - |
59 | 96 | <div class="footer"> |
60 | 97 | <p>Contact us at email@example.com</p> |
61 | 98 | </div> |
|
0 commit comments