Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML:
- <footer id="footer">
- <div class="container">
- <!-- Contact Details -->
- <div class="footer-section contact-details">
- <h3>Contact</h3>
- <p>Phone: 0912 345 6789</p>
- </div>
- <!-- Social Media -->
- <div class="footer-section social-media">
- <h3>Follow Us</h3>
- <div class="social-icons">
- <a href="https://www.facebook.com/sample" target="_blank" class="rimart-link">
- <i class="fab fa-facebook"></i><span>Facebook</span>
- </a>
- <a href="https://www.instagram.com/sample" target="_blank"><i class="fab fa-instagram"></i>Instagram</a>
- <a href="https://www.linkedin.com/in/sample" target="_blank"><i class="fab fa-linkedin"></i>linkedin</a>
- </div>
- </div>
- <!-- Newsletter -->
- <div class="footer-section newsletter">
- <h3>Newsletter</h3>
- <form>
- <input type="email" placeholder="Enter your email" required>
- <button type="submit">Subscribe</button>
- </form>
- </div>
- </div>
- </footer>
- CSS:
- #footer {
- background: var(--dark-color);
- color: var(--white-color);
- padding: 25px 0 15px;
- position: sticky;
- bottom: 0;
- z-index: 1000;
- box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
- }
- #footer .container {
- max-width: var(--site-max-width);
- margin: 0 auto;
- display: flex;
- justify-content: space-between;
- padding: 0 20px;
- background: transparent;
- box-shadow: none;
- }
- .footer-section {
- flex: 1;
- padding: 0 15px;
- }
- .footer-section h3 {
- margin-bottom: 15px;
- color: var(--tertiary-color);
- font-size: 1.2rem;
- }
- .footer-section p,
- .footer-section a {
- color: var(--white-color);
- font-size: 14px;
- margin-bottom: 8px;
- display: block;
- }
- .footer-section a:hover {
- color: var(--tertiary-color);
- }
- .social-icons a {
- display: inline-flex;
- align-items: center;
- margin-right: 15px;
- transition: transform 0.3s ease;
- }
- .social-icons a:hover {
- transform: translateY(-2px);
- }
- .social-icons i {
- margin-right: 5px;
- font-size: 18px;
- }
- .newsletter form {
- display: flex;
- margin-top: 10px;
- }
- .newsletter input {
- padding: 10px;
- border: none;
- border-radius: 4px 0 0 4px;
- width: 200px;
- font-size: 14px;
- }
- .newsletter button {
- padding: 10px 15px;
- background: var(--tertiary-color);
- color: var(--dark-color);
- border-radius: 0 4px 4px 0;
- font-weight: var(--font-weight-medium);
- transition: background 0.3s ease;
- }
- .newsletter button:hover {
- background: #ffd700;
- }
- /* Copyright */
- .copyright {
- text-align: center;
- padding: 15px 0 0;
- margin-top: 20px;
- border-top: 1px solid rgba(255, 255, 255, 0.1);
- font-size: 12px;
- color: var(--medium-gray-color);
- }
Advertisement
Add Comment
Please, Sign In to add comment