summaryrefslogtreecommitdiff
path: root/reviews.html
blob: df6d54b6b1fae577dc40c99be7afbe6777d1558b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="icon" type="image/x-icon" href="./assets/img/favicon.ico">
    <meta
      name="description"
      content="Luxury Detailing Maine provides mobile professional car cleaning services in the Portland Area"
    />
		<title>REVIEWS - Luxury Detailing Maine</title>
    <link href="css/style.css" rel="stylesheet" />
    <link href="css/hamburger.css" rel="stylesheet" />

    <style>
      h1 {
        margin-bottom: 6rem;
      }

      /** REVIEWS */
      #reviews {
        margin-top: 7rem;
      }

      #reviewContainer {
        display: flex;
        flex-wrap: wrap;
        gap: 4rem;

        width: 90%;

        align-items: center;
        justify-content: space-evenly;
      }

        
      /** REVIEW CARD */
      .review-card {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        padding: 3rem;
        border: 2px solid var(--gold);
        border-radius: 1rem;
        box-shadow: 3px 3px 0px var(--gold);

        color: white;
      }

      .review-card-head {
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        margin-bottom: 1rem;
        color: var(--gold);
      }
      .review-card-head a {
        color: var(--gold);
        transition: 0.2s ease;
      }
      .review-card-head a:hover {
        color: white;
      }

      .review-card-head-left {
        word-wrap: none;
        text-align: left;
      }
      .review-card-head-right {
        word-wrap: none;
        text-align: right;
      }

      .review-card-body {
        max-height: 15rem;
        overflow: hidden;
        text-align: left;
        color: white;
        align-self: center;
      }
     
      /************************************************
       * DESKTOP RULES 
       */
      @media screen and (min-width: 851px) {
        #reviewContainer {
          flex-direction: row;
        }

        .review-card {
          width: 25rem;
          height: min-content;
        }
      }

      /* 
       * MOBILE RULES
       */
      @media screen and (max-width: 850px) {
        #reviewContainer {
          flex-direction: column;
        }

        .review-card {
          width: 90%;
        }

      }
    </style>

  </head>

  <body>
    <a href="#main-content" class="skipLink">Skip to main content</a>

    <header>
      <div class="navBanner" role="banner">
        <a href="index.html" class="navLogo" aria-label="Company Logo">
					<img class="navLogo" src="assets/img/logo.png"></img>
				</a>

        <button
          id="hamburger"
          aria-label="Toggle mobile navigation menu"
          aria-expanded="false"
        >
          <span></span>
          <span></span>
          <span></span>
        </button>

        <nav>
          <a class="navLink" role="navigation" href="ceramic-coating.html">Ceramic Coating</a>
          <a class="navLink" role="navigation" href="services.html">Services</a>
          <a class="navLink" role="navigation" href="reviews.html"style="color: white" >Reviews</a>
          <a class="navLink" role="navigation" href="about.html">About</a>
        </nav>
      </div>
    </header>

    <main id="main-content">
      <section id="reviews">
        <div id="reviewContainer"></div>
      </section>
    </main>

    <footer>
      <div id="footer-left">
        &copy;Luxury Detailing Maine 2025<br />
        All rights reserved<br />
        Portland, ME
      </div>
      <div id="footer-right">
        207-807-6770<br />
        example@email.com<br />
        <a
          href="https://www.instagram.com/luxurydetailingmaine/"
          target="_blank"
          >@luxurydetailingmaine</a
        >
      </div>
    </footer>
    <script src="js/hamburger.js"></script>
    <script>
      /** script stuff just for this page */
      
      /**
       * PAGE INITIALIZATION 
       */
      window.onload = function () {
        // first, insert all reviews into the page
        insertReviews(reviewData);
      };

      /** review insertion **/
      let reviewData = [
        {
          name: "Sasha M.",
          text: "Easy 5 stars! Aden was super communicative, very friendly, and reasonably priced. I would happily recommend this service to anyone.",
          url: "https://share.google/zUOkEQ8Yv6L2SkBsl",
        },
        {
          name: "Tara D.",
          text: "Job well done, had the vehicle feeling like it just left the lot. You can tell Aden takes great pride and is meticulous in his work.",
          url: "https://share.google/uMS4Ma8xT7ARAqf83",
        },
        {
          name: "Adrianna W.",
          text: "Luxury Detailing's Platinum package delivered incredible results, making my partner’s 15-year-old car look and feel brand new! ",
          url: "https://maps.app.goo.gl/vS8JALPh7KNquRyu7",
        },
        {
          name: "Adam B.",
          text: "Aden was easy to work with and did a fantastic job! I’m very happy with how the detailing came out! Great pricing for high quality service!",
          url: "https://maps.app.goo.gl/Hp9Ez5hEF9iTrbn6A"
        },
        {
          name: "Jacob S.",
          text: "I could not be happier with the way my Cadillac turned out. The way the car came out is a night and day difference.",
          url: "https://share.google/89ldWBKVGn25MnHPM"
        },
        {
          name: "Sasha P.",
          text: "I second all of the great reviews so far, Aden really is that great! My car really does look practically brand new.",
          url: "https://share.google/ax2m0N4UOjvWIJpo0",
        },
      ];

      function insertReviews(reviews) {
        let target = document.getElementById("reviewContainer");
        for (let i = 0; i < reviews.length; i++) {
          let review = reviews[i];
          let linkedName = `<a href="${review.url}" class="reviewLink" target="_blank">${review.name}</a>`;
          // load reviews
          target.insertAdjacentHTML(
            "beforeend",
            `
            <div class="review-card">
              <div class="review-card-head">
                <span class="review-card-head-left">
                  ${review.url ? linkedName : review.name}
                </span>
                <span class="review-card-head-right">
                  <span>★</span>
                  <span>★</span>
                  <span>★</span>
                  <span>★</span>
                  <span>★</span>
                </span> 
              </div>
              <p class="review-card-body">
                ${review.text}
              </p>
            </div>
          `
          );
        }
      }
    </script>
    
    <!-- <script src="https://cdn.knightlab.com/libs/juxtapose/latest/js/juxtapose.min.js"></script> -->
  </body>
</html>